residual_plots: Miscellaneous plotting functions for 'lca' and 'lca.rh' type...

Description Usage Arguments Value Author(s) See Also Examples

Description

A diagnostic plot with three graphical regions showing the residual values by the given ages, calendar years and (cohort) years of birth.

Usage

1
2
residual_plots(lca.obj, file = paste("res", deparse(substitute(lca.obj)), 
				"ps", sep = "."), view = T)

Arguments

lca.obj

an object of class lca

file

an optional string value indicating the output postscript file name (i.e. with extension .ps). By default, it concatenates "res." and the model object name (with extension ".ps"). If it is set to NULL, the plot will be sent instead to the active graphical window.

view

logical, if TRUE (and file argument is not NULL) then Ghostview will be launched with the created .ps file

Value

Diagnostic plot of the residual values of a Lee-Carter model object.

Author(s)

Zoltan Butt, Steven Haberman and Han Lin Shang

See Also

fitted_plots, lca.rh

Examples

1
2
3
4
5
mod6d <- lca.rh(dd.cmi.pens, mod='lc', restype='dev', interpolate=TRUE)
# send fitted plots with legends to 'res.mod6.ps' file:
residual_plots(mod6d)
# send fitted plots to active graphics window
residual_plots(mod6d, file=NULL)

ilc documentation built on May 2, 2019, 5:07 a.m.