Learn R Programming

HIV.LifeTables (version 0.1)

mortmod.e0: Age-specific mortality rate model as a function of HIV prevalence and life expectancy at birth (e0)

Description

This function produces a complete set of mortality rates for ages 0, 1-4, 5-9, 10-14, ...,100+ given a region, sex, HIV prevalence and life expectancy at birth (e0)

Usage

mortmod.e0(e0, prev, region = 1, sex = 1, opt=TRUE)

Arguments

e0
Life exepctancy at birth
prev
HIV prevalence expressed as a percentage
region
An integer to indicate which regional model to use. 1 for Africa, 0 for Caribbean or Latin American
sex
An interger to indicate the sex of the desired life table. 1 for female, 0 for male
opt
opt=TRUE will use a value for the weight for the first SVD component that produces a set of age-specific mortality rates that produce a life expectancy at birth that matches the input life expectancy.

Value

See Also

hiv.mortmod

Examples

Run this code
mortmod.e0(e0=55, prev=2.5)

Run the code above in your browser using DataLab