Cross-tabulation Deep Dive
Explore some more of the cross-tabulation functionalities using the presidential data.
Cross-tabulation summaries
Using the JetBrains dataset, let’s summarize the count of respondents by country and age:
Adding margins
Both pivot_table and crosstab have a margins parameter that will put in a column and row at the right and at the bottom, respectively, which would summarize the data:
Normalizing results
The crosstab ...