Hi SAS Users,
I am converting from regressing in STATA to SAS, and I am quite surprise regarding the wide variety of SAS procedure.
In STATA, we just use
reg y x
then we add "fixed effect" or "cluster" at the end of such code to do further research.
However, in SAS, in the standard OLS regression, we use PROC REG, if we want to add fixed effects, we must use PROC GLM, and if we want to do clustered standard errors, we must do PROC GENMOD. I am wondering if my explanation about the series of SAS PROC is properly. And whether PROC GLM already has contained fixed effect?
I follow the link here to make this assumption:
https://host.kelley.iu.edu/nstoffma/fe.html
Please correct me if I fall into any fallacy.
Many thanks and warm regards.
Moved to statistics community, and shortened the title.
The question of how to model one-way and two-way fixed effects with clustered standard errors in SAS has become common in recent years. Before proceeding with the analysis, some preliminary questions need to be addressed:
For survey data, you can use the SURVEYREG or SURVEYLOGISTIC procedures in SAS/STAT® software. If you do not have survey data, the GENMOD, GLIMMIX, MIXED procedures in SAS/STAT or the PANEL procedure in SAS/ETS® software would be the better choices to use for fixed effects with clustered standard errors.
I believe @STAT_Kathleen has answered your immediate question.
I'll just add that if you are looking to familiarize yourself with some of the capabilities in SAS/STAT software, the SAS/STAT Topics page might be useful. The links on the page describe focus areas and each link provides a high-level overview of relevant procedures, their features, and links for more information. There will be cases where a procedure might serve multiple purposes and could be placed in multiple groupings, but I think the page can be a helpful quick reference.
Hi @MichaelL_SAS and @STAT_Kathleen
Thank you for your replying and about the link, but I am quite new to SAS regression so I want to ask further.
So, from the link you gave me, could you please tell me how come I search for the information and examples for regression with fixed effects (PROC GLM)?
Warmest regards.
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!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.