Learn R Programming

tradeoffaucdim (version 0.1.0)

bootstrap_data: 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
)

Value

list

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

Examples

Run this code
bootstrap_data(bananaquality_sample)

Run the code above in your browser using DataLab