BookmarkSubscribeRSS Feed
haoduonge
Quartz | Level 8

Hi all,

Please share approaches to compare performance of the two models below.

Thank you!

Hao

 

*MODEL 1: 1 VARIABLE;

proc phreg data = ALL;

CLASS X1_3CAT(ref='0');

model FU_TIME_YRS *OUTCOME(0)= X1_3CAT/RL eventcode=1;

run;

*MODEL 2: 2 VARIABLES;

proc phreg data = ALL;

CLASS X1_3CAT(ref='0') X2_2CAT(ref='0');

model FU_TIME_YRS *OUTCOME(0)= X1_3CAT X2_2CAT/RL eventcode=1;

run;

1 REPLY 1
SteveDenham
Jade | Level 19

What sort of measure do you want to use for performance? Machine performance can be obtained from the log, in terms of cpu time and elapsed time. Model performance for PHREG is harder as there isn't a real good equivalent to the RMSE (smaller is better in terms of model performance). I suppose you could look at the relative sizes of the standard errors for various parameters, but that overlooks the danger of overfitting. With only two independent variables that may not be an issue, however.

 

SteveDenham

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 995 views
  • 2 likes
  • 2 in conversation