Skip to contents

This function performs bootstrapping on a nested dataframe with a nested column called statistics.

Usage

bootstrap_stats(data, population, cores = NULL, R = 10000)

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.

Value

A nested dataframe with an additional column bootstrap containing the bootstrapped results.