Models must have a generics::tidy()
method defined, which should return "term", "estimate",
"std.error", "statistic" and "p.value". The "broom"
package provides methods for many model
objects. If the tidy
method does not have a conf.int
option,
huxreg
will calculate confidence intervals itself, using a normal approximation.
If ...
has names or contains a single named list, the names will be used for column headings.
Otherwise column headings will be automatically created.
If the coef
and/or statistics
vectors have names, these will be used for row headings. If
different values of coef
have the same name, the corresponding rows will be merged in the
output.
statistics
should be column names from generics::glance()
. You can also use "nobs"
for the
number of observations. If statistics
is NULL
then all columns from glance
will be used. To
use no columns, set statistics = character(0)
.
error_format
is a string to be interpreted by glue::glue()
. Terms in parentheses will be
replaced by computed values. You can use any columns returned
by tidy
: typical columns include statistic
, p.value
, std.error
, as well as conf.low
and conf.high
if you have set ci_level
. For example, to show confidence intervals, you
could write error_format = "{conf.low} to {conf.high}"
.