Description Usage Arguments Details Value Author(s) References Examples
View source: R/testLinearTrend.R
The estimated slope of a linear trend within a time series is tested for significance with a permutation test (shuffling).
1 | testLinearTrend(x, n = 1000, ret.slopes = F)
|
x |
numeric vector. Missing values are not allowed and it is assumed that the frequency, at which the observation took place, is constant. |
n |
integer. Number of permutations, should hold n ≥ 1000. |
ret.slopes |
logical. Return the slopes as obtained from the permutation procedure? |
The null hypothesis H0 is stated as 'no trend present' and the alternative hypothesis HA as 'trend present'. Please note that the test does not account for autocorrelation.
List with entries
b |
real number. The coefficient when |
p.value |
real number. The probability of observing a stronger
trend than |
slopes |
numeric vector of length |
Original code provided by Pascal H.
Kundzewicz, Z. W., and A. Robson (Editors) (2000). "Detecting trend and other changes in hydrological data". World Climate Program - Water, WMO/UNESCO, Geneva.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.