Learn R Programming

emil (version 1.1-6)

subresample: Generate resampling subschemes

Description

A subscheme is a resampling scheme that only includes observations in the training set of an original scheme. This function automatically fetches the type and parameters of the prototype and use them to generate the subscheme.

Usage

subresample(fold, y)

Arguments

fold
A resampling scheme or fold to use to define the sub scheme(s).
y
The observations used to create the resampling scheme. See resample for details.

Value

  • A resampling scheme.

See Also

emil, resample

Examples

Run this code
cv <- resample("holdout", y=12, frac=1/4, nfold=3)
inner.cv <- subresample(cv, y=12)

Run the code above in your browser using DataLab