community_attack_rate {SIRmcmc}R Documentation

Compute the community attack rate

Description

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

Usage

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


[Package SIRmcmc version 1.1.1 Index]