calc_beta_shp: Estimates beta from a given R0 (Shapefile)

Description Usage Arguments Details Value

View source: R/calc_beta_shp.R

Description

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.

Usage

1
calc_beta_shp(shp_data, dist_kernel, contact_mat, R0 = 1.8, sigma = 1/2.6)

Arguments

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.

Details

This function is automatically executed when using the prep_simulation_shp function. It uses the Next Generation Matrix approach to derive beta from R0.

Value

Returns the value of beta and assigns the D matrix to the global environment.


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