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

cor.test.normalized.ratio.index

Test for association/correlation between nri values and vector of samples


Description

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.

Usage

## S4 method for signature 'Nri'
cor.test(x, y, ...)

Arguments

x

Object of class Nri or numerical vector

y

Object of class Nri or numerical vector

...

Further arguments passed to cor.test

Details

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.

Value

Object of class Nri

Author(s)

Lukas Lehnert

See Also

Examples

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

hsdar

Manage, Analyse and Simulate Hyperspectral Data

v1.0.3
GPL
Authors
Lukas W. Lehnert [cre, aut] (<https://orcid.org/0000-0002-5229-2282>), Hanna Meyer [ctb], Joerg Bendix [ctb]
Initial release
2020-08-04

We don't support your browser anymore

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