strat.boot: Stratified Bootstrap Resampling

View source: R/resample.R

strat.bootR Documentation

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,
  verbosity = TRUE
)

Arguments

x

Input vector

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.

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".

seed

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

verbosity

Logical: If TRUE, print messages to console

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on March 28, 2024, 12:53 p.m.