View source: R/create_biased_test_idx.R
create.biased.idx | R Documentation |
This function creates biased indices for testing with an additional confounder
create.biased.idx(sim.location, subsets, repetitions,
lab.svar = NULL, meta.svar = NULL, strat.scheme = 'all', bias = 0.5)
sim.location |
file name for the .h5 file containing the simulations |
subsets |
vector of intended subset sizes for resampled data |
repetitions |
number of unique sets of indices to generate for each subset size deemed valid |
lab.svar |
for real data, name of the main stratification "label"
variable in the original metadata; defaults to |
meta.svar |
for real data, a single string or vector of strings
corresponding to the name(s) of binary metadata variable(s) by which biased
resampling should be stratified; defaults to |
strat.scheme |
character, name of the index group to be written within
the .h5 file containing different indices for downstream testing
Can be either |
bias |
float, strength of the confounder bias in the subsampling |
todo
vector of real metadata variables insufficient for resampling, if
applicable, otherwise nothing returned & indices are written to
'sim.location'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.