Permutation based EL and EEL test for a correlation coefficient.
perm.elcortest(y, x, tol = 1e-07, B = 999)
perm.eelcortest(y, x, tol = 1e-07, B = 999)
A vector with two values, the test statistic and its associated permutation based p-value.
A numerical vector.
A numerical vector.
The tolerance vlaue to terminate the Newton-Raphson algorithm.
The numer of permutations to perform.
Michail Tsagris
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
These functions compute the permutation based p-value for the hypothesis test that the Pearson correlation coefficient is equal to zero using the empirical likelihood or the exponential empirical likelihood.
Efron B. (1981) Nonparametric standard errors and confidence intervals. Canadian Journal of Statistics, 9(2): 139--158.
Owen A. B. (2001). Empirical likelihood. Chapman and Hall/CRC Press.
el.cor.test, permcor
perm.eelcortest( iris[, 1], iris[, 2])
Run the code above in your browser using DataLab