Get Values of (Standard or Marginal) Survival Curves
Usage
survivals(
t = 0:99,
alpha,
bz1,
bz0,
s = NULL,
marginal = !is.null(s),
matrix = TRUE,
set_attributes = FALSE,
interpol_info = NULL,
...
)
Arguments
- t
numeric vector of times (ages)
- alpha
numeric vector of alpha-parameter(s)
- bz1
bz1 parameter
- bz0
bz0 parameter
- s
passed to
marginal_survival
- marginal
if
TRUE
the marginal survival curve withs
as standard deviation is calculated instead of the standard survival curve. By defaultmarginal
isTRUE
ifs
is notNULL
.- matrix
if
TRUE
and the length ofalpha
is greater than one the result is a matrix with each row representing onealpha
value and each column representing a time. Otherwise the result is a list with each list element representing onealpha
value- set_attributes
if
TRUE
(the default isFALSE
) an attributeargs
containing the arguments given to this function is set in the result- interpol_info
if not
NULL
it is expected to be a list containing the elementsstart
(start year of interpolation) andlength
(duration of interpolation in years)- ...
further arguments passed to
marginal_survival
orstandard_survival