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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 881 views
  • 0 likes
  • 3 in conversation