Revision eeaa66e0c46ce61f52410cc9cf200620c347a369 authored by Rob J Hyndman on 22 April 2013, 00:00:00 UTC, committed by Gabor Csardi on 22 April 2013, 00:00:00 UTC
1 parent 38c61ae
Raw File
ma.Rd
\name{ma}
\alias{ma}
\title{Moving-average smoothing}
\usage{
ma(x, order, centre=TRUE)
}

\arguments{
\item{x}{Univariate time series}
\item{order}{Order of moving average smoother}
\item{centre}{If TRUE, then the moving average is centred.}
}

\description{Computes a simple moving average smoother.}

\value{Numerical time series object containing the smoothed values.}

\seealso{\code{\link[stats]{ksmooth}}, \code{\link[stats]{decompose}}}

\author{Rob J Hyndman}
\examples{
plot(wineind)
sm <- ma(wineind,order=12)
lines(sm,col="red")
}
\keyword{ts}
back to top