If I want to perform logistic regression, I can use three different ways:
- manually :
fit1 <- (glm(outcome~A+B,family=binomial,data=database))
summary(fit1)
exp(confint(fit1))
exp(coefficients(fit1)
- function
tbl_regression
fromgtsumary
package
fit1 <- (glm(outcome~A+B,family=binomial,data=database))
tbl_regression(fit1, exponentiate = TRUE)
- function
logistic.display
fromepiDisplay
package
fit1 <- (glm(outcome~A+B,family=binomial,data=database))
logistic.display(fit1)
Adjusted OR and p-value are the same with the three methods.
But I am surprised to see that 95%CI from tbl_regression
and manual calculation are different from 95%CI from logistic.display
...
However, only the 95%CI from the logistic.display
function matches the p-value (whitch should include 1 if p-value > 0.05).
Does anybody know why?