BookmarkSubscribeRSS Feed
Crystal_F
Quartz | Level 8

Hi,

 

I used proc phreg to conduct survival analysis but failed to get the c statistic from the model. I kept receiving an error message from the log:  'Neither concordance nor ROC analysis is performed with the START/STOP specification' .

 

 

ods graphics on;
PROC PHREG DATA=temp.POP_long2 concordance plots=roc rocoptions(at=365 to 2920 by 365);
class c_age (ref='1') c_education (ref='1') c_gender (ref='2') c_race (ref='1') 
      c_married(ref='0') c_access(ref='0') c_financialDifficulty(ref='0') c_depression(ref='0')
      c_Anxiety(ref='0') c_demclas(ref='3') c_carecompanion(ref='0') 
      c_ParticipationRestriction(ref='0')/param=reference;
MODEL (start,stop)*flag_visitFallout_t(0)=c_age  c_gender c_race c_education c_married c_access c_financialDifficulty 
                                          c_ParticipationRestriction c_depression c_Anxiety Comorbidities_f  
                                          IADLs c_demclas  c_carecompanion /TIES=EFRON;
RUN 

 

I also tried something like: 

plots=auc rocoptions(method=ipcw(cl seed=1234));

but that didn't work neither. 

 

I wonder if there is any way to work around this. Thanks for your inputs!

1 REPLY 1

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
  • 1 reply
  • 901 views
  • 0 likes
  • 2 in conversation