Skip to content

Instantly share code, notes, and snippets.

@thinhong
Created April 19, 2025 14:23
Show Gist options
  • Save thinhong/6219166b159c78b0cdde694c661ac26f to your computer and use it in GitHub Desktop.
Save thinhong/6219166b159c78b0cdde694c661ac26f to your computer and use it in GitHub Desktop.
[gtsummary OR]
tb2 <- glm(formula_current, data = train, family = "binomial") |>
    tbl_regression(exponentiate = TRUE, pvalue_fun = ~style_sigfig(., digits = 3))
tb1 <- train[, c("phando2", all_feats)] |>
  tbl_uvregression(
    method = glm,
    y = phando2,
    method.args = list(family = binomial),
    exponentiate = TRUE,
    hide_n = TRUE
  )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment