tidy_parameters: Tidy dataframes of model parameters using '{broom}' and...

View source: R/hybrid_easystats.R

tidy_parametersR Documentation

Tidy dataframes of model parameters using {broom} and {easystats}

Description

Computes parameters for regression models.

Usage

tidy_parameters(x, conf.int = TRUE, ...)

Arguments

x

An object to be converted into a tidy tibble::tibble().

conf.int

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.

Details

The function will attempt to get these details first using parameters::model_parameters(), and if this fails, then using broom::tidy().

Value

A data frame of indices related to the model's parameters.

Examples

set.seed(123)
mod <- lm(mpg ~ wt + cyl, data = mtcars)
broomExtra::tidy_parameters(mod)

broomExtra documentation built on April 2, 2022, 5:05 p.m.