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
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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.