The tidy_wrap()
function has two primary functions. First, using either
broom::tidy
or broom.mixed::tidy
(depending on model input class)
the regression model object is converted into a data frame. It then adjusts the
output for use in the rest of fmt_regression
.
tidy_wrap(x, exponentiate, conf.level)
regression model object
logical argument passed directly to broom::tidy
or broom.mixed::tidy
.
confidence level passed directly to broom::tidy
or broom.mixed::tidy
.
The output of broom::tidy
or broom.mixed::tidy
will often include additional information
that will not be included in a printed table from fmt_regression()
(e.g. scale parameters, random effects, etc.). This
simple helper function deletes extraneous rows from the output.
It also adds a column of NAs if the model does not calculate p.values, since
the rest of fmt_regression()
depends on having a column called p.value.