getqxt {Q2q}R Documentation

getqxt: obtain the age specific mortality surface

Description

getqxt interpolate the age specific mortality rates for a set of life tables

Usage

getqxt(Qxt, nag, t)

Arguments

Qxt

A surface of Five-ages mortality rates which should be a numerical matrix containing mortality rates without age identification column and time identification row

nag

the number of age groups

t

the number of years

Value

qxt a matrix containing the age-specific mortality rates for age x in rows and for year t in columns

lxt a matrix containing the age evolution of survivorship for the year t

dxt a matrix containing the theoretical deaths occured at age x and year t

qxtl the age specific mortality rates interpolated using the Lagrange method for each year t

qxtk the age specific mortality rates interpolated using the Karup-king method for each year t

jonct_ages a vector containing, for each year t, the ages where qxtk and qxtl have been joined

Author(s)

Farid FLICI

Examples

getqxt(matrix(rep(c(0.12, seq(0.05, 0.5,by=0.05)), 5), byrow=FALSE, ncol=5), 11, 5)


[Package Q2q version 0.1.0 Index]