strengejacke / sjPlot

sjPlot - Data Visualization for Statistics in Social Science
https://strengejacke.github.io/sjPlot
606 stars 91 forks source link

Grouped contingency table #589

Open gustavobrp opened 4 years ago

gustavobrp commented 4 years ago

Hello, would be nice to produce a grouped contingency table from xtab. Is this possible and I missed something or is not implemented?

I'm providing two print with examples that I have from SPSS and from a customized table in Word (sorry, language in pt, but I think is possible to take the idea).

Best,

image image

frankcsliu commented 4 years ago

I second this feature request. While sjmisc::flat_tab() may work, it will be nicer to see a fucntion generating combined (or piled) tab_xtab() tables in html format.

For example, given Y and X1, X2, X3, and X4, I like to see tab_xtab(X1:X4, Y) with chisquare information could be given to each of the for pairs.

Thanks.