BookmarkSubscribeRSS Feed
SAScph
Fluorite | Level 6

Hi

Im trying to detect the right lags in my ARMAX model, but it takes up to 10 minutes to run a model with p=7 q=7 lags. Why does it take so long time?

With p=14 q=14 it takes +20 minutes. There must be something wrong.

The code:


*ARMAX model;
proc varmax data=output plots=all;
model lvisitors =rain sunshine averagetemp
dapril dmay djune djuly doctober dnovember ddecember
dfriday dsaturday dsunday
d_24Dec2016 d_24Dec2017 d_24Dec2014 d_24Dec2015 d_24Dec2019 d_24Dec2018 d_24Sep2012 d_06Jul2015
/p=7 q=7
method=ls noint dftest minic=(type=aic);
nloptions maxiter=2000 maxfunc=20000;
*garch p=1 form=ccc outht=outht;
*restrict XL(0,1,4)=0, MA(12,1,1)=0, MA(13,1,1)=0, MA(14,1,1);
run;

1 REPLY 1
Steve1964
Obsidian | Level 7
try to drop the option ‘plots=all’ in proc varmar statement.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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
  • 1 reply
  • 454 views
  • 0 likes
  • 2 in conversation