cmav {tsutils} | R Documentation |
Centred moving average
Description
Calculate the Centred Moving Average (CMA) for time series.
Usage
cmav(
y,
ma = NULL,
fill = c(TRUE, FALSE),
outplot = c(FALSE, TRUE),
fast = c(TRUE, FALSE)
)
Arguments
y |
input time series. Can be |
ma |
length of centred moving average. If |
fill |
if |
outplot |
if |
fast |
if |
Value
Centred moving average. If y is a ts object, then cma has the same properties.
Author(s)
Nikolaos Kourentzes, nikolaos@kourentzes.com.
References
Ord K., Fildes R., Kourentzes N. (2017) Principles of Business Forecasting, 2e. Wessex Press Publishing Co., p.109.
Examples
cmav(referrals,outplot=TRUE)
[Package tsutils version 0.9.4 Index]