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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 3168 views
  • 0 likes
  • 3 in conversation