Learn R Programming

emil (version 2.2.10)

subresample: Generate resampling subschemes

Description

A subscheme is a resampling scheme that only includes observations in the training set of a fold. This function automatically fetches the type and parameters of the prototype fold 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
# NOT RUN {
cv <- resample("holdout", y=1:12, test_fraction=1/4, nfold=3)
inner.cv <- subresample(cv, y=1:12)
# }

Run the code above in your browser using DataLab