moveav {tsapp} | R Documentation |
moveav
smoothes a time series by moving averages
Description
moveav
smoothes a time series by moving averages
Usage
moveav(y, q)
Arguments
y |
the series, a vector or a time series |
q |
scalar, span of moving average |
Value
g vector, smooth component
Examples
data(GDP)
g <- moveav(GDP,12)
plot(GDP) ; lines(g,col="red")
[Package tsapp version 1.0.4 Index]