Hi,
I am new to SAS and undertaking competing risk analysis. This is my code (I generated this by choosing options under Data instead of actually writing the code):
"proc phreg data=LIB.'COMPETING RISK SET UP 3'n;
class sexd / param=ref;
model Follow_time*Status(0)=sexd age charlson
Med / eventcode=1;
run;"
The Results show Hazard Ratio (HR) but I cannot work out how to get the 95% confidence interval for the HR to show in the Results. Does anyone know how to fix this please?
Thanks!
Have you tried the HAZARDRATIO statement with the CL= option?
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_phreg_syntax13.htm
Thank you for your reply.
Yes, I tried to include CL (see code below):
"proc phreg data=LIB.'COMPETING RISK SET UP 3'n;
class sexd / param=ref;
model Follow_time*Status(0)=sexd age charlson
Med / eventcode=1 CL;
run;”
However, it shows the following errors in the log:
ERROR 22-322: Syntax error, expecting one of the following: ;, ABSFCONV, ALPHA, BEST, CORRB, COVB, DETAILS, ENTRYTIME, FAILCODE,
Hi,
Looking at your code I don't see using HAZARDRATIO statement there.
Besides, please post the entire log from the phreg step, not only the error part.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.