CARIMA Procedure

Example 5.1 Seasonal Model for the Airline Series

The airline passenger data have been used in time series analysis literature as an example of a nonstationary seasonal time series.

The following statements plot the air data:

proc sgplot data=sashelp.air;
  series x = date y = air;
run;

Output 5.1.1 indicates that the series is nonstationary and seasonal.

Output 5.1.1: Airline Passenger Data

Airline Passenger Data


The following DATA step loads the air data into a CAS session. The DATA step assumes that the SAS library is named mylib, but you can substitute any appropriately named SAS library.

data mylib.myair;
   set sashelp.air;
run;

You can use the following statements to fit an ARIMA(0,1,1)times(0,1,1)Subscript 12 model without a mean term to the logarithms of the airline passengers series. The model estimates and forecasts are stored in the data tables mylib.cariest and mylib.carifor.

proc carima data=mylib.myair outest=mylib.cariest outfor=mylib.carifor;
  id date interval=month;
  identify air;
  estimate q=(1)(12) noint  method = ML transform = log diff = (1,12);
  forecast lead = 4;
run;

Output 5.1.2 shows the summary of the time series processing.

Output 5.1.2: Summary of Time Series Processing

The CARIMA Procedure

Processing Summary
CAS tableMYAIR
Number of analysis variables1
Number of rows read288
Number of groups read1
Memory for group packages (KB)15
Time to load groups (seconds)0.0108208656
Minimum time IDJAN1949
Maximum time IDDEC1960
Minimum time periods144
Maximum time periods144
Number of nodes run4
Number of nodes with data3
Number of nodes with groups1
Number of threads budgeted1
Minimum thread group count0
Maximum thread group count1
Minimum threads active1
Maximum threads active1
Number of groups processed by submitted code1
Number of groups failing0
Elapsed time to process groups (seconds)0.0632238388


Output 5.1.3 shows the name of the modeled variable.

Output 5.1.3: Variable Information

Variable Info
Variable NameAIR


Output 5.1.4 shows the parameter estimates from the fitted model.

Output 5.1.4: Parameter Estimates

Maximum Likelihood Estimates
ParameterEstimateStandard
Error
t ValueApprox
Pr > |t|
Lag
MA1_10.4019360.0798775.03<.00011
MA2_120.5568620.0840276.63<.000112


Output 5.1.5 shows the multistep-ahead variable forecasts.

Output 5.1.5: Variable Forecasts

Forecasts for AIR using Model 1
Time IDForecastStd Error95% Confidence Limits
JAN1961450.732016.6829418.9155484.3014
FEB1961426.112918.3793391.2224463.2533
MAR1961479.566423.2533435.6018526.7297
APR1961493.105226.2879443.5853546.5997


The following statements plot the forecasts that are produced by the ARIMA(0,1,1)times(0,1,1)Subscript 12 model. The plot is shown in Output 5.1.6.

proc sgplot data=mylib.carifor;
  series x=date y=actual / markers lineattrs=(color=red)
                           markerattrs=(symbol=circlefilled color=red);
  series x=date y=predict / markers lineattrs=(color=blue)
                            markerattrs=(symbol=asterisk color=blue);
  refline '01JAN1959'd / axis=x;
run;

Output 5.1.6: Airline Passengers Forecasts

Airline Passengers Forecasts


Last updated: July 09, 2026