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

t.test.nri

t-test for nri values


Description

Performs Student's t-tests for normalized ratio index values.

Usage

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

Arguments

x

Object of class 'nri'.

...

Arguments to be passed to t.test.

Value

An object of class "data.frame"

Author(s)

Lukas Lehnert & Hanna Meyer

See Also

Examples

data(spectral_data)


## Calculate nri-values for WorldView-2-8
spec_WV <- spectralResampling(spectral_data, "WorldView2-8",
                              response_function = FALSE)
nri_WV <- nri(spec_WV, recursive = TRUE)

## Perform t.tests between nri-values of both sites 
season <- SI(spec_WV)$season
ttestres <- t.test(x = nri_WV, y = season, alternative = "two.sided")
ttestres

## Plot p.values of t.tests
plot(ttestres)

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.