Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

BootstrapR2

R2 confidence intervals by bootstrap resampling


Description

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.

Usage

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.

Value

returns a vector with the R2 for all populations

Author(s)

Diogo Melo Guilherme Garcia

See Also

Examples

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

evolqg

Tools for Evolutionary Quantitative Genetics

v0.2-8
MIT + file LICENSE
Authors
Ana Paula Assis, Diogo Melo, Edgar Zanella, Fabio Andrade Machado, Guilherme Garcia
Initial release
2020-11-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.