Description Usage Arguments Examples
This function uses broom::tidy
from the broom
or broom.mixed
packages
to perform the initial model formatting. Review the fmt_regression
vignette
for detailed examples.
1 2 3 4 | fmt_regression(x, exponentiate = FALSE, label = NULL,
include = names(stats::model.frame(x)), show_yesno = NULL,
conf.level = 0.95, intercept = FALSE, beta_fun = fmt_beta,
pvalue_fun = fmt_pvalue)
|
x |
regression model object |
exponentiate |
logical argument passed directly to
|
label |
list of labels to write in the output. |
include |
names of variables to include in output. Default is all variables. |
show_yesno |
Vector of names of categorical and factor variables that
are |
conf.level |
confidence level passed directly to |
intercept |
logical argument indicates whether to include the intercept
in the output. Default is |
beta_fun |
function to round and format beta coefficients. Default is |
pvalue_fun |
function to round and format p-values. Default is |
1 2 3 4 5 6 7 8 9 | mod1 <- lm(hp ~ mpg + factor(cyl), mtcars)
fmt_regression(mod1)
mod2 <- glm(response ~ age + grade + stage, trial, family = binomial(link = "logit"))
fmt_regression(mod2, exponentiate = TRUE)
library(lme4)
mod_glmer <- glmer(am ~ hp + (1 | gear), mtcars, family = binomial)
fmt_regression(mod_glmer, exponentiate = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.