BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
niam
Quartz | Level 8

I have a data set of time series observations with a seasonal trend.

I have de-trended and de-seasonalized it using by first differencing and also taking the log of observations. However, when I want to fit an ARIMA model, It is almost impossible to have a proper fit.

This is my code and I have attached the data set.

proc import datafile="liquor.csv"

out=liquor

dbms=csv

replace;

getnames=no;

run;

data liquor (rename=(var1=sales));

set liquor;

t = _n_ ;

*The log transformation is predeferencing transformation to make constant seasonal variation;

LogSales=log(sales);

*These are three different differencing transformation to make the data stationary;

SALES1=logsales-lag(logsales);

SALES2=logsales-lag12(logsales);

SALES3=logsales-lag(logsales)-lag12(logsales)-lag13(logsales);

x=sales1-lag12(sales1);

run;

proc timeseries data=liquor

                   out=series

                   outtrend=trend

                   outseason=season print=seasons;

      id date interval=month accumulate=avg;

      var x;

   run;

proc arima data=LIQUOR ;

      identify var=x esacf ;

      estimate  p=2 q=3;

   run;

Any suggestions and help is greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
niam
Quartz | Level 8

I am closing this discussion due to inactivity.

View solution in original post

1 REPLY 1
niam
Quartz | Level 8

I am closing this discussion due to inactivity.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 747 views
  • 0 likes
  • 1 in conversation