| median | R Documentation |
S4 method for the median generic: the median age at
death implied by a lifetable, i.e. the age at which the survivorship
column l_x has fallen to half of its value at age (linear
interpolation on l_x).
## S4 method for signature 'lifetable'
median(x, na.rm = FALSE, ...)
x |
A |
na.rm |
Unused, kept for compatibility with the generic. |
... |
Optional |
The median age at death (a numeric value).
quantile, modalAge, exn
data(soa08Act)
median(soa08Act) # median age at death from birth
median(soa08Act, age = 65) # median age at death given survival to 65
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.