M_index_age: M index accounting for diminishing returns to age.

View source: R/M_Index_Age.R

M_index_ageR Documentation

M index accounting for diminishing returns to age.

Description

M index accounting for diminishing returns to age.

Usage

M_index_age(r, t, t0 = 0, Samples = 1000)

Arguments

r

A vector of RS values.

t

A vector of ages at death or last census.

t0

A vector of ages at first census. Defaults to zero.

Value

The M index accounting for diminishing returns to age.

Examples

set.seed(1)
RS = rpois(100, 5) 
Age = rpois(100, 45)
M_index_age(RS, Age)

ctross/SkewCalc documentation built on March 18, 2024, 7:49 a.m.