BookmarkSubscribeRSS Feed
TiaT
Calcite | Level 5

Hi all,

 

I usually check the proportional hazards assumption for Cox regression by examining schoenfeld residuals and with the ASSESS statement. My covariates are all categorical (population and temperature treatments).

Is it correct to NOT include a class statement during assumption checking? If I include a CLASS statement, the output is broken down by each level of categorical variable. If I don't, I get an output with the 2 main covariates. 

 

Code with no CLASS:

 

PROC PHREG DATA=Tia.eco18;

     model Day*Status(2)=Pop_Code Temp_Code / ties=exact;

OUTPUT OUT=b RESSCH=SCHPop_Code SCHTemp_Code;

RUN;

 

DATA c;

   SET b;

   lDAYS=LOG(Day);

   DAYS2=Day**2;

PROC CORR;

VAR Day LDAYS DAYS2 SCHPop_Code SCHTemp_Code;

RUN;

 

 

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

What is ANOVA?

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.

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