ORs for multiple categories in logistic regression

,

Welcome @kellyd18 !

It is easiest to help you if you format a small piece of your data and the code as a reproducible example “reprex” - can you try that? Video and instructions here.

Is it possible that your classe_age, lieu_nais_agr, and lang_mat_agr columns are not factors? Can you check with class() before sending them into the tabling command? The behavior seen is consistent as if they are still being treated as numeric.

Is it also possible that you are saving them as factors in the dataframe bdd, but not in bddf which is being piped to the tbl_uvregression() command?

Another tip is that you can post all your code here in the forum in one chunk using three backticks above and below, like this (but a full reprex is better):

```
bddf %>%
 select(vachpv, age_HPV, lieu_nais_agr, lang_mat_agr) %>%
 gtsummary::tbl_uvregression(
 method = glm, y = vachpv, method.args = list(family = binomial(link = “logit”)),
 exponentiate = TRUE)
```