I tried to run fixed effect in logistic regression, fixed effects are industry and year.
code are as following, I think there is some syntax error for model.
/////
PROC LOGISTIC DATA=ipo;
strata industry year;
model y = x1 x2 industry year / rsquare link=logit;
run;
quit;
/////
Is there any way to solve this?
Hard to say without seeing the log. Are you intentionally trying to perform stratified (conditional) regression? If not, use the CLASS statement instead. The doc says "The STRATA statement in PROC LOGISTIC is used to define variables that identify matched sets of observations so that these matched sets can be analyzed using conditional logistic regression, not the usual unconditional logistic regression."
If you have many years and many industries, the stratified regression is probably taking a long time.
I see. Thanks a lot!
If you only care about X1 and X2, then create a model that contains only those variables:
model y = x1 x2;
This thread is from 2020. If you have a new question, you can start a new thread in which you post your data, any code you are using, and specify what you are trying to achieve.
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.