Description Usage Arguments Value Examples
View source: R/Misc/Pre.hhohhoMaxARTFinal.Sim/hho.rsimpacthelper.R View source: R/prevalence.calculator.R
Produces a data frame that contains the overall, and gender-stratified, HIV prevalence at a specified point in simulation time and for a specific age group.
1 2 | prevalence.calculator(datalist = datalist, agegroup = c(15, 30),
timepoint = 30)
|
datalist |
The list object that is produced by |
agegroup |
Boundaries of the age group (lower bound <= age < upper bound) that should be retained. Should be expressed as a vector of two integers. e.g. c(15, 30) |
timepoint |
Point in simulation time at which HIV prevalence should be calculated |
A data frame with prevalence estimate and surrounding confidence bounds, for the specified time point and age group, overall, and stratified by gender.
1 2 3 4 5 6 | cfg <- list()
modeloutput <- RSimpactCyan::simpact.run(configParams = cfg,
destDir = "temp")
dl <- readthedata(modeloutput)
prev.df <- prevalence.calculator(datalist = dl, agegroup = c(15, 30), timepoint = 30)
prev.df
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.