- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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,
Any help on how to modify the code would be great.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.