Takes in a list of unique levels in the random columns, gives back a random sampling of each.
gen_sample(
list_of_levels,
rand_columns = NULL,
unique_resample_lim = NULL,
reduce_by_one = TRUE
)
List of vectors of levels of each random effect.
Default NULL
. Name of columns to randomise over;
if NULL
, will use all in list_of_levels
Default NULL
;
optionally set a minimal number of unique levels each sample
must produce. Note that it should be a named vector,
the same as the levels to randomise over.
Logical, default TRUE
;
for greater coverage,
resample one less than the number of levels in each list.
A list of samples