summary.Mort1Dsmooth: Summary for Mort1Dsmooth objects

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Summarizes the Poisson P-spline model fitted to a unidimensional data. It returns various settings and measures.

Usage

1
2
## S3 method for class 'Mort1Dsmooth'
summary(object, ...)

Arguments

object

an object of class "Mort1Dsmooth", usually, a result of a call to Mort1Dsmooth.

...

further arguments passed to or from other methods.

Details

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.

Value

It produces an object of class summary.Mort1Dsmooth which contains exactly the same components of the associated Mort1Dsmooth object.

Author(s)

Carlo G Camarda

See Also

Mort1Dsmooth.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

Example output

Loading required package: svcm
Loading required package: Matrix
Loading required package: splines
Loading required package: lattice
Call:
Mort1Dsmooth(x = years, y = death, offset = log(exposure), lambda = 30, 
    method = 3)

Number of Observations                  : 37 
Effective dimension                     : 5.965 
(Selected) smoothing parameter          : 30 
Bayesian Information Criterion (BIC)    : 68.779 
Akaike's Information Criterion (AIC)    : 59.169 
(Estimated) dispersion parameter (psi^2): 1.52 

Residuals:
    Min      1Q  Median      3Q     Max 
-1.9481 -0.9754 -0.2397  0.8979  2.8307 

Settings and control:
  number of B-splines    : 10 
  degree of the B-splines: 3 
  order of differences   : 2 
  convergence tolerance  : 7.3164e-07

MortalitySmooth documentation built on May 2, 2019, 6:07 a.m.