View source: R/survival_functions.R
boot_hr | R Documentation |
boot_hr
computes bootstrap hazard ratios (HR) of two survival models (model 1 vs. 2) or one survival model with multiple treatments (rx 1 vs. 2)Bootstrap hazards ratios of two survival models
boot_hr
computes bootstrap hazard ratios (HR) of two survival models (model 1 vs. 2) or one survival model with multiple treatments (rx 1 vs. 2)
boot_hr(
surv_model1 = NULL,
surv_model2 = NULL,
rx1 = NULL,
rx2 = NULL,
rx = F,
surv_model_rx = NULL,
times,
B = 100
)
surv_model1 |
first survival model. |
surv_model2 |
second survival model. |
rx1 |
first treatment arm (if rx = T). |
rx2 |
second treatment arm (if rx = T). |
rx |
whether to model treatment arms within one model. Default = FALSE. |
surv_model_rx |
survival model (if rx = T), can only choose weibull or gamma models. |
times |
time horizon the extrapolation of the survival model is done over. |
B |
number of bootstrap samples. |
dataframe of hazard ratio statistics (2.5% percnetile, median, 97.5% percentile, time points)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.