Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

extractCoefficientsFromGnm

Extract the model coefficient


Description

Extract the model coefficient of a stochastic mortality model from a gnm fit of the model

Usage

extractCoefficientsFromGnm(object, coefGnmModel, ages, years, cohorts,
  zeroWeigthAges, zeroWeigthYears, zeroWeigthCohorts)

Arguments

object

an object of class "StMoMo" defining the stochastic mortality model.

coefGnmModel

fitted coefficient from a gnm model fit.

ages

ages in the fitting data.

years

years in the fitting data.

cohorts

cohorts in the fitting data.

zeroWeigthAges

character vector of years whose parameters cannot be estimated because all data is zero weighted

zeroWeigthYears

character vector of years whose parameters cannot be estimated because all data is zero weighted

zeroWeigthCohorts

character vector of cohort whose parameters cannot be estimated because all data is zero weighted

Details

Weight vectors wx, wx, wc are used to identify parameters that cannot be estimated because all the data is weighted out.

Value

A list with the model parameters, ax, bx, kt, b0x, gc


StMoMo

Stochastic Mortality Modelling

v0.4.1
GPL (>= 2)
Authors
Andres Villegas <andresmauriciovillegas@gmail.com>, Pietro Millossovich <Pietro.Millossovich.1@city.ac.uk>, Vladimir Kaishev <Vladimir.Kaishev.1@city.ac.uk>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.