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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1351 views
  • 0 likes
  • 2 in conversation