survival: Survival Probability

Description Usage Arguments Examples

View source: R/survival.R

Description

Survival Probability

Usage

1
survival(x, t, k = NA)

Arguments

x

Age.

t

Number of years survived beyond current age.

k

Die within this many years.

If k is not specified then the function will return the probability that a person aged x will live for at least another t years (they will live up to at least age x+t).

If a value for k is given then the function will return the probability that a person aged x will live for at least another t years but then die within the following k years.

Examples

1
2
survival(70, 5)
survival(70, 5, 10)

DataWookie/lifespan documentation built on March 3, 2021, 3:54 a.m.