powered by
An exact correlation for ties or without ties. Methods of Kendall, Spearman and Pearson.
correl(x, y, method = "pearson",alternative="two.sided")
Vector
"pearson", "kendall", "spearman"
"two.sided", "less", "greater"
Numeric
Numerical Recipes in C. Second Edition.
correlation
# NOT RUN { 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