Italicize or unitalicize levels for fmt_uni_regression objects in Rmarkdown

# S3 method for fmt_uni_regression
italicize_levels(x, ...)

Arguments

x

fmt_uni_regression object

...

further arguments passed to or from other methods

Examples

trial %>% fmt_uni_regression( method = "glm", y = "response", method.args = list(family = binomial), exponentiate = TRUE ) %>% italicize_levels()
#> #> 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