BootstrapR2 function

R2 confidence intervals by bootstrap resampling

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)

Arguments

  • ind.data: Matrix of residuals or indiviual measurments
  • iterations: Number of resamples to take
  • parallel: if TRUE computations are done in parallel. Some foreach backend must be registered, like doParallel or doMC.

Returns

returns a vector with the R2 for all populations

Examples

r2.dist <- BootstrapR2(iris[,1:4], 30) quantile(r2.dist)

See Also

BootstrapRep, AlphaRep

Author(s)

Diogo Melo Guilherme Garcia

  • Maintainer: Diogo Melo
  • License: MIT + file LICENSE
  • Last published: 2023-12-05

Useful links