Learn R Programming

modernBoot (version 0.1.1)

bca_ci: Bias-Corrected and Accelerated (BCa) Bootstrap Confidence Interval

Description

Computes BCa confidence interval for the mean using the boot package.

Usage

bca_ci(x, R = 2000, conf = 0.95)

Value

A list with elements boot (object) and ci (matrix).

Arguments

x

numeric vector of data.

R

integer number of bootstrap replicates (default 2000).

conf

numeric confidence level between 0 and 1 (default 0.95).

Examples

Run this code
set.seed(42)
x <- rnorm(50, mean = 5, sd = 2)
result <- bca_ci(x, R = 500)
result$ci

Run the code above in your browser using DataLab