calculate.prevalence
Calculate prevalence in an EMOD simulation
Description
Defaults to calculating HIV prevalence, but also may be used to calculate fraction of PLHIV who know their status, ART coverage, or other measures involving a numerator and denominator. Prevalence = (numerator)/(denominator)
Usage
calculate.prevalence(
data,
stratify_columns = c("Year", "Gender", "sim.id"),
numerator = "Infected",
denominator = "Population"
)
Arguments
Argument |
Description |
---|---|
|
A tibble returned from read.simulation.results() |
|
List of strings, names of stratifying columns included in the |
|
String, name of prevalence numerator |
|
String, name of prevalence denominator |