Posts

In the spirit of writing as note-taking, I wanted to share a neat little trick in R for running regressions. By far the most common …

Introduction Recently, I made some maps for a research article. I initially had some reticence, as it had been a long time since I …

Today I gave a workshop on common data manipulation tasks in R. I was fortunate to have a great audience of graduate students from the …

On Friday, I gave a presentation on Morgan Kelly’s “The standard errors of persistence” a summary of which is …

1. Introduction Recently, a friend asked me how to fit a two-way fixed effects model in R. A fixed effects model is a regression model …

R is great for running quick simulations. Using a running example of college football recruit rankings, I show how we can leverage the …

A common programming assignment when learning regression is to calculate OLS estimators by hand. In this post, I show exactly how to …

Introduction There are lots of benefits to learning a computer language, even if only learning enough to make yourself dangerous to …

Randomization Inference is a non-parametric method for calculating p-values for hypothesis tests. This post provides a simple example …

Introduction Suppose you are a concerned citizen who would like to know how voters in a state voted. Perhaps you are a voter in a state …