Description Usage Arguments Value Author(s) References See Also Examples
View source: R/life.expectancy.all.R
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.
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)
|
object |
Output from |
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. |
An array containing life expectancies for each year, age, and sex
contained in object
.
Rob J Hyndman <Rob.Hyndman@monash.edu>
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.
life.expectancy
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.