Help using Base SAS procedures

Year and Industry fixed effects

Reply
New Contributor
Posts: 2

Year and Industry fixed effects

 

I am trying to include year and industry fixed effects in my logistic model. Is this the correct way!

 

PROC logistic DATA= mydata desc;
CLASS sic /PARAM=REF;
MODEL dependent = independent / rsq;
STRATA fyear;
run; quit;

 

Thank you!

Super User
Posts: 9,681

Re: Year and Industry fixed effects

Your code looks good and why not add sic into model ? since you have already encode it.

 

MODEL dependent = independent SIC / rsq;

 

And I would doubt if  STRATA will work on with CLASS variables. And What LOG is saying ?

Ask a Question
Discussion stats
  • 1 reply
  • 313 views
  • 0 likes
  • 2 in conversation