cumulative_hazard_to_survival function

Transform Cumulative Hazard to Survival

Transform Cumulative Hazard to Survival

Helper function to transform between CHF and survival function

cumulative_hazard_to_survival(hazard_functions)

Arguments

  • hazard_functions: matrix or vector, with each row representing a cumulative hazard function

Returns

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)
  • Maintainer: Mikołaj Spytek
  • License: GPL (>= 3)
  • Last published: 2023-10-24