bootstrap_data: Bootstrap data

View source: R/01_bootstrap_data.R

bootstrap_dataR Documentation

Bootstrap data

Description

Create a list with bootstrap samples

Usage

bootstrap_data(
  data,
  outcome = "Quality",
  indep_vars = c("Size", "Weight", "Sweetness", "Softness", "HarvestTime", "Ripeness",
    "Acidity"),
  n_samples = 50,
  n_maximum_dim = 5
)

Arguments

data

a dataframe to be analyzed

outcome

a string representing the outcome variable

indep_vars

a vector of strings to be considered

n_samples

number of bootstrap samples

n_maximum_dim

maximum number of variables to be considered

Value

list

Examples

bootstrap_data(bananaquality_sample)

tradeoffaucdim documentation built on June 10, 2025, 9:09 a.m.