BookmarkSubscribeRSS Feed
chinna0369
Pyrite | Level 9

Hi,

 

I am using below code to get hazard ratio and lcl and ucl based on Adjusted Hazard Ratio from stratified Cox Proportional Hazard Model?

 

** Hazard Ratio;
ods trace on;
ods output hazardratios=hazard;

proc phreg data=adtte;
class trtpn;
model aval*cnsr(1)=trtpn;
strata ACCRES;
hazardratio trtpn;
run;

ods output close;
ods trace off;

 

But it looks like I am not getting the correct values here. Am I missing something here?

 

Thank you in advance!

Adithya

2 REPLIES 2
ballardw
Super User

We don't have your data or know what you think may be reasonable.

Address the first with Instructions here: https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.

 

Second is describe which values in the output you have questions about and why you think there may be an issue with them.

Reeza
Super User
PARAM=REF and likely setting the REF levels correctly.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 471 views
  • 0 likes
  • 3 in conversation