BookmarkSubscribeRSS Feed
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 ( 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!

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.



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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
  • 2 in conversation