BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jennxxness
Calcite | Level 5

I am currently working on a cause specific hazard regressions (cox) model and my model currently violates the proportional hazards assumption for my primary independent variable. 

I am trying to model the cox with a different distribution (such as square root or log) to see if I can find a way to improve my model's fit.

I am currently using the proc phreg function to model this

proc phreg data=work.hypertension covs(aggregate);
class case (ref='0') incquint (ref='1') ruralnum (ref='0');
model timefromhypertension*AdEvent(0,2)= case incquint ruralnum/RL ties=efron;
id case_num;
run;

Is there any way in SAS for me to model the cox and use a different distribution in order to improve its fit?

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
OsoGris
SAS Employee

You cannot use a parametric model specification with the Cox model and PROC PHREG. So, you can't specify a distribution essentially. 

View solution in original post

1 REPLY 1
OsoGris
SAS Employee

You cannot use a parametric model specification with the Cox model and PROC PHREG. So, you can't specify a distribution essentially. 

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