Skip to content
Code & data for "The Hidden Effects of Judge Ideology in Federal District Courts" by Ryan Hübert and Ryan Copus
Python R
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Revisiting Ideology

This repository contains code & data for "The Hidden Effects of Judge Ideology in Federal District Courts" by Ryan Hübert and Ryan Copus. A draft of the paper is available at

Ryan Hübert, Assistant Professor, UC Davis, rhubert %at% ucdavis %dot% edu

Ryan Copus, Climenko Fellow, Harvard Law School, rwcopus %at% gmail %dot% com

Data Collection & Preprocessing

Note: the code for the data collection and preprocessing is not available in this repository.

We collected every docket sheet on file with PACER in the U.S. District Courts in Washington, Oregon and California from 1995 to 2016.

We then used an automated process to parse the text of the docket sheets to generate a quantitative dataset.

Finally, we merged in additional data from the FJC's Integrated Database available at

Files for Current Project

Scripts imports and cleans dataset for use in prediction and estimation

01b.Clean.R: imports and cleans token data from docket sheets' first entries (this is separated due to its reliance on quanteda R package) performs predictions for propensity scores using random forest trains stacked ensemble models to generate predicted probabilities for each outcome (predicted potential outcomes) loads models generated by and generates predicted probabilities estimates average treatment effects for main analyses as well as effects for bias analysis

06.Visualize.R: generates tables and plots for paper (not available in repository)


We will post anonymized data for replication upon publication of the paper.

You can’t perform that action at this time.