BookmarkSubscribeRSS Feed
Calcite | Level 5

Hello community,



I am looking for ways to calculate explained variation for survival model of cox proportional Hazard regression. I request for assistance so that I can obtain (R2) for any of the common measures of variation except Schemper's R2. 




I will be glad to receive assistance

Super User

Can you at least show some code of what you have attempted so we know which procedure you are attempting to use?

There are multiple procedures that might be used and without knowing which one you might be attempting it may be hard to suggest code changes.

Proc Phreg and Surveyphreg, which I am guessing you might be contemplating, have different limits and abilities.


Calcite | Level 5

Am using Proc phreg like the code below.


Proc phreg data=Variation;
class Gender(ref='Male') INCOME(ref='HIGH'):
model Time * Status (0)= Gender INCOME / rl;
Selection=None details;
Output Out=Variations Survival=Survest;



How can I obtain R2 if am using proc phreg?



I will be glad for your assistance.


Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.


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
  • 2 replies
  • 2 in conversation