mean.age.pos.vector.creator: Create a vector of mean ages among the HIV positive people

Description Usage Arguments Value Examples

View source: R/mean.age.pos.vector.creator.R

Description

Calculate the HIV prevalence, for specific age groups, in yearly intervals, from zero until the end of the simulation.

Usage

1
2
3
## S3 method for class 'age.pos.vector.creator'
mean(datalist = datalist,
  timevector = datalist$itable$hivseed.time[1]:datalist$itable$population.simtime[1])

Arguments

datalist

The datalist that is produced by readthedata

timevector

Vector of time point at which the mean age among HIV positive people must be calculated.

Value

A vector of mean ages among the HIV positive people.

Examples

1
2
3
data(datalist)
mean.age.pos.vector <- mean.age.pos.vector.creator(datalist = datalist, timevector = 10:60)
prev.vector.df

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