|
Chapter Contents |
Previous |
Next |
| The ARIMA Procedure |
data airline;
set sashelp.air;
logair = log(air);
if _n_ = 50 then logair = logair - 0.25;
if _n_ >= 100 then logair = logair + 0.5;
run;
The "Airline model,"
ARIMA(0, 1, 1) ×(0, 1, 1)12, is known to be a good fit to the unmodified log-transformed
airline passenger series.
The preliminary identification steps (not shown) again suggest the Airline model for the modified data because
they exhibit a strong trend and seasonal behavior, and the Airline model has wide
applicability in such cases.
proc arima data=airline;
identify var=logair( 1, 12 ) noprint;
estimate q=(1)(12) noint method=ml;
outlier maxnum=3 alpha=0.01;
run;
A portion of the estimation and outlier detection output is shown in Output 3.2.1.
Output 3.2.1: Output of Airline Model
data airline;
set airline;
if _n_ = 50 then AO = 1;
else AO = 0.0;
if _n_ >= 100 then LS = 1;
else LS = 0.0;
run;
You can now refine the previous model by including these regressors. Note that the differencing order of the dependent series is matched to the differencing orders of the outlier regressors to get the correct "effective" outlier signatures.
proc arima data=airline;
identify var=logair(1, 12)
crosscorr=( AO(1, 12) LS(1, 12) ) noprint;
estimate q=(1)(12) noint
input=(AO LS) method=ml plot;
outlier maxnum=3 alpha=0.01;
run;
The estimation and outlier detection results are shown in Output 3.2.2.
Output 3.2.2: Airline Model with Outliers
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.