mx_qx: mx to qx

View source: R/LifeTable.R

mx_qxR Documentation

mx to qx

Description

Function to convert mx into qx and back, using the constant force of mortality assumption (CFM).

Usage

mx_qx(x, nx, ux, out = c("qx", "mx"))

Arguments

x

Vector of ages at the beginning of the age interval.

nx

Length of the age-intervals.

ux

A vector of mx or qx.

out

Type of the output: mx or qx.

Value

A vector of rates


mpascariu/MortalityLaws documentation built on Jan. 17, 2024, 3:43 a.m.