elast: Estimate the elasticity of RS on age.

View source: R/Elast.R

elastR Documentation

Estimate the elasticity of RS on age.

Description

Estimate the elasticity of RS on age.

Usage

elast(r, t, t0 = 0)

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

MLE of the elasticity of RS on Age, using Poisson regression.

Examples

set.seed(1)
Age = rpois(100, 45)
RS = rep(NA,100)
for(i in 1:100) RS[i] = rpois(1, 5*Age[i]^0.75) 
elast(RS, Age)

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