correl {agricolae} | R Documentation |
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" |
x |
Numeric |
y |
Numeric |
...
Felipe de Mendiburu
Numerical Recipes in C. Second Edition.
library(agricolae) data(soil) attach(soil) correl(pH,clay,method="kendall") correl(pH,clay,method="spearman") correl(pH,clay,method="pearson")