Learn R Programming

rtemis (version 0.79)

strat.sub: Resample using Stratified Subsamples

Description

Resample using Stratified Subsamples

Usage

strat.sub(x, n.resamples = 10, train.p = 0.75, stratify.var = NULL,
  strat.n.bins = 4, seed = NULL, verbose = TRUE)

Arguments

n.resamples

Integer: Number of training/testing sets required

train.p

Float (0, 1): Fraction of cases to assign to traininig set for resampler = "strat.sub"

stratify.var

Numeric vector (optional): Variable used for stratification. Defaults to y

strat.n.bins

Integer: Number of groups to use for stratification for resampler = "strat.sub" / "strat.boot"

seed

Integer: (Optional) Set seed for random number generator, in order to make output reproducible. See ?base::set.seed

verbose

Logical: If TRUE, print messages to screen