BookmarkSubscribeRSS Feed
DavidsM
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

2 REPLIES 2
ballardw
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.

 

DavidsM
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;
run;

 

 

How can I obtain R2 if am using proc phreg?

 

 

I will be glad for your assistance.

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
  • 2 replies
  • 1453 views
  • 0 likes
  • 2 in conversation