fit.polymod: Fit POLYMOD matrix and age population to target distribution...

Description Usage Arguments Details Value

Description

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)

Usage

1
2
fit.polymod(participants, contacts, ages, target, nFits = 1, sample = F,
  yearbyyear = F, verbose = F, ...)

Arguments

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

Details

This is specific to the POLYMOD data format

Value

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


sbfnk/dynmod documentation built on May 29, 2019, 3:21 p.m.