BookmarkSubscribeRSS Feed
Jonathan_A
Calcite | Level 5

Hi,

I'm performing a survival analysis using a large, complex health survey linked to mortality outcomes. I have appended several survey years to create an unweighted sample size of approximately 200,000 observations. With weights, the number of observations is over 2.2 million. I have used PROC SURVEYPHREG to estimate adjusted hazard ratios for several categorical variables. Now I would like to check the proportionality assumption using a time-dependent covariate, as illustrated on page 9200 (page 38 of the chapter 113 pdf) of the SAS/STAT 14.1 User's Guide https://support.sas.com/documentation/onlinedoc/stat/141/surveyphreg.pdf

Here's the example from the user's guide:

proc surveyphreg data=Test;

class A;

model T*Status(0)=A X1 X2;

X1= T*(A=1);

X2= T*(A=2);

run;

I have modified the code using the variables from my data and tried running it, but SAS does not generate any output. Due to the large size of the dataset, I let it run for over and hour, but SAS just said "running" and never shows anything in the results viewer.

Is there a better way to statistically test the proportionality assumption?

Thanks,

-Jonathan

 

1 REPLY 1
Reeza
Super User
Try running it with a smaller subset and see if it runs or see if the example runs on your computer. What version of SAS do you have, SAS/STAT latest is 15.1? The following code will let you know what version you're running.

proc product_status;run;

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 658 views
  • 0 likes
  • 2 in conversation