BookmarkSubscribeRSS Feed
msarin
Calcite | Level 5

Using a Cox multivariate proportional hazard model in SAS, how does one get the p values for the revision risk (not the p values for the coefficients)?  Below are fake data:

 

Variable                                 Revision Risk             p value        

Age group in years             

35-49 vs. 18-34                0.637 (0.200-2.026)    

50-59 vs. 18-34               1.229 (0.883-1.711)    

60-69 vs. 18-34               1.076 (0.794-1.458)    

>=70 vs. 18-34               1.444 (1.079-1.933)

 

 

1 REPLY 1
msarin
Calcite | Level 5

Actually, I ended up doing this:

 

* Calculate p value for hazard ratio;
%macro hazard_p;
est=log(hazardratio);
l=log(HRLowerCL);
u=log(HRUpperCL);
SE=(u-l)/(2*1.96);
z=abs(est/SE);
p=exp(-.717*z-.416*z**2);
drop est--z;
%mend hazard_p;

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1096 views
  • 0 likes
  • 1 in conversation