Hi All,
I am running a logistic regression model with mortality as the dependent variable (event of interest is "1", which equals mortality) and 3 treatments as the independent variable ("0" signifies the patient did not receive therapy, whereas "1" signifies the patient did receive therapy).
When running the model, SAS defaults to reporting the event of "0 vs 1" in the odds ratio plots (see below).
Code:
proc logistic data=WORK.TOCI plots=(oddsratio(cldisplay=serifarrow) );
class Received_Hydroxychloroquine Received_Azithromycin Treatment / param=glm;
model Mortality(event='1')=Received_Hydroxychloroquine Received_Azithromycin
Treatment / link=logit technique=fisher;
run;
I would like to model this analysis based on "1 vs. 0", in other words the predictability of mortality if the patient received therapy. I adjusted the code by adding DESC, and the order seems to have reversed, but the odds ratio plot is still reporting "0 vs. 1" and the point estimates have not changed.
Code:
proc logistic descending data=WORK.TOCI plots=(oddsratio(cldisplay=serifarrow) );
class Received_Hydroxychloroquine Received_Azithromycin Treatment / param=glm;
model Mortality(event='1')=Received_Hydroxychloroquine Received_Azithromycin
Treatment / link=logit technique=fisher;
run;
Is there any additional issue in the code of the program that is causing this to happen, or am I misinterpreting the results?
Thanks in advance,
Matt
Hi @darkwob and welcome to the SAS Support Communities!
The output says "Probability modeled is Mortality='1'" -- which is what you want and what you requested with the option event='1' in the MODEL statement. So, the descending option in the PROC LOGISTIC statement is basically redundant. Instead, add the descending option of the CLASS statement to turn the odds ratios of the dichotomous CLASS variables around.
class Received_Hydroxychloroquine Received_Azithromycin Treatment / param=glm descending;
Hi @darkwob and welcome to the SAS Support Communities!
The output says "Probability modeled is Mortality='1'" -- which is what you want and what you requested with the option event='1' in the MODEL statement. So, the descending option in the PROC LOGISTIC statement is basically redundant. Instead, add the descending option of the CLASS statement to turn the odds ratios of the dichotomous CLASS variables around.
class Received_Hydroxychloroquine Received_Azithromycin Treatment / param=glm descending;
Response removed by author
(Because it was wrong, basically)
SteveDenham
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.