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: 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!

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