Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/processing_subclasses.r
The mas()
function returns a simple moving average smoother of the
provided time series. mas.rev()
reverses the
transformation(smoothing) process.
1 2 3 |
x |
A numeric vector or univariate time series. |
order |
Order of moving average smoother. If |
... |
Additional arguments passed to |
xm |
A numeric vector or univariate time series that has been moving average
smoothed. Possibly returned by |
xi |
Initial |
addinit |
If |
The moving average smoother transformation is given by
(1/k) * ( x[t] + x[t+1] + ... + x[t+k-1] )
where k=order
, t
assume
values in the range 1:(n-k+1)
, and n=length(x)
. See also the
ma
of the forecast
package.
Numerical time series of length length(x)-order+1
containing
the simple moving average smoothed values.
Rebecca Pontes Salles
R.H. Shumway and D.S. Stoffer, 2010, Time Series Analysis and Its Applications: With R Examples. 3rd ed. 2011 edition ed. New York, Springer.
Other transformation methods:
Diff()
,
LogT()
,
WaveletT()
,
emd()
,
mlm_io()
,
outliers_bp()
,
pct()
,
train_test_subset()
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.