View source: R/100_Resampler.R
| setup_StratSub | R Documentation |
Setup StratSub Resampler
setup_StratSub(
n_resamples = 10L,
train_p = 0.75,
stratify_var = NULL,
strat_n_bins = 4L,
id_strat = NULL,
seed = NULL
)
n_resamples |
Integer [1, Inf): Number of resamples to make. |
train_p |
Numeric (0, 1): Training set percentage. |
stratify_var |
Optional Character: Variable to stratify by. |
strat_n_bins |
Integer [1, Inf): Number of bins to stratify by. |
id_strat |
Optional Character: Name of the column holding per-case grouping IDs, e.g.
subject IDs when the dataset contains repeated measurements. Cases sharing an ID stay in the
same resample, so a case can only be present in the training or the test set, not both.
Requires that |
seed |
Optional Integer [0, Inf): Random seed. |
StratSubConfig object.
EDG
strat_sub_resampler <- setup_StratSub(n_resamples = 10L, seed = 2026L)
strat_sub_resampler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.