moveav
smoothes a time series by moving averages
moveav
smoothes a time series by moving averagesmoveav(y, q)
y
: the series, a vector or a time seriesq
: scalar, span of moving averageg vector, smooth component
data(GDP) g <- moveav(GDP,12) plot(GDP) ; lines(g,col="red")
Useful links