cor.sign | R Documentation |
Computes correlation matrix of x with method "pearson", "kendall" or "spearman". This function also prints the matrix with the significance levels.
cor.sign(x, method = c("pearson", "kendall", "spearman"))
x |
the data |
method |
the method used |
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.
cor |
Correlation matrix |
p.value |
p-value of the test statistic |
Peter Filzmoser <P.Filzmoser@tuwien.ac.at> http://cstat.tuwien.ac.at/filz/
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.
cor.test
data(chorizon)
x=chorizon[,c("Ca","Cu","Mg","Na","P","Sr","Zn")]
cor.sign(log10(x),method="spearman")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.