conditional_lifespan: Draw conditional lifespan

Description Usage Arguments Value

View source: R/equilibrium_birth_death_sampling.R

Description

Makes a draw of the lifespan (in days), given a current age

Usage

1
conditional_lifespan(age, age_of_death, max_age = 89)

Arguments

age

Current age (days)

age_of_death

Equilibrium probability of death

max_age

Maximum age (in years, actual maximum is this + 364 days)

Value

A single conditioned lifespan draw


mrc-ide/siR documentation built on May 6, 2019, 4:33 p.m.