alive.infected: Subset people alive at a point in time and adds their HIV...

Description Usage Arguments Value Examples

View source: R/Misc/Pre.hhohhoMaxARTFinal.Sim/hho.rsimpacthelper.R View source: R/alive.infected.R

Description

Produces a data frame that contains persons from the simulation that were alive at a specified point in time. The new data frame also contains a variable that indicates whether or not the person was infected with HIV at that point in time.

Usage

1
alive.infected(datalist = datalist, timepoint = 40, site = "All")

Arguments

datalist

The list object that is produced by readthedata

timepoint

Point in time at which the subset should be created and HIV status should be evaluated.

site

Users can specify a particular site they are interested in. The default is "All", which means that persons from all sites should be included.

Value

A data frame that contains a newly generated variable called "Infected" that records the HIV status of persons at the time point indicated.

Examples

1
2
3
4
cfg <- list()
modeloutput <- RSimpactCyan::simpact.run(configParams = cfg, destDir = "temp")
dl <- readthedata(modeloutput)
alive.at.twenty.df <- alive.infected(datalist = dl, timepoint = 20)

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