Print fmt_uni_regression objects in Rmarkdown

# S3 method for fmt_uni_regression
knit_print(x, options, ...)

Arguments

x

object of class fmt_uni_regression object from fmt_uni_regression function

options

Copied from the printr package....should we delete?

...

further arguments passed to knitr::kable().

Examples

fmt_uni_regression( trial, method = "glm", y = "response", method.args = list(family = binomial), exponentiate = TRUE ) %>% print()
#> #> Variable N OR 95% CI p-value #> Treatment Randomization 191 #> Drug Ref. #> Placebo 0.47 0.26, 0.84 0.012 #> Age, yrs 183 1.00 0.98, 1.02 >0.9 #> Marker Level, ng/mL 183 0.92 0.65, 1.30 0.6 #> T Stage 191 #> T1 Ref. #> T2 1.40 0.63, 3.14 0.4 #> T3 0.63 0.26, 1.50 0.3 #> T4 0.50 0.22, 1.11 0.089 #> Grade 191 #> I Ref. #> II 0.60 0.29, 1.25 0.2 #> III 0.76 0.38, 1.51 0.4