(Internal) function that checks if folds result from subsampling with p = 0.5 and adds complementary pairs if needed.
check_folds(folds, B, n, sampling.type)
a weight matrix that represents the subsamples.
number of subsampling replicates.
the number of observations; needed for internal checks.
sampling type to be used.
A matrix containing the folds
, possibly after adding the
complementary pairs.
This is an internal function used to check if folds
are
specified correctly. For details (e.g. on arguments) see
stabsel
.
B. Hofner, L. Boccuto and M. Goeker (2015), Controlling false discoveries in high-dimensional situations: Boosting with stability selection. BMC Bioinformatics, 16:144. 10.1186/s12859-015-0575-3.
For details see stabsel
.