Learn R Programming

ilc (version 1.0)

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

Description

Plots the forecasted period effect and life expectancy of the fitted Lee-Carter model in a single graphical window.

Usage

flc.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 a univariate ARIMA process (i.e. random walk with drift) in order to extrapolate the period effect $k_t$, which is illustrated by the fitted calendar years together with the corresponding forecasted life expectancy at the specified target age.

See Also

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

Examples

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

Run the code above in your browser using DataLab