Returns bootstrap row indices based on the chosen strategy. Strategies adapted from imputeRobust (Templ 2024).
bootstrap_resample(
n,
strategy = "stratified",
weights = NULL,
residuals = NULL,
alpha = 0.75,
best_subset = NULL
)Integer vector of length n with bootstrap row indices
Number of observations
One of "standard", "stratified", "residual"
Robustness weights from model (currently unused in active strategies).
Model residuals. Used by "stratified" and "residual".
Fraction of "good" observations (default 0.75). Used by "stratified".
Integer indices of best observations (currently unused).