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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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