m_i: A helper function to calculate a vector of mortality rates...

View source: R/m_i.R

m_iR Documentation

A helper function to calculate a vector of mortality rates from a gompertz model

Description

This helper function produces a vector of mortality rates for a sub-population. It is used in the main gompertz() function.

Usage

m_i(rho, m0, beta, age_vec)

Arguments

rho

matrix of population proportions. Dimension of matrix: 0-upper age limit of population x number of sub-populations.

m0

vector of initial mortality rates.

beta

vector of ageing rates.

age_vec

vector of ages from birth to upper age limit of population $\omega$

Examples

m_i(rho, mo, beta, age_vec)

pachristopher/projectRpkg documentation built on Nov. 24, 2022, 8:28 p.m.