prevalence.calculator: Calculate HIV prevalence, overall and stratified.

Description Usage Arguments Value Examples

View source: R/Misc/Pre.hhohhoMaxARTFinal.Sim/hho.rsimpacthelper.R View source: R/prevalence.calculator.R

Description

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.

Usage

1
2
prevalence.calculator(datalist = datalist, agegroup = c(15, 30),
  timepoint = 30)

Arguments

datalist

The list object that is produced by readthedata

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

Value

A data frame with prevalence estimate and surrounding confidence bounds, for the specified time point and age group, overall, and stratified by gender.

Examples

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

wdelva/RSimpactHelp documentation built on Dec. 26, 2019, 3:42 a.m.