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

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!

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