cor.test | R Documentation |
Test for association between paired samples (with one variable being nri-values), using one of Pearson's product moment correlation coefficient, Kendall's tau or Spearman's rho.
## S4 method for signature 'Nri' cor.test(x, y, ...)
x |
Object of class |
y |
Object of class |
... |
Further arguments passed to |
NRI-values may be used as x and/or as y variable. If x and y are NRI-values the number of samples in both datasets must be equal. For additional information on correlation tests see details in cor.test
.
Object of class Nri
Lukas Lehnert
plot
, cor.test
, glm.nri
, lm.nri
, getNRI
data(spectral_data) ## Calculate all possible combinations for WorldView-2-8 spec_WV <- spectralResampling(spectral_data, "WorldView2-8", response_function = FALSE) nri_WV <- nri(spec_WV, recursive = TRUE) cortestnri <- cor.test(nri_WV, SI(spec_WV)$chlorophyll) cortestnri
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.