summary.Mort1Dsmooth {MortalitySmooth} | R Documentation |
Summarizes the Poisson P-spline model fitted to a unidimensional data. It returns various settings and measures.
## S3 method for class 'Mort1Dsmooth': summary(object, ...)
object |
An object of class "Mort1Dsmooth", usually, a result of
a call to Mort1Dsmooth . |
... |
Further arguments passed to or from other methods. |
print.summary.Mort1Dsmooth
tries to be smart about formatting
settings, outcomes, etc. After the matched call, the function presents
several outcomes of the model, such as AIC, BIC, effective dimension,
selected smoothing parameter, overdispersion parameter and a summary
of the deviance residuals. The last lines show specifications and
control parameters of the fitted model.
It produce an object of class summary.Mort1Dsmooth
which
contains exactly the same components of the associated
Mort1Dsmooth
object.
Carlo G Camarda
# selected data years <- 1970:2006 death <- selectHMDdata("Sweden", "Deaths", "Females", ages = 0, years = years) exposure <- selectHMDdata("Sweden", "Exposures", "Females", ages = 0, years = years) # fit fit <- Mort1Dsmooth(x=years, y=death, offset=log(exposure), method=3, lambda=30) # summary summary(fit)