community.attack.rate: Compute the community attack rate

Description Usage Arguments Details Value

View source: R/MCMC.functions.R

Description

Computes the community attack rate for a a cohort using the value of a call to household.transmission.

Usage

1
community.attack.rate(SIRmcmc,probs=c(0.5,0.025,0.975))

Arguments

SIRmcmc

The value of a call to household.transmission.

probs

A numeric vector of the quantiles of the posterior distribution. The default is the median and the central 95% credible region.

Details

Computes the posterior probability distribution of the community attack rate from the Metropolis algoritm. Returns quantiles of the distribution specified in the probs argument.

Value

An array of community attack rates. The first dimension is the value of epsilon in SIRmcmc. The second dimension is the posterior probability in the probs argument


SIRmcmc documentation built on Nov. 23, 2021, 9:09 a.m.