BookmarkSubscribeRSS Feed
Boa
Obsidian | Level 7 Boa
Obsidian | Level 7

Can someone explain to me. what this code is doing? 

basically, i want to display the year 2008 and 2010 with the different month sold in the products. My code do not recognise xlog. Please help.


proc arima data=temp_orders;
identify var=xlog(1,12);
estimate q=(1)(12) noint method=ml;
forecast id=orderdate interval=month printall out=b;
run;

 

I got this error message :ERROR: Forecasting was not performed because estimation was not done.

3 REPLIES 3
Rick_SAS
SAS Super FREQ

References are always useful.  It looks like your code came from this example in the PROC ARIMA documentation.

In the example, XLOG is the response variable in the data set. So you need to replace XLOG by the name of the variable in your data that contains the time series.

 

The (1, 12) specifies the lags. In this case, the model has lags of 1 and 12.

Ksharp
Super User
Yes. Rick is right.
xlog is log(numunits) .
Did you see the code before proc arima ? there is xlog=log(numunits);

Log it is to handle big number and make data more suitable for ARIMA .


sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1115 views
  • 0 likes
  • 4 in conversation