X13 Procedure

Example 45.1 ARIMA Model Identification

(View the complete code for this example.)

This example shows typical PROC X13 statements that are used for ARIMA model identification. This example invokes the X13 procedure and uses the TRANSFORM and IDENTIFY statements. It specifies the time series data, takes the logarithm of the series (TRANSFORM statement), and generates ACFs and PACFs for the specified levels of differencing (IDENTIFY statement). The ACFs and PACFs for DIFF=1 and SDIFF=1 are shown in Output 45.1.1, Output 45.1.2, Output 45.1.3, and Output 45.1.4. The data set is the same as in the section Basic Seasonal Adjustment.

The graphical displays are available when ODS Graphics is enabled. For more information about the graphics available in the X13 procedure, see the section ODS Graphics.

proc x13 data=sales date=date;
   var sales;
   transform power=0;
   identify diff=(0,1) sdiff=(0,1);
run;

Output 45.1.1: ACFs (Nonseasonal Order=1 Seasonal Order=1)

The X13 Procedure

Autocorrelation of Regression Residuals for ARIMA Model Identification
For Variable sales
Differencing: Nonseasonal Order=1 Seasonal Order=1
 
LagCorrelationStandard
Error
Chi-SquareDFPr > ChiSq
1-0.341120.0873715.59571<.0001
20.105050.0970117.086020.0002
3-0.202140.0978722.64783<.0001
40.021360.1010122.710440.0001
50.055650.1010423.138750.0003
60.030800.1012823.270960.0007
7-0.055580.1013523.705070.0013
8-0.000760.1015823.705080.0026
90.176370.1015828.147390.0009
10-0.076360.1038928.9869100.0013
110.064380.1043229.5887110.0018
12-0.386610.1046251.472812<.0001
130.151600.1150154.866413<.0001
14-0.057610.1165355.360514<.0001
150.149570.1167458.720415<.0001
16-0.138940.1182061.645216<.0001
170.070480.1194462.404517<.0001
180.015630.1197562.442118<.0001
19-0.010610.1197762.459619<.0001
20-0.116730.1197864.598420<.0001
210.038550.1206464.833821<.0001
22-0.091360.1207466.168122<.0001
230.223270.1212674.209923<.0001
24-0.018420.1243674.265224<.0001
25-0.100290.1243875.918325<.0001
260.048570.1250076.309726<.0001
27-0.030240.1251476.462927<.0001
280.047130.1252076.838728<.0001
29-0.018030.1253376.894329<.0001
30-0.051070.1253577.344230<.0001
31-0.053770.1255177.847831<.0001
320.195730.1256984.590032<.0001
33-0.122420.1279987.254333<.0001
340.077750.1288888.340134<.0001
35-0.152450.1292492.558435<.0001
36-0.010000.1306192.576736<.0001

Note:The P-values approximate the probability of observing a Chi-Square at least this large when the model fitted is correct. When DF is positive, small values of P, customarily those below 0.05, indicate model inadequacy.



Output 45.1.2: Plot for ACFs (Nonseasonal Order=1 Seasonal Order=1)

Plot for ACFs (Nonseasonal Order=1 Seasonal Order=1)


Output 45.1.3: PACFs (Nonseasonal Order=1 Seasonal Order=1)

Partial Autocorrelations of Regression
Residuals for ARIMA Model Identification
For Variable sales
Differencing: Nonseasonal Order=1
Seasonal Order=1
 
LagCorrelationStandard
Error
1-0.341120.08737
2-0.012810.08737
3-0.192660.08737
4-0.125030.08737
50.033090.08737
60.034680.08737
7-0.060190.08737
8-0.020220.08737
90.225580.08737
100.043070.08737
110.046590.08737
12-0.338690.08737
13-0.109180.08737
14-0.076840.08737
15-0.021750.08737
16-0.139550.08737
170.025890.08737
180.114820.08737
19-0.013160.08737
20-0.167430.08737
210.132400.08737
22-0.072040.08737
230.142850.08737
24-0.067330.08737
25-0.102670.08737
26-0.010070.08737
270.043780.08737
28-0.089950.08737
290.046900.08737
30-0.004900.08737
31-0.096380.08737
32-0.015280.08737
330.011500.08737
34-0.019160.08737
350.023030.08737
36-0.164880.08737


Output 45.1.4: Plot for PACFs (Nonseasonal Order=1 Seasonal Order=1)

Plot for PACFs (Nonseasonal Order=1 Seasonal Order=1)


Last updated: June 19, 2025