R2 confidence intervals by bootstrap resampling
Random populations are generated by resampling the suplied data or residuals. R2 is calculated on all the random population's correlation matrices, provinding a distribution based on the original data.
BootstrapR2(ind.data, iterations = 1000, parallel = FALSE)
ind.data
iterations
parallel
returns a vector with the R2 for all populations
r2.dist <- BootstrapR2(iris[,1:4], 30) quantile(r2.dist)
BootstrapRep, AlphaRep
BootstrapRep
AlphaRep
Diogo Melo Guilherme Garcia
Useful links