Skip to content
Prev 197 / 585 Next

epitools::oddsratio error numbers close to zero in cells?

On 5 March 2010 03:26, BXC (Bendix Carstensen) <bxc at steno.dk> wrote:
Another approach is to run a logistic regression model. Using the same
data as above:
? ?a ? b t
1 320 ? 0 1
2 ? 7 ? 0 0
3 ? 0 ? 4 1
4 ? 0 120 0
The estimated odds ratio is here (OR=1371):
(Intercept) ? ? ? ? ? t
?5.833e-02 ? 1.371e+03


And its confidence interval:
Waiting for profiling to be done...
                2.5 %    97.5 %
(Intercept)   0.02466    0.1159
t           442.87000 5551.2516


With less unbalanced data, glm() gives results very close to those
from fisher.test()
a   b t
1 320   0 1
2 200   0 0
3   0 100 1
4   0 150 0
(Intercept)           t
      1.333       2.400
Waiting for profiling to be done...
            2.5 % 97.5 %
(Intercept) 1.080  1.650
t           1.766  3.274
Fisher's Exact Test for Count Data

data:  matrix(c(320, 200, 100, 150), 2)
p-value = 2.294e-08
alternative hypothesis: true odds ratio is not equal to 1
95 percent confidence interval:
 1.742 3.309
sample estimates:
odds ratio
     2.397



--Philippe
Senior Epidemiologist,
World Health Organization
Geneva, Switzerland