hiv.negative.lifeyears: A function that returns the total number of HIV-negative life...

Description Usage Arguments Value Examples

View source: R/hiv.negative.lifeyears.R

Description

A function that returns the total number of HIV-negative life years lived between two points in simulation time, for a particular age group and gender.

Usage

1
2
hiv.negative.lifeyears(datalist = datalist, agegroup = c(15, 30),
  timewindow = c(15, 30), site = "All")

Arguments

datalist

The datalist that is produced by readthedata

agegroup

HIV ngative within this agegroup.

timewindow

HIV negative time window e.g timewindow = c(30, 40).

site

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

Value

the total number of HIV-negative life years lived aggregated by gender.

Examples

1
2
3
4
data(datalist)
hiv.negative.lifeyears <- hiv.negative.lifeyears(datalist = datalist,
agegroup=c(15, 40), timewindow=c(15, 30), site="All")
hiv.negative.lifeyears

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