I have following statements in PROC PHREG (please see below), the meaning does not matter. The purpose is so the output shows hazard ratio for, say, ost_q 2 vs. 1 (since '1' is the reference level), but instead the output from hazardratio statement shows ost_q 1 vs. 2. How to modify this code? Many thanks!
class ost_q (ref='1')/ PARAM = REF;
model hosp*hosp_bin(0) = ost_q;
hazardratio ost_q /cl = wald ;
Hello @pink_poodle,
Add the DIFF=REF option to the HAZARDRATIO statement:
hazardratio ost_q /cl = wald diff=ref;
Hello @pink_poodle,
Add the DIFF=REF option to the HAZARDRATIO statement:
hazardratio ost_q /cl = wald diff=ref;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: