Learn R Programming

LEdecomp (version 1.0.4)

abridge_mx: Abridge a single-year mx schedule to 0,1,5,... using lifetable quantities

Description

Abridge a single-year mx schedule to 0,1,5,... using lifetable quantities

Usage

abridge_mx(mx, age, sex = "t", closeout = TRUE)

Value

numeric vector of abridged mx at ages c(0, 1, 5, 10, ...)

Arguments

mx

numeric vector of single-year mortality rates (ages 0,1,2,...)

age

numeric vector of the same length as mx, usually 0:(n-1)

sex

character, passed to mx_to_ax(), default "t"

closeout

logical, passed to lifetable helpers, default TRUE