02 · Projects

Projects/Side Quests

Dashboards, R packages, and replications of papers I find interesting.

Notes

R & Statistics — Master Notes

Ground-up notes on R and applied statistics I wrote in grad school and have since passed around to people learning the basics — from data types and functions through plotting, regression, model diagnostics, robust/clustered standard errors, and bootstrapping. The web version has live, editable R code cells that run in your browser (via WebR, no install), with a PDF for offline reading.

Faceted comparison of standard-error estimates from the notes
Dashboard

SufjanViz

An interactive dashboard for visualizing and analyzing the discography of Sufjan Stevens, built with Shiny for R.

SufjanViz dashboard screenshot
R Package

speccurvieR

Specification curve analysis made easy, fast, and pretty. Improves on existing offerings with GLM support, parallelization, fixed effects, standard error comparison, and tidyverse integration. Available on CRAN.

speccurvieR total CRAN downloads

speccurvieR specification curve plot
R Package

plotness

Poissonness, binomialness, and negative binomialness plots with ggplot, improving on the vcd library’s distplot — or get the underlying data to plot with your preferred graphics library.

plotness distribution plot
Replication

Father Founders: Did Child Gender Affect Voting at the Constitutional Convention?

Pope & Schmidt (2021, AJPS) estimate the effect of delegates’ family composition on their voting behavior at the Constitutional Convention. Originally done in Stata, I replicate the analyses in R with additional diagnostics and counterfactuals considered.

Pope and Schmidt replication plot
Replication

Statistical Mechanics of the US Supreme Court

Lee, Broedersz & Bialek (2015) model the Rehnquist-era Supreme Court as a system of magnetic dipoles to understand when unanimity emerges. I partially replicate the analyses using Python.

Ising model plot of Supreme Court votes