This is a repo to store the R script that produced the results and graphics in the Football Outsiders article "Offensive Personnel vs. Men in the Box: A Football Causality Tutorial."
Unfortunately the data underlying the analysis is proprietary, but you should be able to use this code with minor modifications in the data import and wrangling stage to produce similar results using the NFL's Big Data Bowl data.