Description Usage Arguments Details Value
Takes a polymod matrix (participants and contacts) and a distribution of ages in the population and fits it to a target distribution of cases among ages (fitting the transmission parameter q and mixing between the first age group)
1 2 | fit.polymod(participants, contacts, ages, target, nFits = 1, sample = F,
yearbyyear = F, verbose = F, ...)
|
participants |
POLYMOD participants |
contacts |
POLIYMOD contacts |
ages |
age groups and number of people in each of these groups. This is needed to normalise the contact matrix |
target |
target relative age distribution |
nFits |
nubmer of fits to produce |
sample |
whether to take a sample from the age of contacts |
yearbyyear |
whether to fit q year-by-year instead of fitting one parameter |
This is specific to the POLYMOD data format
a list containing q: best fitting q child.mixing: best fixing mixing in first age group R0: R0 for the best fitting parameters diff: difference between the fitted and target age distributions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.