BookmarkSubscribeRSS Feed
nmas
Calcite | Level 5

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!

3 REPLIES 3
nmas
Calcite | Level 5

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,

FCONV, FIRTH, GCONV, HIERARCHY, INCLUDE, INITIAL, ITPRINT, MAXITER, MAXSTEP, NODESIGNPRINT, NODP, NODUMMY,
NODUMMYPRINT, NOFIT, OFFSET, PLCONV, RIDGING, RISKLIMITS, ROCLABEL, SELECTION, SEQUENTIAL, SINGULAR, SLENTRY, SLSTAY,
START, STOP, STOPRES, TIES, TYPE3, XCONV.
ERROR 202-322: The option or parameter is not recognized and will be ignored.

Any help on how to modify the code would be great.
Thanks!
A_Kh
Lapis Lazuli | Level 10

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. 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is Bayesian Analysis?

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 640 views
  • 2 likes
  • 3 in conversation