getqxt: getqxt: obtain the age specific mortality surface

Description Usage Arguments Value Author(s) Examples

View source: R/Q2q.R

Description

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

Usage

1
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

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

Q2q documentation built on Jan. 13, 2021, 6:16 p.m.

Related to getqxt in Q2q...