Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fle.plot

Miscellaneous plotting functions for lca and lca.rh type regression objects. Plot of forecasted life expectancy based on a fitted Lee-Carter model object


Description

Compute the historical and forecasted life expectancy from a fitted LC object and plot them in a single (overlay) figure.

Usage

fle.plot(lca.obj, at = 65, ...)

Arguments

lca.obj

an object of class lca

at

target age at which to calculate life expectancy

...

additional arguments to forecast function

Details

It makes use of the life.expectancy and forecast functions from the demography and forecast packages, respectively, in order to compute life expectancy at the specified target age.

Value

Plot

Author(s)

Z. Butt and S. Haberman and H. L. Shang

See Also

Examples

mod6 <- lca.rh(dd.cmi.pens, mod='lc', interpolate=TRUE)
fle.plot(mod6, at=60, h=30, level=90)

ilc

Lee-Carter Mortality Models using Iterative Fitting Algorithms

v1.0
GPL (>= 2)
Authors
Zoltan Butt, Steven Haberman and Han Lin Shang
Initial release
2014-11-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.