View source: R/consistency_resample.R
| consistency_resample_compare | R Documentation |
Calls the package's run_single_consistency_split() R_true times and
compares the Monte Carlo rate to the closed-form and multiplier
approximations from consistency_resample(). Survival path only; for the
GLM paths use the standalone GLM validator.
consistency_resample_compare(
df,
hr.consistency = 1,
R_true = 400L,
draws = 1000L,
multiplier = "rademacher",
tte.name = "Y",
event.name = "Event",
treat.name = "Treat",
cox_init = 0,
adjust_covariates = NULL,
seed = NULL
)
df |
data.frame/data.table with the relevant outcome columns. |
hr.consistency |
Numeric; survival HR consistency threshold (also the
default GLM threshold when |
R_true |
Integer; number of literal random splits used for the truth. |
draws |
Integer; multiplier draws for the Monte Carlo path. |
multiplier |
Character; |
tte.name, event.name, treat.name |
Character; survival/treatment column names. |
cox_init |
Numeric; Cox warm-start. |
adjust_covariates |
This option is implemented but has not been
tested against the manuscript analyses or the simulation studies of
León and Anderson (2026a, 2026b), which use the unadjusted
treatment-only fits.
Character vector or |
seed |
Integer or |
One-row data.frame with n, d, beta_hat, sigma_D,
rate_true, valid_true, rate_closed, rate_mc, err_closed,
err_mc.
consistency_resample(), run_single_consistency_split()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.