BCa: BCa confidence interval

Description Usage Arguments Value Examples

View source: R/Function_1.R

Description

A function calculating BCa confidence interval for population mean using R

Usage

1
BCa(x, alpha, B)

Arguments

x

a vector composed of random sample points

alpha

confidence level

B

number of bootstrap replicates

Value

a named vector representing the confidence interval whose first and second elements are respectively lower bound and upper bound

Examples

1
2
3
4
5
## Not run: 
x<-rt(200,3)
BCa(x,0.95,500)

## End(Not run)

SC19009/SC19009 documentation built on Jan. 3, 2020, 12:09 a.m.