correlationTest(x, y, method = c("pearson", "kendall", "spearman"),
title = NULL, description = NULL)
pearsonTest(x, y, title = NULL, description = NULL)
kendallTest(x, y, title = NULL, description = NULL)
spearmanTest(x, y, title = NULL, description = NULL)
"htest"
a different output report is produced. The classical tests presented
here return an S4 object of class "fHTEST"
. The object contains
the following slots:"htest"
.@test
returns an object of class "list"
containing (at least) the following elements:correlationTest
tests for association between
paired samples allowing to compute Pearson's product moment correlation
coefficient, Kendall's tau, or Spearman's rho.Lehmann E.L. (1986); Testing Statistical Hypotheses, John Wiley and Sons, New York.
locationTest
,
scaleTest
,
varianceTest
.## x, y -
x = rnorm(50)
y = rnorm(50)
## correlationTest -
correlationTest(x, y, "pearson")
correlationTest(x, y, "kendall")
spearmanTest(x, y)
Run the code above in your browser using DataLab