Description Usage Arguments Value Author(s) See Also Examples
A diagnostic plot with two graphical regions showing the fitted log rates by the given ages and calendar years.
1 2 | 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
1 2 3 4 5 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.