turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- Relative risk per a unit decrease instead of incre...

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

10-25-2014 11:21 PM

Hi,

I obtained relative risk (RR) using PROC PHREG for a **continuous predictor**. By default, the RR was calculated for a unit INCREASE of the predictor, However, what I want to obtain is the ratio per a unit DECREASE. In other words, SAS calculates "(risk in a higher level) / (risk in a lower level)" but I want to make SAS to calculated **"(risk in a lower level) / (risk in a higher level)."** If you know how to obtain relative risk or odds ratio per a unit decrease of a continuous predictor with a command other than PROC PHREG (i.e., PROC REG, PROC LOGISTICS, etc...), please share your knowledge.

Following are the codes that I used.

proc phreg data=please;

model time*event(0)=continuous_predictor;

run;

Thanks!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

10-26-2014 12:40 AM

Try HazardRatio statement with unit = -1.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

10-26-2014 11:24 AM

Thank you for your comment, Reeza. Would you specify what you mentioned above?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

10-26-2014 10:57 PM

Hmm...I thought the following would work, but I guess not since unit only accepts positive values.

Not sure

proc phreg data=please;

model time*event(0)=continuous_predictor;

hazardratio continuous_predictor/unit=-1;

run;

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

11-03-2014 02:39 PM

PROC LOGISTIC will also report the odds ratio for a unit increase in the continuous predictor. To get the reciprocal of that odds ratio, you would have to model the other level of the binary response. For example, if your response levels are coded 0 and 1 and you model the probability of 0:

model y(event="0")=x;

then modeling the probability of 1 will give an odds ratio that is the reciprocal of the above:

model y(event="1")=x;