# corr.ci: Nonparametric confidence interval for Pearson's correlation... In TiagoOlivoto/WAASB: Multi Environment Trials Analysis using AMMI and BLUP

## Description

Computes the half-width confidence interval for correlation coefficient based on the nonparametri method proposed by Olivoto et al. (2018).

## Usage

 1 corr.ci(data = NA, r = NULL, n = NULL) 

## Arguments

 data A dataset containing variables only or a symetric correlation matrix. r If data is not available, provide the value for correlation coefficient. n The sample size if data is a correlation matrix or if r is informed.

## Details

The half-width confidence interval is computed according to the following equation:

CI_w = 0.45304^r \times 2.25152 \times n^{-0.50089}

where n is the sample size and r is the correlation coefficient.

## Author(s)

Tiago Olivoto [email protected]

## References

Olivoto, T., A.D.C. Lucio, V.Q. Souza, M. Nardino, M.I. Diel, B.G. Sari, D.. K. Krysczun, D. Meira, and C. Meier. 2018. Confidence interval width for Pearson's correlation coefficient: a Gaussian-independent estimator based on sample size and strength of association. Agron. J. 110:1-8. doi:10.2134/agronj2017.09.0566.

## Examples

 1 corr.ci(iris[,1:3]) 

TiagoOlivoto/WAASB documentation built on April 1, 2019, 10:25 a.m.