Learn R Programming

MortHump (version 0.2)

coef.morthump: Extract the coefficients from a morthump object

Description

Extract the coefficients from a morthump object

Usage

# S3 method for morthump
coef(object, ...)

Arguments

object

an object of class morthump, resulting from the fit of a given mortality model

...

other arguments

Value

fitted values for the mortality model defined in morthump

Details

The nature of the coefficients depends on the type of mortality model used to fit the mortality schedule.

  • If the model was specified as parametrical, the coefficients are the parameters as defined by the models' authors. For instance, in the case of the model defined by Heligman and Pollard (1980), the parameters are named A to H and each has a particular interpretation.

  • If the model was specified as non-parametrical, the coefficients correspond to the B-spline coefficients.

See Also

morthump

Examples

Run this code
# NOT RUN {
data("CHE2010m")

# fits the Heligman-Pollard model (parametrical)
fit <- morthump(data = CHE2010m, model = "hp")
# extract the estimates for the eight coefficients
coef(fit)

# }

Run the code above in your browser using DataLab