Welcome
You've reached Dan Pemstein's web site. I'm a doctoral fellow at the Institute for Quantitative Social Science at Harvard University and a PhD candidate in Political Science at the University of Illinois. My research focuses on the political economy of party systems and the interplay between electoral and legislative institutions and party politics in democracies. My current projects explore the strategic choices parties make when selecting and placing candidates and the role that individual political ambition plays in determining legislative behavior. In addition, I have diverse interests in political methodology, combining a theoretical emphasis on formal modeling and complex systems research with quantitative methods. Finally, I am a co-author of the Scythe Statistical Library, an open source C++ library for statistical computation, and a co-developer of the Unified Democracy Scores, a project that synthesizes the contributions of other scholars to produce a composite democracy scale, accompanied by estimates of measurement uncertainty.
Research
You can find copies of my current working papers/presentations and some data below. If you're interested in older presentations or published work, take a look at my CV.
Working Papers and Presentations
-
Strategy and Selection in Nominating Women Candidates
(with William Bernhard)
-
Political Ambition and Legislative Behavior in the European Parliament
(with Stephen Meserve and William Bernhard)
-
Democratic Compromise: A Latent Variable Analysis of Ten Measures of Regime Type
(with James Melton and Stephen Meserve)
Datasets
-
(with James Melton and Stephen Meserve)
A set of measures that leverage the efforts of a variety of experts to provide a composite scale of democracy, accompanied by estimates of measurement uncertainty. The scores are available for virtually every country in the world from 1946 through 2000.
Teaching
I'm not teaching anything at the moment, but here's what I've taught in the past:
-
Introduction to Comparative Politics
Computing
Software
I write a lot of code. This includes statistical software, other research-related code, and some projects that are just for fun. I haven't updated this section in a while and some of this stuff is pretty dated, but C++/Scythe implementations of various Bayesian estimators should end up here eventually.
-
The Scythe Statistical Library
A C++ library for statistical computation co-authored with Kevin M. Quinn (Harvard University) and Andrew D. Martin (Washington University). Scythe includes a suite of matrix manipulation functions, a suite of pseudo-random number generators, and a suite of numerical optimization routines. Scythe sits under the hood of a number of R packages, most notably MCMCpack, and has been used in published work in fields ranging from political science to molecular ecology, dentistry, and earth sciences. Like most of my software projects, Scythe is free software.
-
A Perl module for viewing and modifying the info and comment fields of audio files encoded in the Ogg Vorbis compressed audio format.
-
A Perl module wrapping the libao cross-platform audio library.
Snippets
-
This tutorial on the UDS website demonstrates how to use posterior samples from MCMC in subsequent (frequentist) analyses. The example is intended to explain how to use the Unified Democracy Scores correctly, but is generally applicable. So, for example, if you want to use Clinton-Jackman-Rivers or Martin-Quinn style ideal point estimates in your research and want to correctly incorporate posterior uncertainty in the ideal point estimates into your inferences, this tutorial shows you how, using stata.
-
Here's a set of slides (src) I put together on creating presentations with Prosper for a UI polisci grad student seminar on LaTeX. Note that I don't necessarily recommend Prosper (and I don't use it myself these days) and I would suggest FoilTeX for basic slides and Beamer for more powerpointish presentations.
-
Here are some more examples of presentations in foiltex (pdf, src) and beamer (pdf, src) that I briefly presented at a more recent seminar (September 2007). Also, here's some R code for computing a simple binomial MLE with bootstrapped confidence intervals that I presented at the same event.
-
Here's a bit of code (raw src) that plays an Ogg Vorbis file in perl, using the Ogg:Vorbis::* and Audio::Ao modules. For reference, here's a similar program (raw src) in plain old c.
-
A few years ago I started working on a simple C++ neural network library called ANN++. I moved on to other things and the project languished, but here is the most recent snapshot of the code for any who are interested in poking around. It's a rather primitive but intuitive framework for building neural nets in C++. Also, I doubt it builds in more recent versions of g++. From a more practical perspective, I'd suggest taking a look at FANN or Libann.
The photograph at the top of the page is the work of Michael Spry and is distributed under the same license as this web page. The author authorized me to make modifications to the original photograph. Unless specifically accompanied by a license, all source code on this page is distributed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 license.