Description Usage Arguments Value Author(s) See Also Examples
A diagnostic plot with three graphical regions showing the residual values by the given ages, calendar years and (cohort) years of birth.
1 2 | residual_plots(lca.obj, file = paste("res", deparse(substitute(lca.obj)),
"ps", sep = "."), view = T)
|
lca.obj |
an object of class |
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 |
Diagnostic plot of the residual values of a Lee-Carter model object.
Zoltan Butt, Steven Haberman and Han Lin Shang
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.