Learn R Programming

rtemis (version 0.79)

strat.boot: Stratified Bootstrap Resampling

Description

Stratified Bootstrap Resampling

Usage

strat.boot(x, n.resamples = 10, train.p = 0.75, stratify.var = NULL,
  strat.n.bins = 4, target.length = NULL, 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"

target.length

Integer: Number of cases for training set for resampler = "strat.boot". Default = length(y)

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