# Posts

### Regression Tables for Lazy People

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 …

### Plotting Democracy over Time with R

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

### R Summer Workshop on Data Wrangling and Standard Errors

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 …

### The Standard Errors of Persistence Slides

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

### Two Ways to fit Two-Way Fixed Effects in R

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 …

### Simulating Football Recruiting Evaluations with R

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

### OLS Estimation by "Hand" in R

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

### Learning R: Dealing Playcards

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

### Randomization Inference: A Simple Example

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

### Using pdftools to Extract Vote Data

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 …