title: Regression coefficient with 95%CI in one column using tbl_regression function in R?
body: <p>To test whether there is an association between disease groups (categorical_variable) and a disease (outcome; dichotomous) I am running a logistic regression. To check for confounding by other variables I am running 3 models with various amounts of covariates.</p>
  <p>To display the ORs and CIs i am using the <code>tbl_regression function</code> from the package <code>gtsummary</code> (and I used the dplyr function <code>mutate</code> to display CIs in round brackets). However, this displays the CI in a seperate column from the OR, but I want them in the same column with the CI in round brackets after the OR.</p>
  <p>My code:</p>
  <pre><code>library(gtsummary)
  library(dplyr)
  
  Model 1 &lt;-  
    glm(data=wide_dataset, formula=outcome ~ categorical_variable, 
        family=binomial(link=&quot;logit&quot;) %&gt;%
    tbl_regression(
      exponentiate = TRUE) %&gt;% 
    # remove the p-value column
    modify_column_hide(column=p.value) %&gt;%
    # CI in round brackets:
    modify_table_body(mutate, 
                      ci=gsub(&quot;(\\d\\.\\d{,4})(, )(\\d\\.\\d{,4})&quot;
                              ,&quot;\\(\\1 \\3\\)&quot;,
                              ci))
  
  Model 1
  </code></pre>
  <p>Thanks in advance!</p>