powered by
Function for generating bootstrapped samples from 1 vector of lineup data
gen_boot_samples(lineup_vec, bootno)
A numeric vectors of lineup choices
Number of bootstrap samples
A dataframe of bootstrapped lineup data
# NOT RUN { #Data: lineup_vec <- round(runif(100,1,6)) bootno <- 1000 #Call: bootdf <- gen_boot_samples(lineup_vec, bootno) # }
Run the code above in your browser using DataLab