Learn R Programming

SVDMx (version 0.1.0)

q1to5: Convert life table probabilities of Dying from 1-year to standard 5-year age groups

Description

Convert 1-year life table probabilities of dying 1qx to standard five-year age groups: 0, 1-4, 5-9, etc.

Usage

q1to5(q1)

Value

Data frame: equivalent values for 5qx.

Arguments

q1

Decimal: the input values for 1qx; either a single vector or a matrix, age x life table.

Author

Samuel J. Clark, work@samclark.net

Examples

Run this code
q1 <- qx("female",0.08,out5=FALSE)
q1to5(q1)

Run the code above in your browser using DataLab