Learn R Programming

ilc (version 1.0)

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

Value

Plot

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.

See Also

residual_plots, fitted_plots, flc.plot, forecast, life.expectancy

Examples

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

Run the code above in your browser using DataLab