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-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 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
  • 977 views
  • 5 likes
  • 2 in conversation