Prepare country parameters for model
Source:R/class_country.R
, R/class_infection.R
, R/class_vaccination.R
, and 1 more
prepare_parameters.Rd
Generic for the prepare_parameters methods associated with daedalus classes.
Usage
# S3 method for class 'daedalus_country'
prepare_parameters(x, ...)
# S3 method for class 'daedalus_infection'
prepare_parameters(x, ...)
# S3 method for class 'daedalus_vaccination'
prepare_parameters(x, ...)
prepare_parameters(x, ...)
Value
A list of parameters suitable for the DAEDALUS model.
prepare_parameters.daedalus_country()
returns the country parameters, while
prepare_parameters.daedalus_infection()
returns infection parameters.
Details
Country parameters
Country contact data is processed as follows:
contact_matrix
: scaled by its leading eigenvalue, and with each columnj
scaled by thej
-th element of the country demography vector (i.e., scaling contacts from each age group by the size of that group).
The returned parameter list consists of:
demography
: the demography vector;contact_matrix
: the contact matrix;contacts_workplace
: the contacts in workplaces scaled by the number of workers in each sector;contacts_consumer_worker
: contacts in workplaces distributed in proportion to the demography distribution, and scaled by the largest singular value (similar to eigenvalue for non-square matrices).