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

Hi,

 

I'm running this code: 

 

proc arima data=prints2;
identify var=prints(364) scan;
estimate p=5 q=4;
forecast lead=60 out=forecastprints id=datenew interval=day;
run;

 

Which used to run fine, and today i'm getting an error. We add a new date each day we run it.

The error says: ERROR: Forecasting was not performed because estimation was not done.

 

Any ideas what could've gone wrong? 

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
dw_sas
SAS Employee

Hi,

 

When this error occurs, additional information is typically written to the output file generated by PROC ARIMA.  If you see the following message in the PROC ARIMA output: 

 

The estimation algorithm did not converge after 50 iterations.

 

then add the MAXITER= option to the ESTIMATE statement and increase the number of iterations from the default of 50 to a larger number, such as 250.  For example:

 

   estimate p=5 q=4 maxiter=250;

 

If the model failed to converge in fewer than 50 iterations, then you might need to try specifying:

 

  •  a different estimation method, such as METHOD=ML,
  •  different starting values for the model parameter estimates (See Details > Initial Values section of PROC ARIMA doc), or
  •  a different model.

If this information does not allow you to correct the error, then please provide any additional messages written to the output file or the "ARIMA Estimation Optimization Summary" table, which should be displayed in the output. 

 

I hope this helps!

DW

View solution in original post

2 REPLIES 2
manuellara
Calcite | Level 5

Hi;

 

I think that your model has problem in the specification. The daily seasonality is 7, i think that you cannot develop a daily model whitn annual seasonality

dw_sas
SAS Employee

Hi,

 

When this error occurs, additional information is typically written to the output file generated by PROC ARIMA.  If you see the following message in the PROC ARIMA output: 

 

The estimation algorithm did not converge after 50 iterations.

 

then add the MAXITER= option to the ESTIMATE statement and increase the number of iterations from the default of 50 to a larger number, such as 250.  For example:

 

   estimate p=5 q=4 maxiter=250;

 

If the model failed to converge in fewer than 50 iterations, then you might need to try specifying:

 

  •  a different estimation method, such as METHOD=ML,
  •  different starting values for the model parameter estimates (See Details > Initial Values section of PROC ARIMA doc), or
  •  a different model.

If this information does not allow you to correct the error, then please provide any additional messages written to the output file or the "ARIMA Estimation Optimization Summary" table, which should be displayed in the output. 

 

I hope this helps!

DW

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
  • 2 replies
  • 2477 views
  • 0 likes
  • 3 in conversation