BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sjmosiman
Fluorite | Level 6

Hi all,

I'm trying to stratify my survival curves however my output gives me three separate plots rather than overlaying them.  I've seen the use of baseline/rowid but I can't seem to make that work. Also I cant use lifetest procedure because I'm using a continuous variable anyone ahs suggestions they would be much appreciated, my current code is below:

 

ods graphics on;
proc phreg data=merged11 plot(overlay=stratum)=(survival);
where rs>34;
class chemoYN (param=ref ref='N');
model dx_lastcontact_death_months * Puf_Vital_status(1) = chemoYN |absBenefitTAM1;
hazardratio chemoyn / at(absBenefitTAM1= (5 10 15 20 25 30)) units=5;
strata T1b1c;
run;

1 ACCEPTED SOLUTION

Accepted Solutions
OsoGris
SAS Employee
Since you have no BASELINE statement or COVARIATES= data set you have only one set of covariates being plotted by default. This is the reference level of the CLASS variables and the means of any continuous covariates. As such, you might want to try the OVERLAY=BYROW option which "displays, for each covariate set, a separate plot containing the curves for all the strata." This is according to the PHREG documentation on the OVERLAY option.

View solution in original post

1 REPLY 1
OsoGris
SAS Employee
Since you have no BASELINE statement or COVARIATES= data set you have only one set of covariates being plotted by default. This is the reference level of the CLASS variables and the means of any continuous covariates. As such, you might want to try the OVERLAY=BYROW option which "displays, for each covariate set, a separate plot containing the curves for all the strata." This is according to the PHREG documentation on the OVERLAY option.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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
  • 1 reply
  • 756 views
  • 0 likes
  • 2 in conversation