Learn R Programming

AnalyzeTS (version 2.0)

CMA: Center Moving Average

Description

Calculate moving average by mothod of centered moving average.

Usage

CMA(x, n = 5)

Arguments

x
Observation series.
n
Number of periods to average over.

Value

Observation series after centered moving.

See Also

SES

Examples

Run this code
CMA(lh,n=5)
CMA(lh,n=8)

Run the code above in your browser using DataLab