Sample bootstrap function
bootstrap_stats.RdThis function performs bootstrapping on a nested dataframe with a nested column called statistics.
Arguments
- data
A nested dataframe with a nested column called statistics.
- population
A vector representing the population from which the bootstrap samples will be drawn.
- cores
An optional argument indicating the number of CPU cores to use for parallel computation. If NULL, the function runs the bootstrap sequentially.
- R
The number of bootstrap resamples to generate.