The CARIMA Procedure
Example 4.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 4.1.1 indicates that the series is nonstationary and seasonal.
Output 4.1.1: Airline Passenger Data

The following DATA step loads the air data into a CAS session. The DATA step assumes that the CAS engine libref is named mycas, but you can substitute any appropriately named CAS engine libref.
data mycas.myair; set sashelp.air; run;
You can use the following statements to fit an ARIMA(0,1,1)(0,1,1) model without a mean term to the logarithms of the airline passengers series. The model estimates and forecasts are stored in the data tables mycas.cariest and mycas.carifor.
proc carima data=mycas.myair outest=mycas.cariest outfor=mycas.carifor; id date interval=month; identify air; estimate q=(1)(12) noint method = ML transform = log diff = (1,12); forecast lead = 4; run;
Output 4.1.2 shows the summary of the time series processing.
Output 4.1.2: Summary of Time Series Processing
| Summary of time series processing for MYAIR | |
|---|---|
| Number of analysis variables | 1 |
| Number of rows read | 288 |
| Number of groups read | 1 |
| Memory for group packages (KB) | 15 |
| Time to load groups (seconds) | 0.0071570873 |
| Minimum time ID | JAN1949 |
| Maximum time ID | DEC1960 |
| Minimum time periods | 144 |
| Maximum time periods | 144 |
| Number of nodes run | 4 |
| Number of nodes with data | 3 |
| Number of nodes with groups | 1 |
| Number of threads budgeted | 1 |
| Minimum thread group count | 0 |
| Maximum thread group count | 1 |
| Minimum threads active | 1 |
| Maximum threads active | 1 |
| Number of groups processed by submitted code | 1 |
| Number of groups failing | 0 |
| Elapsed time to process groups (seconds) | 0.0317268372 |
The following statements plot the forecasts that are produced by the ARIMA(0,1,1)(0,1,1) model. the plot is shown in Output 4.1.3.
proc sgplot data=mycas.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 4.1.3: Airline Passengers Forecasts
