Visualizing Two Categorical Variables: Revenge of the Stat Nerd

Visualizing Two Categorical Variables: Revenge of the Stat Nerd

1.098 Lượt nghe
Visualizing Two Categorical Variables: Revenge of the Stat Nerd
I failed to visualize the relationship between a binary variable and a categorical predictor... until now. In this follow-up to my last data viz misadventure, I finally crack the code. I test nearly every plot I can think of — bar plots, heatmaps, association plots, mosaic plots, and more — and show why most of them fall short. But then inspiration strikes: a new kind of plot that blends observed data with model predictions, aligns with how humans actually perceive visual information, and maybe — just maybe — earns the title of “the Holy Grail” of logistic regression plots. If you’ve ever struggled to visualize categorical data the right way, this one’s for you. To access these plots, install flexplot from github: devtools::install_github("dustinfife/flexplot", ref="logistic_plots") Then you can access the functions as I am. For the discount, use the first two words of the movie I'm referencing, separated by an underscore at checkout :) For my LIVE mixed models course: https://simplistics.net/course/introduction-to-mixed-models-live-august-2025/ For the self-guided R course: https://simplistics.net/course/introduction/ For the self-guided simplistics course: https://simplistics.net/course/univariate/ For other classes, see: https://simplistics.net/all-courses/ For consulting, see: https://simplistics.net/product/statistics-consulting-by-the-hour/ To see my playlist of "live research," visit this playlist: https://www.youtube.com/playlist?list=PL8F480DgtpW9x1hfXd1W7LxXVDOvA8H0s