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 17, 2024, 2:04 p.m.