AFAIK there& #39;s not a great R approach to easy formatted summary stats tables with categorical vars. So here& #39;s a gist with a simple implementation. LMK if you actually use it, maybe I& #39;ll make it a package. https://gist.github.com/NickCH-K/0406b26f494c46bcef0b0abeacc7f1c8">https://gist.github.com/NickCH-K/...
notes: (1) didn& #39;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: