The sampler functions provide objects that include functionality to generate
resampled datasets used by stabletree
.
The bootstrap
function provides an object that can be used to generate
B
bootstrap samples by sampling from n
observations with
replacement.
The subsampling
function provides an object that can be used to
generate B
subsamples by sampling from floor(v*n)
observations without replacement.
The samplesplitting
function provides an object that can be used to
generate k
-folds from n
observations.
The jackknife
function provides an object that can be used to generate
all datasets necessary to perform leave-k
-out jackknife sampling from
n
observations. The number of datasets is limited by maxrep
to
prevent unintended CPU or memory overload by accidently choosing too large
values for k
.
The splithalf
function provides an object that can be used to
generate B
subsamples by sampling from floor(0.5*n)
observations without replacement. When used to implement the "splithalf"
resampling strategy for measuring the stability of a result via the
stability
function, the matrix containing the complement
learning samples is generated automatically by stability
.