AFAIK there's not a great R approach to easy formatted summary stats tables with categorical vars. So here's a gist with a simple implementation. LMK if you actually use it, maybe I'll make it a package. https://gist.github.com/NickCH-K/0406b26f494c46bcef0b0abeacc7f1c8
notes: (1) didn't bother ordering the factors, but could, and it would be right in the table, and (2) as of now you have to correct column alignment by hand after the fact :( latter would probably need huxtable rather than stargazer or something
You can follow @nickchk.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: