agedistr.creator: Create an age distribution for the population at the start of...

Description Usage Arguments Value Examples

View source: R/Misc/Pre.hhohhoMaxARTFinal.Sim/hho.rsimpacthelper.R View source: R/agedistr.creator.R

Description

Create an age distribution, consistent with a Weibull survival distribution in the absence of HIV-related mortality, for the population at the start of the simulation.

Usage

1
agedistr.creator(shape = 5, scale = 65)

Arguments

shape

The shape parameter for the Weibull distribution function (default is 5)

scale

The scale parameter for the Weibull distribution function (default is 65)

Value

a data.frame with Age, Percent.Male and Percent.Female as variables, and 101 rows (0.5 to 100.5 years old). Nobody gets older than 100 years old.

Examples

1
2
agedist.data.frame <- agedistr.creator(shape = 5, scale = 65)
agedist.data.frame

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