PROC PHREG DATA = my_data;
CLASS industry_code;
MODEL (tstart, tstop)*endpt(0) = treatment_variable industry_code/ TIES = EFRON RL;
RUN;
Answering your questions in order:
1. Yes, the industry code variable should be included in the class statement. You do not need to create dummy variables yourself.
2. If you know that your treatment variable actually is time-varying, I recommend modeling it that way.
Answering your questions in order:
1. Yes, the industry code variable should be included in the class statement. You do not need to create dummy variables yourself.
2. If you know that your treatment variable actually is time-varying, I recommend modeling it that way.
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.