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

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