bootstrap_data {tradeoffaucdim}R 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)

[Package tradeoffaucdim version 0.1.0 Index]