Description Usage Arguments Value
View source: R/bootstrap_model.R
This function gets passed a function that runs a single bootstrap resample and a number of resamples, and decides how to run them e.g. in parallel etc.
1 2 3 4 5 6 7 | bootstrap_runner(
bootstrap_function,
resamples,
parallelism = c("none", "future", "parallel"),
num_cores = NULL,
future_packages = NULL
)
|
bootstrap_function |
Function that we wish to run
|
resamples |
How many resamples of your data do you want to do? 9,999 is a reasonable default (see Hesterberg 2015), but start very small to make sure it works on your data properly, and to get a rough timing estimate etc. |
parallelism |
Type of parallelism (if any) to use to run the resamples. Options are:
|
num_cores |
How many cores to use.
Defaults to |
future_packages |
Packages to pass to created futures when
using |
Returns the list that contains the results of running
bootstrap_function
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.