BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
pink_poodle
Barite | Level 11

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 ;

 

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

Hello @pink_poodle,

 

Add the DIFF=REF option to the HAZARDRATIO statement:

hazardratio ost_q /cl = wald diff=ref;

View solution in original post

2 REPLIES 2
FreelanceReinh
Jade | Level 19

Hello @pink_poodle,

 

Add the DIFF=REF option to the HAZARDRATIO statement:

hazardratio ost_q /cl = wald diff=ref;
pink_poodle
Barite | Level 11
Great, thank you! Happy Solar Eclipse!

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

What is Bayesian Analysis?

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 2 replies
  • 978 views
  • 3 likes
  • 2 in conversation