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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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