rdeath-Life-method: rdeath

Description Usage Arguments Examples

Description

simulated time of death for an object of class Life. The simulation is in accordance with the multinomial distribution described by the LifeTable object. Uniform time of death is assumed between x values indicated by the LifeTable object.

Usage

1
2
## S4 method for signature 'Life'
rdeath(object, n)

Arguments

object

object of class Life

n

number of observations

Examples

1
2
3
4
5
6
rdeath(object = Life(m_ = 2), n = 5)
rdeath(object = Life(), n = 1000)
rdeath(object = Life(x_ = 2.4, t_ = 3, m_ = 0.5, benefit = list(BenefitDeath())), n = 5)
max(rdeath(Life(x_ = 2.4, 
                  t_ = 3,
                  m_ = 0), n = 1000)$death_t, na.rm = TRUE)

merlinoa/diehard3000 documentation built on May 22, 2019, 6:52 p.m.