BookmarkSubscribeRSS Feed
sasphd
Lapis Lazuli | Level 10

I want to estimate this equation y=a+b1*x+b2*x**(2) using gmm

When I write this program it does not work

proc model data= bb.mstylevw;

parms a b1 b2 ;

y=a+b1*x+b2 *x**(2);

fit y / gmm;

run;

quit;

when I remove Gmm, it works and it gives me regression using OLS

proc model data= bb.mstylevw;

parms a b1 b2 ;

y=a+b1*x+b2 *x**(2);

fit y / ;

run;

quit;

1 REPLY 1
SteveDenham
Jade | Level 19

I am not an expert on PROC MODEL, but I thought that gmm would require an INSTRUMENTS statement, which here would be pretty simple.  If you explicitly specify the moments, then it might be an intercept only situation.

For examples, see 19.18 Duration Data Model with Unobserved Heterogeneity in the SAS/ETS13.2 documentation.

Steve Denham

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1 reply
  • 1624 views
  • 0 likes
  • 2 in conversation