I’ve started publishing blog posts on statistics at the UVa StatLab (my day job). Here’s a link to my posts:… Read more
Creating an R data package
A few weeks ago I got back into an old textbook of mine, Design and Analysis of Experiments (Dean and… Read more
A Note on Boxplots in R
As a statistical consultant I frequently use boxplots. They're a great way to quickly visualize the distribution of a continuous… Read more
Poisson regression – Ch 6 of Gelman and Hill
Chapter 6 of Gelman and Hill's Data Analysis Using Regression and Multilevel/Hierarchical Models presents an interesting example of Poisson regression… Read more
Understanding Mosaic Plots
Mosaic plots provide a way to visualize contingency tables. However they’re not as intuitive as, say, a scatter plot. It’s… Read more
Review of R Graphs Cookbook
I was recently invited to review the second edition of the R Graphs Cookbook by Jaynal Abedin and Hrishi V…. Read more
Setting up a keyboard shortcut for the dplyr chain operator
I finally reached the point where I was using dplyr enough to get annoyed with typing %>%. I’m guessing if… Read more
Partial Residuals and the termplot function
Earlier this year I taught an Intro to R Graphics workshop. While preparing for it I came across the termplot… Read more
Permutation Tests
Let's talk about permutation tests and why we might want to do them. First think about the two-sample t-test. The… Read more
Simulating responses from a linear model
Say you fit a model using R's lm() function. What you get in return are coefficients that represent an estimate… Read more