# cor.sign: Correlation Matrix In StatDA: Statistical Analysis for Environmental Data

## Description

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

## Usage

 `1` ```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.

`cor.test`

## Examples

 ```1 2 3 4``` ```data(chorizon) x=chorizon[,c("Ca","Cu","Mg","Na","P","Sr","Zn")] cor.sign(log10(x),method="spearman") ```

### Example output

```Loading required package: geoR
--------------------------------------------------------------
Analysis of Geostatistical Data
For an Introduction to geoR go to http://www.leg.ufpr.br/geoR
geoR version 1.7-5.2.1 (built on 2016-05-02) is now loaded
--------------------------------------------------------------

Warning messages:
1: no DISPLAY variable so Tk is not available
2: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
3: 'rgl_init' failed, running with rgl.useNULL = TRUE
call: fun(...)
Ca   Cu   Mg   Na   P    Sr   Zn
Ca 1.00 ***  ***  ***  ***  ***  *
Cu 0.29 1.00 ***  ***  ***  ***  ***
Mg 0.26 0.77 1.00 ***  ***  ***  ***
Na 0.79 0.26 0.16 1.00 ***  ***
P  0.62 0.18 0.21 0.38 1.00 ***  ***
Sr 0.70 0.35 0.39 0.63 0.47 1.00 ***
Zn 0.08 0.66 0.71 0.05 0.20 0.41 1.00

There were 21 warnings (use warnings() to see them)
```

StatDA documentation built on March 13, 2020, 2:42 a.m.