percentciboot: Percent Confidence Interval bootstrap

Description Usage Arguments Value References Examples

Description

obtains the percentile confidence interval for the mean.

Usage

1
percentciboot(sample, b, alpha = 0.05)

Arguments

sample,

the original sample.

b

an integer the desired numbers of bootstraps.

alpha

a number 1 - alpha is the confidence coefficient.

Value

a list with thata, lower, upper, thetastar

thata is the point estimate.

lower is the lower end of the percentile confidence interval.

upper is the upper end of the percentile confidence interval.

thetastar is the vector of bootstrapped thetastars

References

Hogg, R. McKean, J. Craig, A. (2018) Introduction to Mathematical Statistics, 8th Ed. Boston: Pearson.

Examples

1
2
3
4
sample <- c(4, 3, 2, 3)
b <- 20
alpha <- .05
percentciboot(sample, b, alpha)

joemckean/mathstat documentation built on May 30, 2019, 2:01 p.m.