BookmarkSubscribeRSS Feed
rykwong
Quartz | Level 8

Hi

I have this proc phreg code that I am really struggling.  It works on another SAS of my colleague but when it is run on mine, then it just keeps spinning and no output is created so I don't know what is wrong with it

 

data Risk;
ischlge_cat=0; output;
ischlge_cat=1; output;
ischlge_cat=2; output;
run;
ods graphics on;
proc phreg data=spins2 ev plots(overlay=stratum)=cif;
model timediefrom_2a*diefrom_2a(0)=ischlge_cat/ eventcode=1;
   Hazardratio 'Ischemia category' ischlge_cat/ diff=pairwise;
   baseline covariates=Risk out=out1 cif=_all_ ;
run;

 

Really appreciate any thoughts

 

thanks

 

5 REPLIES 5
ChrisNZ
Tourmaline | Level 20
Moved to Procedures thread. Did you try without the Ods graphics option?
rykwong
Quartz | Level 8

tried without the ODS but still just spins and not deliver an output

thansk

ChrisNZ
Tourmaline | Level 20

> tried without the ODS but still just spins and not deliver an output

 

Try with fewer observation and increase the size incrementally then to see what happens

 

proc phreg data=spins2(obs=1000)

 

 

rykwong
Quartz | Level 8

Hi

I have this proc phreg code that I am really struggling.  It works on another SAS of my colleague but when it is run on mine, then it just keeps spinning and no output is created so I don't know what is wrong with it

 

data Risk;
ischlge_cat=0; output;
ischlge_cat=1; output;
ischlge_cat=2; output;
run;
ods graphics on;
proc phreg data=spins2 ev plots(overlay=stratum)=cif;
model timediefrom_2a*diefrom_2a(0)=ischlge_cat/ eventcode=1;
   Hazardratio 'Ischemia category' ischlge_cat/ diff=pairwise;
   baseline covariates=Risk out=out1 cif=_all_ ;
run;

 

Really appreciate any thoughts

 

thanks

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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