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
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.
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.
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.
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.