Miscellaneous plotting functions for lca and lca.rh type regression objects
A diagnostic plot with two graphical regions showing the fitted log rates by the given ages and calendar years.
fitted_plots(lca.obj, file = paste("fit", deparse(substitute(lca.obj)), "ps", sep = "."), view = T, labs = T, col)
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 "fit." 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 |
labs |
logical, if TRUE, it adds age/years text labels to fitted curves |
col |
color palette to be used in the plot |
Diagnostic plots of fitted curves by age and by calendar year of a Lee-Carter model object.
Z. Butt and S. Haberman and H. L. Shang
mod6 <- lca.rh(dd.cmi.pens, mod='lc', max=110) # send fitted plots with legends to 'fit.mod6.ps' file: fitted_plots(mod6) # send fitted plots without legends to active graphics window fitted_plots(mod6, file=NULL, labs=FALSE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.