Miscellaneous plotting functions for lca and lca.rh type regression objects.
A diagnostic plot with three graphical regions showing the residual values by the given ages, calendar years and (cohort) years of birth.
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
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.