Skip to contents

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 with s as standard deviation is calculated instead of the standard survival curve. By default marginal is TRUE if s is not NULL.

matrix

if TRUE and the length of alpha is greater than one the result is a matrix with each row representing one alpha value and each column representing a time. Otherwise the result is a list with each list element representing one alpha value

set_attributes

if TRUE (the default is FALSE) an attribute args 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 elements start (start year of interpolation) and length (duration of interpolation in years)

...

further arguments passed to marginal_survival or standard_survival