prep_simulation_shp: Performs pre-calculations necessary for the simulation of an...

Description Usage Arguments Value

View source: R/prep_simulation_shp.R

Description

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.

Usage

1
prep_simulation_shp(shp, pop_data, R0 = 1.8, sigma = 1/2.6, age = TRUE)

Arguments

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.

Value

Returns one dataframe, two matrix objects and one value for beta.


qleclerc/efficientspatial documentation built on May 23, 2019, 1:24 p.m.