bootR_run: Bootstrapping Confidence Intervals with Base R

View source: R/boot_utils.R

bootR_runR Documentation

Bootstrapping Confidence Intervals with Base R

Description

Bootstrapping confidence intervals with base R.

Usage

bootR_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.

...

Other named arguments for statistic.

Details

Generate a dataframe of estimates using he boot::boot function for bootstrapping and boot::boot.ci to compute the confidence intervals.

Value

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

See Also

boot::boot boot::boot.ci


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