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

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

The CARIMA Procedure

Summary of time series processing for MYAIR
Number of analysis variables1
Number of rows read288
Number of groups read1
Memory for group packages (KB)15
Time to load groups (seconds)0.0071570873
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.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

Airline Passengers Forecasts


Last updated: June 14, 2018