movemed
smoothes a time series by moving medians
movemed
smoothes a time series by moving mediansmovemed(y, q)
y
: the series, a vector or a time seriesq
: scalar, span of moving mediang vector, smooth component
data(BIP) g <- movemed(GDP,12) plot(GDP) ; t <- seq(from = 1970, to = 2009.5,by=0.25) ; lines(t,g,col="red")
Useful links