bootstrap_resample: Bootstrap resampling with robust strategies

View source: R/helper_vimpute.R

bootstrap_resampleR Documentation

Bootstrap resampling with robust strategies

Description

Returns bootstrap row indices based on the chosen strategy. Strategies adapted from imputeRobust (Templ 2024).

Usage

bootstrap_resample(
  n,
  strategy = "stratified",
  weights = NULL,
  residuals = NULL,
  alpha = 0.75,
  best_subset = NULL
)

Arguments

n

Number of observations

strategy

One of "standard", "stratified", "residual"

weights

Robustness weights from model (currently unused in active strategies).

residuals

Model residuals. Used by "stratified" and "residual".

alpha

Fraction of "good" observations (default 0.75). Used by "stratified".

best_subset

Integer indices of best observations (currently unused).

Value

Integer vector of length n with bootstrap row indices


VIM documentation built on Sept. 2, 2026, 5:07 p.m.