boot_run: Bootstrapping Confidence Intervals with Tidyverse

View source: R/boot_utils.R

boot_runR Documentation

Bootstrapping Confidence Intervals with Tidyverse

Description

Bootstrapping confidence intervals with tidyverse.

Usage

boot_run(data, func, times = 1000, alpha = 0.05, seed = NULL, ...)

Arguments

data

Dataframe of raw data.

func

Function applied to data by bootstrapping.

times

Number of bootstrap replicates. Default is 1000.

alpha

Alpha used by percentile to give interval in c(alpha, 1- alpha).

seed

Seed for random number generator. If NULL the seed itself is random.

...

Additional arguments used by func.

Details

Bootstrapping confidence intervals using the rsample package.

Value

Dataframe with term, .lower, .estimate, .upper, .alpha, .method.

Source

https://rsample.tidymodels.org/articles/Applications/Intervals.html

See Also

rsample::bootstraps rsample::int_pctl


FrankLef/fciR documentation built on Nov. 12, 2023, 6:09 a.m.