elast | R Documentation |
Estimate the elasticity of RS on age.
elast(r, t, t0 = 0)
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. |
MLE of the elasticity of RS on Age, using Poisson regression.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.