Statistical Analyses of the U.S. Senate
R Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cache
config
data
diagnostics
doc
graphs
jags
lib
logs
munge
profiling
raw_speeches_and_press_releases
reports
slides
src
tests
.gitignore
README.markdown

README.markdown

Introduction

Source code for my analyses of Senate roll calls. Currently, only the most basic ideal point analyses are implemented.

Ideal Point Hardcoding

To resolve the inherent indeterminacy between assigning Republicans positive numbers and Democrats positive numbers, Senator Coburn (R OK) has been assigned a hardcoded ideal point of 2. While I consider a better solution, I am holding off estimating ideal points for earlier congresses.

Data Sources

All of the roll call data comes from VoteView. If you use their data, please cite them, because their remarkable efforts are what makes it possible to analyze roll call records so easily.

Getting Started

If you'd like to start using this code as a basis for your own work, you'll need to have R installed along with the ProjectTemplate, pscl, ggplot2 and rjags packages available on CRAN. In addition, you will need to have JAGS installed, as the ideal point model itself is currently implemented as a JAGS model.

For details on the underlying mathematics, both Simon Jackman and Andrew Gelman have written books that contain very clear descriptions of ideal point models.