BookmarkSubscribeRSS Feed
DavidsM
Fluorite | Level 6

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
Fluorite | Level 6

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