Learn R Programming

HIV.LifeTables (version 0.1)

HIV.LifeTables-package: HIV calibrated model life tables for countries with generalized HIV epidemics

Description

The functions in this package produce a complete set of mortality rates as a function of a combination of HIV prevalence and either life expectancy at birth (e0), child mortality alone (5q0), or child mortality with adult mortality (45q15)

Arguments

Details

Package:
HIV.LifeTables
Type:
Package
Version:
0.1
Date:
2013-12-02
License:
Unlimited
The central function is hiv.mortmod which takes prevalence and some mortality indicator (e0, 5q0 alone, or 5q0 with 45q15) to produce set of mortality rates. The user also needs to select a region (Africa or Caribbean) and sex. hiv.mortmod will also produce a life table based on the estimated mortality rates. mortmod.e0, mortmod.5q0, and mortmod.45q15 produce mortality rates for the various input combinations.

References

Sharrow, David J., Samuel J. Clark, Adrian E. Raftery. 2013 “Modeling Age-Specific Mortality for Countries with a Generalized HIV Epidemic” http://www.iussp.org/en/event/17/programme/paper/3284

Examples

Run this code
## produces a life table and mortality rates at 1.5% prevalence, 
## life expectancy of 60, for Africa Females 
hiv.mortmod(prev=1.5, e0=60, model=1, region=1, sex=1, lt=TRUE)

Run the code above in your browser using DataLab