Set up weight matrix for subsampling with sample proportion 1/2
to be used with
a numeric vector of weights for the model to be cross-validated.
number of folds, per default 25 for
a factor of the same length as
subsample can be used to build an appropriate
weight matrix to be used with
stabsel. See there for
strata is defined sampling is performed in each stratum
separately thus preserving the distribution of the
variable in each fold.