age.group.time.window: Subset the datalist ptable to include only people who existed...

Description Usage Arguments Value Examples

View source: R/Misc/Pre.hhohhoMaxARTFinal.Sim/hho.rsimpacthelper.R View source: R/age.group.time.window.R

Description

Subset the datalist ptable to include only people who existed within the time window and of agegroup. Add the eposure start and end time.

Usage

1
2
age.group.time.window(datalist = datalist, agegroup = c(15, 30),
  timewindow = c(15, 30), site = "All")

Arguments

datalist

The datalist that is produced by readthedata

agegroup

Individuals within this agegroup

timewindow

The window of interest within the simulation time e.g timewindow = c(15, 30)

site

Select only the particular site from the study, if "all", use all sites.

Value

a data.table that only includes people who were alive at the timewindow and are within the agegroup

Examples

1
2
3
data(datalist)
agegroup.timewindow.df <- age.group.time.window(datalist = datalist, agegroup = c(15, 30),
timewindow = c(10, 40), site="All")

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