general object to hold hazard, survival, or pdf

survival_curve

Format

R6Class object.

Value

Object of R6Class with methods

Fields

t

vector of time points

hazard

matrix or vector of hazard

survival

matrix or vector of survival

pdf

matrix or vector of pdf

Methods

display plot the conditonal survival/hazard/pdf

Examples

survival_curve$new(t, hazard)
#> Error in .subset2(public_bind_env, "initialize")(...): object 'hazard' not found
survival_curve$new(t, survival)
#> Error in .subset2(public_bind_env, "initialize")(...): object 'survival' not found
survival_curve$new(t, pdf)
#> Error in min(x, na.rm = na.rm): invalid 'type' (list) of argument