Permutation based p-value for the Pearson correlation coefficient.
permcor(x, y, R = 999)
A numerical vector with the first variable.
A numerical vector with the second variable.
The number of permutations to be conducted; set to 999 by default.
This is a very low computational calculation of the p-value. Try it yourselves.
A vector consisting of two values, the Pearson correlation and the permutation based p-value.
Marios Dimitriadis and Michail Tsagris
R implementation and documentation: Marios Dimitriadis and Michail Tsagris <email@example.com> and <firstname.lastname@example.org>
Chatzipantsiou C., Dimitriadis M., Papadakis M. and Tsagris M. (2019). Extremely efficient permutation and bootstrap hypothesis tests using R. To appear in the Journal of Modern Applied Statistical Methods.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.