BookmarkSubscribeRSS Feed
cmccor
Fluorite | Level 6

Hi,

I have a survival analysis that I am performing with competing risks (which I am very new at) comparing time to discontinuation of therapy as the outcome. I determined from several methods that my primary exposure, which is binary (1/0) violates the proportional hazards assumption. Since it is my primary exposure of interest, I can't stratify on it, so I figured I would go ahead and perform a piecewise survival analysis from day 0 - 60 and day 60+ as that is where the PH assumption is violated. However, since it is a competing risk analysis, when I try to input the BAYES statement to divide the time axis, I get an error statement that the BAYES statement is not available for the Fine and Gray competing-risk analysis. So I'm a little stuck on what to do since I want to make sure to include the competing risk analysis instead of removing it and treating all the censoring as the event?

 

The code I have is:

proc phreg data=data;
Class older_45 (ref='0') / Param=reference;
Model CENS_time*CENS_CMPRSK(0) = older_45 / RL EVENTCODE=1;
bayes piecewise=hazard (intervals=(60));
run;

 

Older_45 is my exposure (an individual being older at age 45 at the start of therapy, yes or no)

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 lock in 2025 pricing—just $495!

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
  • 586 views
  • 0 likes
  • 1 in conversation