exp_decay: Exponential decay

View source: R/exp_decay.r

exp_decayR Documentation

Exponential decay

Description

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.

Usage

exp_decay(age, Z, N1 = 1, plus_group = FALSE)

Arguments

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. age[1]) at the beginning of the year

plus_group

Should the function include a plus group? logical

Author(s)

Nikolai Klibansky

Examples

## 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)

nikolaifish/bamExtras documentation built on July 21, 2023, 8:26 a.m.