Output each factor level as dummy variable in stargazer summary statistics table
问题 I'm using the R package stargazer to create high-quality regression tables, and I would like to use it to create a summary statistics table. I have a factor variable in my data, and I would like the summary table to show me the percent in each category of the factor -- in effect, separate the factor into a set of mutually exclusive logical (dummy) variables, and then display those in the table. Here's an example: > library(car) > library(stargazer) > data(Blackmoor) > stargazer(Blackmoor[, c(