Nonparametric stratified bootstrapping

TODO

  • link to resamplingBoot

Install required packages

boot

Stratified sampling for two independent groups

Confidence interval for \(\mu_{2} - \mu_{1}\)

Function to return difference between group means.

Bootstrap with strata option for stratification.

BOOTSTRAP CONFIDENCE INTERVAL CALCULATIONS
Based on 999 bootstrap replicates

CALL : 
boot.ci(boot.out = bsTind, conf = 0.95, type = c("basic", "bca"))

Intervals : 
Level      Basic                BCa          
95%   (-11.380,  -1.413 )   (-11.627,  -1.630 )  
Calculations and Intervals on Original Scale

Compare with parametric confidence interval

[1] -11.608769  -1.522242
attr(,"conf.level")
[1] 0.95

Detach (automatically) loaded packages (if possible)

Get the article source from GitHub

R markdown - markdown - R code - all posts