cor.sign: Correlation Matrix

View source: R/cor-sign.R

cor.signR Documentation

Correlation Matrix

Description

Computes correlation matrix of x with method "pearson", "kendall" or "spearman". This function also prints the matrix with the significance levels.

Usage

cor.sign(x, method = c("pearson", "kendall", "spearman"))

Arguments

x

the data

method

the method used

Details

This function estimate the association between paired samples an compute a test of the value being zero. All measures of association are in the range [-1,1] with 0 indicating no association.

Value

cor

Correlation matrix

p.value

p-value of the test statistic

Author(s)

Peter Filzmoser <P.Filzmoser@tuwien.ac.at> http://cstat.tuwien.ac.at/filz/

References

C. Reimann, P. Filzmoser, R.G. Garrett, and R. Dutter: Statistical Data Analysis Explained. Applied Environmental Statistics with R. John Wiley and Sons, Chichester, 2008.

See Also

cor.test

Examples

data(chorizon)
x=chorizon[,c("Ca","Cu","Mg","Na","P","Sr","Zn")]

cor.sign(log10(x),method="spearman")

StatDA documentation built on June 7, 2023, 6:26 p.m.

Related to cor.sign in StatDA...