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.
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!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.