Description Usage Arguments Value
View source: R/prep_simulation_shp.R
Creates the age mixing matrix and the spatial kernel using the load_contact_mat
,
calc_dist_mat_shp
, calc_dist_kernel_shp
and calc_beta_shp
functions.
1 | prep_simulation_shp(shp, pop_data, R0 = 1.8, sigma = 1/2.6, age = TRUE)
|
shp |
The Shapefile object containing the population structure. |
pop_data |
The dataframe containing the population data |
R0 |
The desired R0 for the epidemic |
sigma |
The desired recovery rate for the epidemic |
age |
Logical. If TRUE, the simulation will assume four distincts age groups in the population (default). If FALSE, the simulation will assume homogeneous mixing between age groups in the population. |
Returns one dataframe, two matrix objects and one value for beta.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.