life.expectancy.mean: Calculate life expectancies for both sexes and all cuts of...

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/life.expectancy.all.R

Description

life.expectancy.mean calculates life expectancies and life.expectancy.ci computes confidence intervals for life expectancies. The functions take the output from make.demogdata and returns life expectancy results for both sexes and all years for the specified ages.

Usage

1
2
3
4
life.expectancy.mean(object, ages = c(0, 20, 45, 65))

life.expectancy.ci(object, ages = c(0, 20, 45, 65), nsim = 250,
  level = 95, smooth = FALSE, sigma = 0.0295)

Arguments

object

Output from make.demogdata.

ages

Ages for which life expectancy is required.

nsim

Number of simulations to use in the calculation.

level

Confidence level for the intervals.

smooth

If TRUE, smoothing will be used before computing life expectancies.

sigma

Value of sigma used in PES estimate for simulations.

Value

An array containing life expectancies for each year, age, and sex contained in object.

Author(s)

Rob J Hyndman <Rob.Hyndman@monash.edu>

References

Choi, C., Hyndman, R.J., Smith, L., and Zhao, K. (2010) An enhanced mortality database for estimating indigenous life expectancy. Report for Australian Institute of Health and Welfare.

See Also

life.expectancy

Examples

1
2

robjhyndman/indmortality documentation built on May 20, 2019, 6:48 p.m.