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
TRUEthe marginal survival curve withsas standard deviation is calculated instead of the standard survival curve. By defaultmarginalisTRUEifsis notNULL.- matrix
if
TRUEand the length ofalphais greater than one the result is a matrix with each row representing onealphavalue and each column representing a time. Otherwise the result is a list with each list element representing onealphavalue- set_attributes
if
TRUE(the default isFALSE) an attributeargscontaining the arguments given to this function is set in the result- interpol_info
if not
NULLit is expected to be a list containing the elementsstart(start year of interpolation) andlength(duration of interpolation in years)- ...
further arguments passed to
marginal_survivalorstandard_survival