powered by
Compute deviance residuals of a fitted Stochastic Mortality Model. These residuals can be plotted using plot.resStMoMo.
plot.resStMoMo
# S3 method for fitStMoMo residuals(object, scale = TRUE, ...)
an object of class "fitStMoMo" with the fitted parameters of a stochastic mortality model.
"fitStMoMo"
logical indicating whether the residuals should be scaled or not by dividing the deviance by the overdispersion of the model. Default is TRUE.
TRUE
other arguments.
An object of class "resStMoMo" with the residuals. This object has components:
"resStMoMo"
a matrix with the residuals.
ages corresponding to the rows in residuals.
residuals
years corresponding to the columns in residuals.
# NOT RUN { CBDfit <- fit(cbd(), data = central2initial(EWMaleData), ages.fit = 55:89) CBDres <- residuals(CBDfit) plot(CBDres) # }
Run the code above in your browser using DataLab