StMoMo0.4.1 package

Stochastic Mortality Modelling

apc

Create an Age-Period-Cohort mortality model

arima.string

Copy of unexported function arima.string from forecast

binomRes2q

Map Binomial deviance residuals into deaths

bootstrap.fitStMoMo

Bootstrap a fitted Stochastic Mortality Model

bootstrap

Generic method for bootstrapping a fitted Stochastic Mortality Model

cbd

Create a Cairns-Blake-Dowd mortality model

central2initial

Transform StMoMoData from central to initial exposures

coef.fitStMoMo

Extract coefficients from a fitted Stochastic Mortality Model

computeDevianceBinomial

Binomial deviance

computeDeviancePoisson

Compute Poisson deviance

computeLogLikBinomial

Compute Binomial loglikelihod

computeLogLikPoisson

Compute Poisson loglikelihod

extractCoefficientsFromGnm

Extract the model coefficient

extractCohort

Extract cohort from an age-period array

fit

Generic for fitting a Stochastic Mortality Model

fit.rh

Fit a Renshaw and Haberman (Lee-Carter with cohorts) mortality model

fit.StMoMo

Fit a Stochastic Mortality Model

fitted.fitStMoMo

Compute fitted values for a Stochastic Mortality Model

forecast.fitStMoMo

Forecast mortality rates using a Stochastic Mortality Model

forecast.iarima

Forecast independent arima series

forecast.mrwd

Forecast a Multivariate Random Walk with Drift

genBinomialResBootSamples

Generate Binomial residual bootstrap sample

genBinomialSemiparametricBootSamples

Generate Binomial semiparametric bootstrap samples

genPoissonResBootSamples

Generate Poisson residual bootstrap sample

genPoissonSemiparametricBootSamples

Generate Poisson semiparametric bootstrap samples

genWeightMat

Generate weight matrix

getMinimalFitStMoMo

Extract a lighter version of a fitted Stochastic Mortality Model

iarima

Fit independent arima series to a multivariate time series

initial2central

Transform StMoMoData from initial to central exposures

invlogit

Inverse Logit function invlogit computes the inverse logit function

lc

Create a Lee-Carter model

logit

Logit function logit computes the logit function

logLik.fitStMoMo

Log-Likelihood of a fitStMoMo object

m6

Create an M6 type extension of the Cairns-Blake-Dowd mortality model

m7

Create an M7 type extension of the Cairns-Blake-Dowd mortality model

m8

Create an M8 type extension of the Cairns-Blake-Dowd mortality model

mrwd

Fit a Multivariate Random Walk with Drift

plot.bootStMoMo

Plot bootstrapped parameters of a Stochastic Mortality Model

plot.fitStMoMo

Plot fitted parameters from a stochastic mortality model

plot.forStMoMo

Plot a forecast from a Stochastic Mortality Model

plot.resStMoMo

Plot the residuals of a Stochastic Mortality Model

plotParameterFan

Plot fanchart of the parameters

poissonRes2death

Map poisson deviance residuals into deaths

predict.fitStMoMo

Predict method for Stochastic Mortality Models fits

predictLink

Compute the link for a given mortality models

processStartValues

Process the initial parameter supplied by the user

residuals.fitStMoMo

Extract deviance residuals of a Stochastic Mortality Model

rh

Create a Renshaw and Haberman (Lee-Carter with cohorts) mortality mode...

scatterplotAPC

Do a scatter plot of a matrix according to age-period-cohorts

simulate.bootStMoMo

Simulate future sample paths from a Bootstrapped Stochastic Mortality ...

simulate.fitStMoMo

Simulate future sample paths from a Stochastic Mortality Model

simulate.iarima

Simulate independent arima series

simulate.mrwd

Simulate a Multivariate Random Walk with Drift

StMoMo

Create a new Stochastic Mortality Model

StMoMoData

Create StMoMoData object from demogdata object

Implementation of the family of generalised age-period-cohort stochastic mortality models. This family of models encompasses many models proposed in the actuarial and demographic literature including the Lee-Carter (1992) <doi:10.2307/2290201> and the Cairns-Blake-Dowd (2006) <doi:10.1111/j.1539-6975.2006.00195.x> models. It includes functions for fitting mortality models, analysing their goodness-of-fit and performing mortality projections and simulations.

  • Maintainer: Andres Villegas
  • License: GPL (>= 2)
  • Last published: 2018-04-13