Skip to contents

Checks if a tidy method exits for a given object, either in {broom} or in {broom.mixed}. If it does, it turn an object into a tidy tibble, if not, return a NULL. In this case, you can try the tidy_parameters() function.

Usage

tidy(x, ...)

Arguments

x

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

...

Additional arguments to tidying method.

Value

A tibble::tibble() with information about model components.

Examples

set.seed(123)
lm.mod <- lm(Sepal.Length ~ Species, iris)
broomExtra::tidy(x = lm.mod, conf.int = TRUE)
#> # A tibble: 3 × 7
#>   term              estimate std.error statistic   p.value conf.low conf.high
#>   <chr>                <dbl>     <dbl>     <dbl>     <dbl>    <dbl>     <dbl>
#> 1 (Intercept)          5.01     0.0728     68.8  1.13e-113    4.86       5.15
#> 2 Speciesversicolor    0.930    0.103       9.03 8.77e- 16    0.727      1.13
#> 3 Speciesvirginica     1.58     0.103      15.4  2.21e- 32    1.38       1.79