BookmarkSubscribeRSS Feed
bhr-q
Pyrite | Level 9

Hello all,

As there is only one patient in one of the categories below, is that possible to run the logistic and get the odds ratio? Or should I leave this objective?

 

Not: there is no possibility to combine the groups.

 

Antibiotic    freq

a                  47

b                 20

c                 56

d                  3

e                 57

f                    1 

proc logistic data=tmp;
  class  antibiotic (ref='c')/ param=ref ;
  model Bf_u =  antibiotic;
run;

when I run my code, I will get the below results:

 

Odds Ratio Estimates
Effect Point Estimate 95% Wald
Confidence Limits
a vs c 1.023 0.461 2.269
b vs c 0.530 0.169 1.665
d vs c 1.029 0.483 2.193
e vs c 3.182 0.272 37.204
f vs c >999.999 <0.001 >999.999
 
 

Thank you in advance!

   

3 REPLIES 3
Ksharp
Super User
Yes . you could "leave this objective".
Or try
1) penalty MLE by firth option

model Bf_u = antibiotic/ firth ;
2)exact logistic regression

model Bf_u = antibiotic;
exact antibiotic;
bhr-q
Pyrite | Level 9

thanks so much for your help, I did this way, and received e a too big confidence interval for the last category which I think it is not appropriate,

 

something like this:

 

 

OR

Confidence Limits

f

4.653

0.050

435.226

Ksharp
Super User
Yeah. That is because you have a very big std err for OR due to one obs for F .
I think you could "leave this objective out from model" if you do not want so wide CL .

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

What is ANOVA?

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.

Discussion stats
  • 3 replies
  • 1352 views
  • 5 likes
  • 2 in conversation