cumulative_hazard_to_survival | R Documentation |
Helper function to transform between CHF and survival function
cumulative_hazard_to_survival(hazard_functions)
hazard_functions |
matrix or vector, with each row representing a cumulative hazard function |
A matrix or vector transformed to the form of a survival function.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.