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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—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
  • 1 reply
  • 1136 views
  • 0 likes
  • 2 in conversation