MA Subcommand (SEASON command)
MA specifies
how to treat an even-periodicity series when computing moving averages.
-
MAshould be specified only when the periodicity is even. When periodicity is odd, theEQUALmethod is always used. - For even-periodicity series, the keyword
EQUALorCENTEREDcan be specified.CENTEREDis the default. -
EQUALcalculates moving averages with a span (number of terms) equal to the periodicity and all points weighted equally. -
CENTEREDcalculates moving averages with a span (number of terms) equal to the periodicity plus 1 and endpoints weighted by 0.5. - The periodicity is specified on the
PERIODsubcommand.
Example
SEASON VARIABLES = VARY
/MA=CENTERED
/PERIOD=12.
- In this example, moving averages are computed with spans of 13 terms and endpoints weighted by 0.5.