powered by
movemed
movemed smoothes a time series by moving medians
movemed(y, q)
the series, a vector or a time series
scalar, span of moving median
g vector, smooth component
# NOT RUN { data(BIP) g <- movemed(GDP,12) # } # NOT RUN { plot(GDP) ; t <- seq(from = 1970, to = 2009.5,by=0.25) ; lines(t,g,col="red") # }
Run the code above in your browser using DataLab