BookmarkSubscribeRSS Feed
YoungSASuser
Calcite | Level 5

Hi, I want to run the two-stage least square regression (2SLS) with an instrumental variable. I know "PROC SYSLIN" can be used to deal with 2SLS regression. But I don't think the "PROC SYSLIN" provides the statement about clustered standard errors and the year or industry fixed effects.

 

For examine, "PROC SURVEYREG" can deal with clustering standard errors and fixed effects by using the statement of "CLUSTER" and "CLASS". Unfortunately, PROC SURVEYREG cannot run 2SLS regression. Brachet (2007), see the link (https://works.bepress.com/tbrachet/2/) for details, indeed provided a good solution for 2SLS with clustered standard errors in SAS. But he didn't include the year or industry fixed effects. Do you know any package in SAS or any setting in "PROC SYSLIN" that allows us to adjust clustered standard errors and include the year or industry fixed effects? Thanks!

1 REPLY 1
YIN_YI_JEN
Obsidian | Level 7

Hi YoungSASuser,

I have the same problem as you did, and I was wondering if you had your problem solved.
If you did, could you tell me how you solved it?
Thank you in advance.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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