as_R0: Calculate R0 from transmission rate

View source: R/RcppExports.R

as_R0R Documentation

Calculate R0 from transmission rate

Description

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

λ 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_R0(transmission_rate, contact_matrix, age_groups, duration = 1.8)

Arguments

transmission_rate

The transmission rate 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 R0


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