shape_surv | R Documentation |
Calculates a 'shape' value of survival lifespan inequality by comparing the area under a survival curve (over age) with the area under a constant survival function.
shape_surv(surv, xmin = NULL, xmax = NULL, trunc = FALSE, ...)
surv |
Either 1) a numeric vector describing a survival curve (lx), 2) a
In case (2) If |
xmin, xmax |
The minimum and maximum age respectively over which to
evaluate shape. If not given, these default to |
trunc |
logical determining whether to truncate life tables or not when
any |
... |
Additional variables passed to 'mpm_to_lx', if data are supplied as a matrix. |
a shape value describing lifespan inequality by comparing the area
under a survival (lx
) curve over age with the area under a constant
(Type II) survival function. The shape value may take any real value
between -0.5 and +0.5. A value of 0 indicates negligible ageing (neither
generally increasing nor generally decreasing survival with age); negative
values indicate negative senescence (generally increasing survival with
age); positive values indicate senescence (generally decreasing survival
with age). A value of +0.5 indicates that all individuals die at age of
maximum longevity; a value of -0.5 indicates that (hypothetically) all
individuals die at birth.
Iain Stott <iainmstott@gmail.com>
Other life history traits:
entropy_d()
,
entropy_k()
,
gen_time()
,
life_expect_mean()
,
longevity()
,
net_repro_rate()
,
repro_maturity
,
shape_rep()
# exponential decline in lx yields shape = 0
lx <- 0.7^(0:20)
shape_surv(lx)
data(mpm1)
shape_surv(mpm1$matU)
lx <- mpm_to_lx(mpm1$matU, start = 1)
shape_surv(lx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.