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

Hi nice people,

I am analyzing survival data using proc PHREG. The data has six strata. To prevent clutter and also show the difference in survival for continuous and categorical covariates graphically, I would like to only plot a single strata at two or three continuous covariate values or two or three categorical levels. I searched the community, but could not find such thing. I appreciate any help to take care of this. Thanks,

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Look at the OVERLAY options in the PLOTS option. I think you want STRATUM.

 

 

OVERLAY <=overlay-option>

specifies how the curves for the various strata and covariate sets are overlaid. If the STRATA statement is not specified, specifying OVERLAY without any option will overlay the curves for all the covariate sets. The available overlay-options are as follows:

BYGROUP
GROUP

overlays, for each stratum, all curves for the covariate sets that have the same GROUP= value in the COVARIATES= data set in the same plot.

INDIVIDUAL
IND

displays, for each stratum, a separate plot for each covariate set.

BYROW
ROW

displays, for each covariate set, a separate plot containing the curves for all the strata.

BYSTRATUM
STRATUM

displays, for each stratum, a separate plot containing the curves for all sets of covariates.

 

Something like this is what you want to start off with:

proc phreg data=yourData plots(overlay  = stratum) = survival ....;

 

View solution in original post

1 REPLY 1
Reeza
Super User

Look at the OVERLAY options in the PLOTS option. I think you want STRATUM.

 

 

OVERLAY <=overlay-option>

specifies how the curves for the various strata and covariate sets are overlaid. If the STRATA statement is not specified, specifying OVERLAY without any option will overlay the curves for all the covariate sets. The available overlay-options are as follows:

BYGROUP
GROUP

overlays, for each stratum, all curves for the covariate sets that have the same GROUP= value in the COVARIATES= data set in the same plot.

INDIVIDUAL
IND

displays, for each stratum, a separate plot for each covariate set.

BYROW
ROW

displays, for each covariate set, a separate plot containing the curves for all the strata.

BYSTRATUM
STRATUM

displays, for each stratum, a separate plot containing the curves for all sets of covariates.

 

Something like this is what you want to start off with:

proc phreg data=yourData plots(overlay  = stratum) = survival ....;

 

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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
  • 1 reply
  • 804 views
  • 1 like
  • 2 in conversation