BookmarkSubscribeRSS Feed
somebody
Lapis Lazuli | Level 10

I am trying to calculate Newey-West standard error for some portfolios. However, I got this error message of not converging. Please help with any idea of what is going on and how to fix

  


%let lags=36; ods output parameterestimates=nw; ods listing close; options nonotes; proc model data=input plots=none; by portfolio; instruments / intonly; r=a; fit r / gmm kernel=(bart,%eval(&lags+1),0); run; quit; ods listing; options notes; ERROR: The parameter estimates failed to converge for 2SLS after 4 iterations using CONVERGE=0.001 as the convergence criteria

 

2 REPLIES 2
ballardw
Super User

The MAXITER=<integer value> option sets number of iterations, Converge=<numeric value> sets the convergence criteria these could be on the Proc or a Solve statement.

 

Perhaps increasing Maxiter or Converge  will allow the model to converge.

somebody
Lapis Lazuli | Level 10

Thanks. do you know what values should I apply?

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1503 views
  • 0 likes
  • 2 in conversation