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

View source: R/summary.Mort2Dsmooth.R

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

1 2 |

`object` |
an object of class "Mort2Dsmooth", usually, a result of
a call to |

`...` |
further arguments passed to or from other methods. |

`print.summary.Mort2Dsmooth`

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 parameters, overdispersion parameter and a summary
of the deviance residuals. The last lines show specifications and
control parameters of the fitted model on both axes.

It produces an object of class `summary.Mort2Dsmooth`

which
contains exactly the same components of the associated
`Mort2Dsmooth`

object.

Carlo G Camarda

1 2 3 4 5 6 7 8 9 10 11 12 13 | ```
## selected data
ages <- 10:60
years <- 1950:2006
death <- selectHMDdata("Sweden", "Deaths", "Males",
ages = ages, years = years)
exposure <- selectHMDdata("Sweden", "Exposures", "Males",
ages = ages, years = years)
## fit
fit <- Mort2Dsmooth(x=ages, y=years, Z=death,
offset=log(exposure),
method=3, lambdas=c(0.1, 1000))
## summary
summary(fit)
``` |

MortalitySmooth documentation built on May 29, 2017, 7:11 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.