These functions test for association/correlation between paired
samples based on the Pearson's product moment correlation coefficient
(a.k.a. sample correlation), Kendall's tau, and Spearman's rho
coefficients.
pearsonTest
, kendallTest
, and spearmanTest
are
wrappers of base R's cor.test
with simplified
interface. They provide 'exact' and approximate p-values for all
three alternatives (two-sided, less, and greater), as well as 95%
confidence intervals. This is particularly convenient in interactive
use.
Instead of calling the individual functions, one can use
correlationTest
and specify the required test with argument
method
.