BookmarkSubscribeRSS Feed
mdtr31
Calcite | Level 5

Hi everyone,

 

I am trying to regress an ordinal variable (5 levels) on two continuous variables. In order to control for fixed effects (year & industry), I use the STRATA option. However, the result does not include any table after the "strata summary". The procedure works flawlessly without the strata option. My code is as follows and attached you may find the first 100 observations of my dataset.

 

ods output ParameterEstimates= ODSout_Logistic;
PROC LOGISTIC data= test ;
   model DV1=  X1  X2  / rsquare;
   strata YR  IND;
RUN;

 

I appreciate your help. Also, if you know any other way to control for fixed effects in a logistic regression, I would greatly appreciate that as well.

 

P.S. some times it works with a two-level dependent variable (DV2), but not always!

 

Best,

Moe

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 0 replies
  • 1193 views
  • 0 likes
  • 1 in conversation