Description Usage Arguments Details Value
View source: R/calc_beta_shp.R
Estimates beta for an epidemic with a given R0 in a specific population in a Shapefile object, and calculates the expanded kernel matrix D to use when simulating an epidemic.
1 | calc_beta_shp(shp_data, dist_kernel, contact_mat, R0 = 1.8, sigma = 1/2.6)
|
shp_data |
The dataframe object containing the population data extracted from the Shapefile object. |
dist_kernel |
The distance kernel matrix. |
contact_mat |
The contact matrix for mixing between age groups. |
R0 |
The desired value for R0. |
sigma |
The desired value for the recovery rate. |
This function is automatically executed when using the prep_simulation_shp
function. It
uses the Next Generation Matrix approach to derive beta from R0.
Returns the value of beta and assigns the D matrix to the global environment.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.