R

Expand broom::tidy() output for categorical parameter estimates

Introduction The tidycat package includes the tidy_categorical() function to expand broom::tidy() outputs for categorical parameter estimates. Documentation For full documentation, see the package vignette: The tidycat package: expand broom::tidy() output for categorical parameter estimates Hello World The tidy() function in the broom package takes the messy output of built-in functions in R, such as lm(), and turns them into tidy data frames. library(dplyr) library(broom) m1 <- mtcars %>% mutate(transmission = recode_factor(am, 0 = "automatic", 1 = "manual")) %>% lm(mpg ~ transmission + wt * as.