powered by
An exact correlation for ties or without ties. Methods of Kendall, Spearman and Pearson.
correl(x, y, method = "pearson",alternative="two.sided")
The correlation of x,y vector with the statistical value and its probability
Vector
"pearson", "kendall", "spearman"
"two.sided", "less", "greater"
Felipe de Mendiburu
Numerical Recipes in C. Second Edition.
correlation
library(agricolae) data(soil) with(soil,correl(pH,clay,method="kendall")) with(soil,correl(pH,clay,method="spearman")) with(soil,correl(pH,clay,method="pearson"))
Run the code above in your browser using DataLab