Convert fmt_regression objects to data frame

# S3 method for fmt_regression
as_tibble(x, ...)

as_data_frame.fmt_regression(x, ...)

Arguments

x

object of class fmt_regression object from fmt_regression() function

...

further arguments passed to individual methods.

Details

as_data_frame.fmt_regression is alias.

See also

Examples

glm(response ~ age + stage + grade, trial, family = binomial(link = "logit")) %>% fmt_regression(exponentiate = TRUE) %>% as_tibble()
#> # A tibble: 10 x 4 #> `N = 183` OR `95% CI` `p-value` #> <chr> <chr> <chr> <chr> #> 1 Age, yrs 1.00 0.98, 1.02 0.9 #> 2 T Stage " " " " " " #> 3 T1 Ref. " " " " #> 4 T2 1.49 0.64, 3.49 0.4 #> 5 T3 0.65 0.26, 1.58 0.3 #> 6 T4 0.51 0.22, 1.14 0.10 #> 7 Grade " " " " " " #> 8 I Ref. " " " " #> 9 II 0.55 0.25, 1.19 0.13 #> 10 III 0.79 0.38, 1.64 0.5