Apply a selector to a collection of resampled designs
Source:R/sb_beta.R
sb_apply_selector_manual.RdApply a selector to a collection of resampled designs
Arguments
- X_norm
Normalised design matrix.
- resamples
List of matrices returned by
sb_resample_groups().- Y
Numeric response.
- selector
Variable-selection routine; function or character string. If it is a function, the selector name should be added as the fun.name attribute.
- ...
Extra arguments passed to the selector.
- keep_template
Logical; when
TRUE(default) the first column stores the coefficients fitted onX_normbefore any resampling. This avoids recomputing the selector on the original data and keeps the baseline fit available for diagnostics.