TrendRunmed {greenbrown}R Documentation

Trend estimation based on a running median

Description

The function computes a non-linear trend based a running median.

Usage

TrendRunmed(Yt, k = NULL, ...)

Arguments

Yt

univariate time series of class ts

k

integer width of median window; must be odd. If NULL a window size of 20 years (i.e. frequency * 20) will be used.

...

additional arguments (currently not used)

Value

The function returns a list of class "Trend".

Author(s)

Matthias Forkel <matthias.forkel@geo.tuwien.ac.at> [aut, cre]

See Also

stl

Examples

# load a time series of NDVI (normalized difference vegetation index)
data(ndvi)
plot(ndvi)
	
# calculate trend on mean annual NDVI values
trd <- TrendRunmed(ndvi)
trd
plot(trd)


[Package greenbrown version 2.4.3 Index]