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;

 

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