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

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