Prepare country parameters for model
Source:R/class_country.R
, R/class_infection.R
, R/pkg_generics.R
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, ...)
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 scaled contact matrix suitable for multiplication with \(R_0\) in force of infection calculations;contacts_workplace
: the contacts in workplaces scaled by their largest value (which is the leading eigenvalue of the diagonal matrix of contacts);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).contacts_between_sectors
: dummy matrix of zeros for future use.