ggplot: Easy as pie (charts) Aug 12, 2021 This post by no means endorses the use of pie charts. But, if you must, here’s how… For some reason, the top Google results for “ggplot2 pie chart” show some very convoluted code to accomplish what should be easy: ...
ggplot: plot only some of the data Jul 12, 2021 Often (especially when working with large and/or rich datasets) our (gg)plots can feel cluttered with information. But they don’t have to be! Let’s look at the following plot: ...
Everything You Always Wanted to Know About ANOVA* May 25, 2021 ANOVA tables are a way of summarizing a liear regression model, by presenting the results grouped by the model’s terms / effects. The goals of this post are to (1) examine what ANOVA tables are and what they do, (2) demonstrate what the various types of ANOVAs are, and (3) familiarize you with how R does ANOVA.
ggplot: the placing and order of aesthetics matters May 16, 2021 Or: how ggplot implicitly groups your data
Testing The Equality of Regression Coefficients Feb 16, 2021 How to compare coefficient of different predictors within a single model, in R?
(What to do) When Predictors Co-Vary Aug 11, 2020 Co-varying predictors can be a messy business. They make estimates unstable, reducing our statistical power and making interpretation more difficult. In this post I will demonstrate how ignoring the presence of co-variation between predictors when exploring our models can lead to odd results and how we might deal with this issue.
Estimating and testing GLMs with `emmeans` Apr 13, 2020 This post was written in collaboration with Almog Simchon (@almogsi) and Shachar Hochman (@HochmanShachar). Go follow them. The fictional simplicity of Generalized Linear Models Who doesn’t love GLMs? The ingenious idea of taking a response level variable (e. ...