Learn R Programming

SIRmcmc (version 1.1.1)

Compartmental Susceptible-Infectious-Recovered (SIR) Model of Community and Household Infection

Description

We build an Susceptible-Infectious-Recovered (SIR) model where the rate of infection is the sum of the household rate and the community rate. We estimate the posterior distribution of the parameters using the Metropolis algorithm. Further details may be found in: F Scott Dahlgren, Ivo M Foppa, Melissa S Stockwell, Celibell Y Vargas, Philip LaRussa, Carrie Reed (2021) "Household transmission of influenza A and B within a prospective cohort during the 2013-2014 and 2014-2015 seasons" .

Copy Link

Version

Install

install.packages('SIRmcmc')

Monthly Downloads

181

Version

1.1.1

License

GPL (>= 2)

Maintainer

F Dahlgren

Last Published

January 11th, 2024

Functions in SIRmcmc (1.1.1)

household_transmission

Estimate parameters from SIR model
hh.transmission.epsilon

Simulated data under SIR, with covariates.
MCMC_date

Convert dates to a list of extendend natural numbers.
community_attack_rate

Compute the community attack rate
secondary_attack_rate

Compute the secondary attack rate
prior

Compute prior probability of parameters
unifprior

A uniform prior on the model parameters
hh.transmission

Simulated data under the SIR.