BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
TomHsiung
Quartz | Level 8

By default, the PROC PHREG procedure results in a fixed value of hazard ratio, like in the screenshot below.

 

Screen Shot 2018-01-25 at 4.34.07 PM.png

 

PS: The confidence intervals of "Parameter Estimate" and "Hazard Ratio" were both missing. Based on the theory behind Cox proportional hazard model, I need the 95% CI.

 

Tom

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Since you are looking for hazard ratios and confidence intervals is there any reason you aren't using a HAZARDRATIO statement? The option CL= on the Hazardratio statement allows requesting Wald or profile-likelihood limits or both.

View solution in original post

3 REPLIES 3
TomHsiung
Quartz | Level 8

I searched the Internet and found the code of

 

/ rl

The complete code I used to make the Cox proportional hazard regression analysis is

 

proc phreg data=work.d200;
model Time_to_first_therapeutic_INR__d*First_therapeutic_INR_reached_(0)=age__y_ BSA gender_code af
hypertension chf VAR94 AKI_for_T_test Potential_amiodarone_DDI
T_test___indication AF_and_Warfarin_History
var33 var34 / rl selection=stepwise SLE=0.05 SLS=0.20;
assess ph / resample;
run;

 

Please pay attention to the last syntax of

 

assess ph / resample;

This code resulted in following output, what is that? Someone knows? This graph is interesting but it did not seem to like a goodness-of-fit test.

 

Screen Shot 2018-01-25 at 10.16.55 PM.png

Reeza
Super User

ASSESS Statement

 

  • ASSESS <VAR=(list)> <PH> </ options>;

 

The ASSESS statement performs the graphical and numerical methods of Lin, Wei, and Ying (1993) for checking the adequacy of the Cox regression model. The methods are derived from cumulative sums of martingale residuals over follow-up times or covariate values. You can assess the functional form of a covariate or you can check the proportional hazards assumption for each covariate in the Cox model. PROC PHREG uses ODS Graphics for the graphical displays. You must specify at least one of the following options to create an analysis.

 

 

http://documentation.sas.com/?docsetId=statug&docsetTarget=statug_phreg_syntax02.htm&docsetVersion=1...

ballardw
Super User

Since you are looking for hazard ratios and confidence intervals is there any reason you aren't using a HAZARDRATIO statement? The option CL= on the Hazardratio statement allows requesting Wald or profile-likelihood limits or both.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 3 replies
  • 21706 views
  • 1 like
  • 3 in conversation