strat.sub: Resample using Stratified Subsamples

View source: R/resample.R

strat.subR Documentation

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

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 Oct. 28, 2024, 6:30 a.m.