Compute bootstrap variance of the log hazard ratio
Arguments
- data
A data frame with a column
log_hrcontaining bootstrap log hazard ratio estimates, as returned by multiple calls toget_ipcw_cox_fit_se()orget_cox_fit_se().- B
Integer. Number of bootstrap samples used.
Examples
# Toy example with 10 simulated bootstrap log HRs
boot_results <- data.frame(log_hr = rnorm(10, mean = -0.5, sd = 0.2))
get_boot_var_se(boot_results, B = 10)
#> [1] 0.05129527