Description Usage Arguments Value Author(s)
Log-likelihood for a model run of an age-structured childhood infection model
1 2 3 | age.likelihood(trajectory, data.cases, data.sero = NULL, rel = F,
sample = NULL, proportion.reported = 1, normal.approximation = F,
time.column = "time")
|
trajectory |
The model trajectory, in a data.table with a column "year", a column "lower.age.limit", and at least one of "rel.incidence" or "abs.incidence" |
data.cases |
The data trajectory, in the same format as the model trajectory |
data.sero |
Serology, if any |
rel |
Whether to fit relative incidences |
sample |
Whether the data are the result of a sampling procedure |
proportion.reported |
The average proportion of cases reported |
normal.approximation |
Whether to use the normal approximation to the binomial distribution |
A number, the log-likelihood
Sebastian Funk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.