Learn R Programming

LEdecomp (version 1.0.4)

mx_to_qx: produce single-age qx values

Description

qx gives conditional death probabilities, in this case forced to be consistent with a set of mx and ax values per HMD Method Protocol eq 71.

Usage

mx_to_qx(mx, ax, nx = rep(1, length(mx)), closeout = TRUE)

Value

numeric vector of qx, the same length as mx

Arguments

mx

numeric vector of the mortality rates (central death rates)

ax

numeric vector of ax values

nx

age interval width, assumes 1 by default

closeout

logical. Default TRUE.