residuals.fdm | R Documentation |
After fitting a Lee-Carter model or functional demographic model, it is useful to inspect the residuals or plot the fitted values. These functions extract the relevant information from the fit object.
## S3 method for class 'fdm' residuals(object, ...) ## S3 method for class 'fdm' fitted(object, ...) ## S3 method for class 'lca' fitted(object, ...) ## S3 method for class 'lca' residuals(object, ...)
object |
Output from |
... |
Other arguments. |
residuals.fdm
and residuals.lca
produce an object of
class “fmres” containing the residuals from the model.
fitted.fdm
and fitted.lca
produce an object of class
“fts” containing the fitted values from the model.
Rob J Hyndman.
fdm
, lca
, bms
fit1 <- lca(fr.mort) plot(residuals(fit1)) plot(fitted(fit1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.