| quantile | R Documentation |
S4 method for the quantile generic: quantiles of the
age at death implied by a lifetable, obtained by linear interpolation
on the survivorship column l_x.
## S4 method for signature 'lifetable'
quantile(x, probs = seq(0, 1, 0.25), age = min(x@x), names = TRUE, ...)
x |
A |
... |
Further arguments (currently unused). |
probs |
Numeric vector of probabilities in |
age |
Youngest age to condition on (default: the youngest tabulated
age). Quantiles refer to the age at death given survival to |
names |
Logical: if |
A numeric vector of age-at-death quantiles.
median, modalAge
data(soa08Act)
quantile(soa08Act)
quantile(soa08Act, probs = c(0.1, 0.9), age = 65)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.