An exact correlation for ties or without ties. Methods of Kendall, Spearman and Pearson.
correl(x, y, method = "pearson", alternative = "two.sided")
x | Vector |
---|---|
y | Vector |
method | "pearson", "kendall", "spearman" |
alternative | "two.sided", "less", "greater" |
The correlation of x,y vector with the statistical value and its probability
Numerical Recipes in C. Second Edition.
#> $stat #> [1] 3.31896 #> #> $rho #> [1] 0.7105263 #> #> $pvalue #> [1] 0.0009035325 #>#> $stat #> [1] 5.402257 #> #> $rho #> [1] 0.8522099 #> #> $pvalue #> [1] 0.0002159178 #>#> $stat #> [1] 4.655866 #> #> $rho #> [1] 0.814477 #> #> $pvalue #> [1] 0.0006983906 #>