cumulative_hazard_to_survival {survex} | R Documentation |
Transform Cumulative Hazard to Survival
Description
Helper function to transform between CHF and survival function
Usage
cumulative_hazard_to_survival(hazard_functions)
Arguments
hazard_functions |
matrix or vector, with each row representing a cumulative hazard function |
Value
A matrix or vector transformed to the form of a survival function.
Examples
library(survex)
vec <- c(1, 2, 3, 4, 5)
matr <- matrix(c(1, 2, 3, 2, 4, 6), ncol = 3)
cumulative_hazard_to_survival(vec)
cumulative_hazard_to_survival(matr)
[Package survex version 1.2.0 Index]