Skip to content

Commit 1687a28

Browse files
committed
remove compartment E fron SIR model example.
1 parent 2fa8026 commit 1687a28

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

episodes/contact-matrices.Rmd

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ contacts_byage
113113

114114

115115

116-
**Note: although the contact matrix `contacts_byage$matrix` is not itself mathematically symmetric, it satisfies the condition that the total number of contacts of one group with another is the same as the reverse. In other words:
116+
**Note**: although the contact matrix `contacts_byage$matrix` is not itself mathematically symmetric, it satisfies the condition that the total number of contacts of one group with another is the same as the reverse. In other words:
117117
`contacts_byage$matrix[j,i]*contacts_byage$demography$proportion[j] = contacts_byage$matrix[i,j]*contacts_byage$demography$proportion[i]`.
118-
For the mathematical explanation see [the corresponding section in the socialmixr documentation](https://epiforecasts.io/socialmixr/articles/socialmixr.html#symmetric-contact-matrices).**
118+
For the mathematical explanation see [the corresponding section in the socialmixr documentation](https://epiforecasts.io/socialmixr/articles/socialmixr.html#symmetric-contact-matrices).
119119

120120

121121
::::::::::::::::::::::::::::::::::::: callout
@@ -220,8 +220,6 @@ Contact matrices can be estimated from data obtained from diary (such as POLYMOD
220220
::::::::::::::::::::::::::::::::::::::::::::::::
221221

222222

223-
224-
225223
## Analyses with contact matrices
226224

227225
Contact matrices can be used in a wide range of epidemiological analyses, they can be used:
@@ -244,7 +242,7 @@ Whereas a contact matrix gives the average number of contacts that one groups ma
244242

245243
### In mathematical models
246244

247-
Consider the SIR model where individuals are categorized as either susceptible $S$, infected but not yet infectious $E$, infectious $I$ or recovered $R$. The schematic below shows the processes which describe the flow of individuals between the disease states $S$, $I$ and $R$ and the key parameters for each process.
245+
Consider the SIR model where individuals are categorized as either susceptible $S$, infected $I$ and recovered $R$. The schematic below shows the processes which describe the flow of individuals between the disease states $S$, $I$ and $R$ and the key parameters for each process.
248246

249247
```{r diagram, echo = FALSE, message = FALSE}
250248
DiagrammeR::grViz("digraph {
@@ -289,7 +287,7 @@ To add age structure to our model, we need to add additional equations for the i
289287

290288
$$ \beta S_i \sum_j C_{i,j} I_j/N_j. $$
291289

292-
Susceptible individuals in age group $i$ become infected dependent on their rate of contact with individuals in each age group. For each disease state ($S$, $E$, $I$ and $R$) and age group ($i$), we have a differential equation describing the rate of change with respect to time.
290+
Susceptible individuals in age group $i$ become infected dependent on their rate of contact with individuals in each age group. For each disease state ($S$, $I$ and $R$) and age group ($i$), we have a differential equations describing the rate of change with respect to time.
293291

294292
$$
295293
\begin{aligned}

0 commit comments

Comments
 (0)