Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cor.sign

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)

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

Examples

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

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

StatDA

Statistical Analysis for Environmental Data

v1.7.4
GPL (>= 3)
Authors
Peter Filzmoser
Initial release
2020-03-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.