library(tidyverse)
library(tidymodels)
mtcars_fit <- linear_reg() |>
fit(mpg ~ disp + cyl, data = mtcars)
tidy(mtcars_fit)
# A tibble: 3 × 5
term estimate std.error statistic p.value
<chr> <dbl> <dbl> <dbl> <dbl>
1 (Intercept) 34.7 2.55 13.6 4.02e-14
2 disp -0.0206 0.0103 -2.01 5.42e- 2
3 cyl -1.59 0.712 -2.23 3.37e- 2