Description Usage Arguments Value Examples
View source: R/Misc/Pre.hhohhoMaxARTFinal.Sim/hho.rsimpacthelper.R View source: R/alive.infected.R
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.
1 | alive.infected(datalist = datalist, timepoint = 40, site = "All")
|
datalist |
The list object that is produced by |
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. |
A data frame that contains a newly generated variable called "Infected" that records the HIV status of persons at the time point indicated.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.