as_transmission_rate: Calculate transmission rate from R0

View source: R/RcppExports.R

as_transmission_rateR Documentation

Calculate transmission rate from R0

Description

Uses the R0 (R0), contact matrix (c), population (N), and infectious period (γ) to calculate the transmission rate using the following equation.

R0/(max(EV(C)) γ)

where EV(C) denotes the eigenvalues of the matrix C which is calculated from the contact matrix and the population (C[i,j] = c[i,j] N[j]).

Usage

as_transmission_rate(R0, contact_matrix, age_groups, duration = 1.8)

Arguments

R0

The R0 of the disease

contact_matrix

The contact matrix between age groups

age_groups

The population size of the different age groups

duration

Duration of the infectious period. Default value is 1.8 days

Value

Returns the transmission rate


MJomaba/flu-evidence-synthesis documentation built on April 26, 2022, 11:12 p.m.