Is there a tidymodels way to extract all the statistics from a parsnip model of linear regression?
What I want is the same results as obtained with
summary(lm(mpg ~ wt, mtcars))
I could do it this way:
library(tidymodels) fit_tidy <- linear_reg() %>% set_engine("lm") %>% fit(mpg ~ wt, mtcars) summary(fit_tidy$fit)
But I wonder if there is a function from tidymodels to do that.
All help very much appreciated!