To test whether there is an association between disease groups (categorical_variable) and a disease (outcome; count) I am running 3 negative binomial regression models.
To display the ORs and CIs i am using the tbl_regression
function from the package gtsummary
. However, this function displays CIs delineated with comma's, where I want them between brackets, and displays p-values, which I want to supress alltogether.
My code:
library(gtsummary)
model <- glm(data=data, formula=outcome ~ categorical_variable)
tbl_regression(model,
exponentiate = TRUE,
include="categorical_variable")
Any help on formatting the CI's and supressing the p-value column?
I tried adding %>% as_gt() %>% cols_hide("p-value")
as well as %>% as_gt() %>% cols_hide(columns=vars("p-value"))
but to no avail. It says it does not recognize p-value as a column (also does not work without brackets).