epi.calc: Effective probability of infection (EPI)

Description Usage Arguments Value Examples

View source: R/risk_based_functions.R

Description

Calculates effective probability of infection (adjusted design prevalence) for each risk group for risk-based surveillance activities

Usage

1
epi.calc(pstar, rr, ppr)

Arguments

pstar

design prevalence (scalar)

rr

relative risk values (vector of values corresponding to the number of risk strata)

ppr

population proportions corresponding to rr values (vector of equal length to rr)

Value

list of 2 elements, a vector of EPI values and a vector of corresponding adjusted risks (in corresponding order to rr)

Examples

1
2
3
# examples for epi.calc
epi.calc(0.1, c(5, 1), c(0.1, 0.9))
epi.calc(0.02, c(5, 3, 1), c(0.1, 0.1, 0.8))

RSurveillance documentation built on July 2, 2020, 2:33 a.m.