Bootstrap Confidence Interval and Bias Correction Results
Source:R/bootstrap_calculations_helpers.R
get_dfRes.RdCalculates confidence intervals and bias-corrected estimates for bootstrap results.
Usage
get_dfRes(
Hobs,
seHobs,
H1_adj,
H2_adj = NULL,
ystar,
cov_method = "standard",
cov_trim = 0,
est.scale = "hr",
est.loghr = TRUE
)Arguments
- Hobs
Numeric. Observed estimate.
- seHobs
Numeric. Standard error of observed estimate.
- H1_adj
Numeric. Bias-corrected estimate 1.
- H2_adj
Numeric. Bias-corrected estimate 2 (optional).
- ystar
Matrix of bootstrap samples.
- cov_method
Character. Covariance method ("standard" or "nocorrect").
- cov_trim
Numeric. Trimming proportion for covariance (default: 0.0).
- est.scale
Character. "hr" or "1/hr".
- est.loghr
Logical. Is estimate on log(HR) scale?