ma: moving average

Description Usage Arguments See Also

View source: R/stats.r

Description

moving average

Usage

1
ma(x, n, sides = 1)

Arguments

x

a univariate or multivariate time series

n

number of observations to include

sides

if sides = 1 the filter coefficients are for past values only; if sides = 2 they are centred around lag 0. In this case the length of the filter should be odd, but if it is even, more of the filter is forward in time than backward.

See Also

Other stats: add.bias; bstrap; center; emperical.derivative; importance.cv.glmnet; importance.glmnet; importance.lm; importance; rescale; sample.var; sphere; spline.derivative; summarize.coefficient.matrix


mdelhey/mdutils documentation built on May 22, 2019, 3:24 p.m.