exp_decay | R Documentation |
Compute numbers of individuals alive at time in a population experiencing exponential decay, allowing age-varying Z. Can be used to compute numbers at age at the beginning of the year.
exp_decay(age, Z, N1 = 1, plus_group = FALSE)
age |
ages at which to compute numbers alive. Can be fractional ages (e.g. daily, monthly) but |
Z |
instantaneous mortality rate |
N1 |
number of individuals at first age (i.e. |
plus_group |
Should the function include a plus group? logical |
Nikolai Klibansky
## Not run:
exp_decay(age=1:10,Z=0.2,N1=100)
exp_decay(age=1:10,Z=0.2,N1=100,plus_group = TRUE)
exp_decay(age=c(2,5,10),Z=0.2,N1=100,plus_group = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.