image thumbnail

BCa_bootstrap

version 1.0.2 (1.98 KB) by John Williams
Computes the bias-corrected and accelerated bootstrap estimate with confidence intervals and 2-tailed p-values

199 Downloads

Updated 06 Oct 2021

View License

Computes the bias-corrected and accelerated bootstrap estimate for confidence intervals and 2-tailed p-values of Efron, B., & Tibshirani, R. J. (1993). An Introduction to the Bootstrap, Chapman & Hall/CRC: New York.
Usage:
[p,CI] = BCa_bootstrap(data,loo,boot,null,confidence)
[p,CI] = BCa_bootstrap(data,loo,boot,null,confidence,adjustment)
p is the two-tailed p-value and CI is the confidence interval.
data - the statistic of interest calculated on the data
loo - a vector of length N of the leave-one-out values of the statistic
of interest.
boot - the bootstrapped values of the statistic of interest
null - (optional) the value of the statistic of interest under the null
hypothesis. Defaults to 0.
confidence - (optional) the % confidence for upper and lower bounds of
the confidence interval. Defaults to 95%
adjustment - (optional) NOT RECOMMENDED. This is included for a
specialized application. The integer value entered here will
include that many observations equal to the null value into
the bootstrap values AFTER calculating the bias and
acceleration.
Jared Van Snellenberg, PhD, 2009

Cite As

Jared X Van Snellenberg (2018). BCa_bootstrap (https://www.mathworks.com/matlabcentral/fileexchange/69119), MATLAB Central File Exchange. Retrieved [DATE].

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!