All patients entering pregnancy that are generated in the LINCS model at model start have a parameter called “last active CMV”, indicating when the last CMV infection was prior to simulation start. In the code, this parameter is an integer, indicating the number of weeks before simulation start in which the last CMV infection occurred. There are four user-defined “time-buckets” for which this number can be drawn from: Very Recent, Medium Recent, Less Recent, and Never CMV.
The number of generated patients that have had previous CMV is determined by the overall incidence of primary CMV infection throughout the population.
Write about how the sources give primary CMV infection and conversion to weekly and yearly rates
Write about how this gives us the proportion of Never CMV
Write about the distribution into Very Recent, Medium Recent, and Less Recent time buckets
Whether the Last Active CMV prior to simulation start was a primary or non-primary infection is of concern in the case where the patient’s last active CMV infection took place close to conception, as the mother’s CMV biomarkers immediately after infection will be different depending on whether this was their first CMV infection. Because of this, we are interested in examining the proportion of patients who have had previous CMV prior to simulation start who have had more than one previous infection, since if they did, the Last Active CMV would be a non-primary infection.
We define the following variables:
p = Yearly probability of primary infection.
p’ = Yearly probability of non-primary infection, to be used after the patient has had previous primary infection.
The probability of exactly one occurrence in \(N\) years is given by:
\[ P(\text{Exactly Once}) = \sum_{k=1}^N \left[ (1-p)^{k-1} \cdot p \cdot (1-p')^{N-k} \right] \]
where: - \(p\) is the probability of the event occurring in a given year before the first occurrence, - \(p'\) is the probability of the event occurring in subsequent years after the first occurrence, - \(N\) is the total number of years.
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
summary(cars)
## speed dist
## Min. : 4.0 Min. : 2.00
## 1st Qu.:12.0 1st Qu.: 26.00
## Median :15.0 Median : 36.00
## Mean :15.4 Mean : 42.98
## 3rd Qu.:19.0 3rd Qu.: 56.00
## Max. :25.0 Max. :120.00
You can also embed plots, for example:
Note that the echo = FALSE parameter was added to the
code chunk to prevent printing of the R code that generated the
plot.