
{broom}
and {easystats}
Computes parameters for regression models.
tidy_parameters(x, conf.int = TRUE, ...)
An object to be converted into a tidy tibble::tibble()
.
Indicating whether or not to include a confidence interval in
the tidied output (defaults to TRUE
).
Additional arguments that will be passed to
parameters::model_parameters()
or broom::tidy()
, whichever method
works. Note that you should pay attention to different naming conventions
across these packages. For example, the required confidence interval width
is specified using ci
argument in parameters::model_parameters
, while
using conf.level
in broom::tidy
.
A data frame of indices related to the model's parameters.
The function will attempt to get these details first using
parameters::model_parameters()
, and if this fails, then using
broom::tidy()
.
# NOT RUN {
set.seed(123)
mod <- lm(mpg ~ wt + cyl, data = mtcars)
broomExtra::tidy_parameters(mod)
# }
Run the code above in your browser using DataLab