Description Usage Arguments Value Author(s) See Also Examples
The function computes an ensemble of trend
statistics (linear trend
slope, Mann-Kendall tau and p-value) on a time series by sampling different start and end dates of the time series. This ensemble can be used to compute uncertainties in trend
statistics. Results can be plotted using the function plot.TrendSample
.
1 2 3 4 5 | TrendSample(Yt, sample.method = c("all",
"sample", "none"),
sample.min.length = 0.7,
sample.size = 30,
trend = TrendAAT)
|
Yt |
univariate time series of class |
sample.method |
Sampling method for combinations of start and end dates to compute uncertainties in trends. If "sample" (default), |
sample.min.length |
Minimum length of the time series (as a fraction of total length) that should be used to compute |
sample.size |
sample size (number of combinations of start and end dates) to be used if |
trend |
method that should be used to compute the |
The function returns a data.frame with the start date, end date and length of the sample from the time series and the correspondig Mann-Kendall tau, p-value, slope, intercept, and percentage slope of a linear trend
.
Matthias Forkel <matthias.forkel@tu-dresden.de> [aut, cre]
1 2 3 4 5 6 7 | # calculate uncertainty of trend dependent on start and end dates
trd.ens <- TrendSample(ndvi, trend=TrendAAT)
plot(trd.ens)
plot(trd.ens, "tau")
trd.ens <- TrendSample(ndvi, trend=TrendRQ)
plot(trd.ens)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.