BookmarkSubscribeRSS Feed
ADou
Calcite | Level 5

Hi experts,

 

Now I have my dependent variable y, and independent variables x1,x2,x3,x4. I have an instrument variable for x1 which is x5 and I want to do 2SLS regression to test robustness. I want my first stage to be:

x1=a1x5+a2x2+a3x3+a4x4;

and my second stage regression is:

y=a1x1'+a2x2+a3x3+a4x4,where x1' is the fitted value of the first stage.

How to do this in SAS? Thanks a lot!!!

 

1 REPLY 1
mkeintz
PROC Star

@ADou 

 

I suggest you move your topic to the "Analytics and Statistics" collection of forums.  In that collection, you could choose the "statistical procedures" forum, but I'd recommend the "SAS forecasting and econometrics" forum.  That's where the experts you need will likely be.

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 797 views
  • 0 likes
  • 2 in conversation