I'm using or_glm() to calculate odds ratios, using this reproducible example:
library(oddsratio)
or_glm(data = data_glm,
model = glm(admit ~ gre + gpa + rank,
data = data_glm,
family = "binomial"),
incr = list(gre = 1, gpa = 1, rank = 1))
I have two questions:
- How can I also extract a p-value for each odds ratio?
- How can I get an odds ratio for "gre" adjusted for for "gpa" and "rank"?
I would try as follows: