Description Usage Arguments Value Author(s) See Also Examples
The function computes trend
statistics (linear trend
slope and intercept, Mann-Kendall tau and p-value) with associated uncertainties (standard deviation) by sampling the time series according to different start and end dates using the function TrendSample
1 2 3 4 5 6 7 |
Yt |
univariate time series of class |
seg |
a vector indicating segments of a time series. If NULL, provide |
bp |
detected breakpoints in the time series as returned by |
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 |
fun.unc |
function to summarize the uncertainty of the |
trend |
method that should be used to compute the |
The function returns a data.frame with the estimated Mann-Kendall tau, p-value and slope and intercept of a linear trend
with uncertainties defined as the standard deviation of these estimates dependent on different start and end dates.
Matthias Forkel <matthias.forkel@tu-dresden.de> [aut, cre]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # aggregate time series to annual time steps
ndvi <- aggregate(ndvi, FUN=mean, na.rm=TRUE)
plot(ndvi)
# compute trend statistics dependent on start and end of the time series
trd.ens <- TrendSample(ndvi)
plot(trd.ens)
# compute statistics for trend
TrendUncertainty(ndvi)
# compute trend statistics with uncertainties by considering breakpoints
bp <- breakpoints(ndvi ~ time(ndvi))
trd.unc <- TrendUncertainty(ndvi, bp=bp)
trd.unc
trd.unc[[1]]$slope_unc
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.