correl {agricolae}R Documentation

Correlation Coefficient

Description

An exact correlation for ties or without ties. Methods of Kendall, Spearman and Pearson.

Usage

correl(x, y, method = "pearson",alternative="two.sided")

Arguments

x Vector
y Vector
method "pearson", "kendall", "spearman"
alternative "two.sided", "less", "greater"

Value

x Numeric
y Numeric

...

Author(s)

Felipe de Mendiburu

References

Numerical Recipes in C. Second Edition.

See Also

correlation

Examples

library(agricolae)
data(soil)
attach(soil)
correl(pH,clay,method="kendall")
correl(pH,clay,method="spearman")
correl(pH,clay,method="pearson")


[Package agricolae version 1.0-6 Index]