BookmarkSubscribeRSS Feed
akhmerova
Calcite | Level 5

Encountering very long processing times when trying to assess the proportional hazards assumption in a Cox regression model.  I am having to terminate the process due to long wait times.  The problem persists regardless of whether I am using SAS Base 9.4 (on Windows desktop) or SAS Studio (Mac).  Below is the code, where &cat is a list of categorical variables (n=23), and &cont is a list of continuous variables (n=3).

proc phreg data=work.outcomes_fnl3_wocong;

class
demo_age1 (REF='<50') demo_gender (REF='M') primdx (REF='Ischemic')
preop_cr1 (REF='<0.9') preop_bili1 (REF='<1.2')
comorb_dm (REF="0") comorb_dial (REF="0") comorb_copd (REF="0") comorb_htn (REF="0") comorb_cvd (REF="0")
preop_abo (REF='A') preop_pra_sens (REF="<20") 
preop_ino (REF="0") preop_ecmo (REF="0") preop_iabp (REF="0") preop_vent (REF="0") 
cvs_prev_typ (REF="VALVE")
donor_age1 (REF='<50') donor_gender (REF='M') donor_cod (REF='Head Trauma')
induct (REF='0')
postop_plasma (REF='0')
op_era (REF="2004-2010")
 / param=ref;

model mort_y*mort(0)=&cat &cont / rl SELECTION = STEPWISE SLS = .05 SLE = .05;

assess var=(&cont)ph / resample;

run;

 

 

3 REPLIES 3
ChrisNZ
Tourmaline | Level 20

Re-titled, and moved to procedures community.

Rick_SAS
SAS Super FREQ

How long does it take to run if you just fit one model instead of using stepwise selection?

SteveDenham
Jade | Level 19

In particular, how long to fit the full model?  I suspect that you may have to make some subject matter decisions regarding the independent variables to get this down to a workable size.

 

SteveDenham

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 3 replies
  • 1707 views
  • 0 likes
  • 4 in conversation