CV Research Teaching Resources Contact

LATEX materials

Getting started:

Here is a brief introduction to typesetting mathematical notation as well as some basic LATEX example files that I have written. Two introductions I like are available here and here. I also like this cheat sheet.

BIBTEX style file for APSR:

In bibliography style file apsr2.bst, I provide fixes for some minor formatting inconsistencies between current requirements for the American Political Science Review and the style file apsr.bst distributed with the harvard LaTeX package:

  • A comma is now placed before the word "and" when it separates author names in the bibliography;
  • A comma is placed before the word "and" when it separates author names for in-text citations with more than two authors;
  • A space is added between journal volume and issue, and colon and page numbers;
  • For BIBTEX item incollection, the chapter title is now quoted.

Stata code

First differences for multinomial probit models:

The Stata program -qi- (as in quantity of interest) uses simulations to compute marginal effects (specifically, first differences), similar to Clarify. This routine complements Clarify in two ways: Most importantly, it estimates first differences after multinomial probit estimation, which Clarify does not support. Secondly, it writes output directly to a csv-file, for easy post-processing (for example in R). The program is called with a single post-estimation command.

This program was used to estimate marginal effects for multinomial probit models in Macartan Humphreys and Jeremy M. Weinstein, "Who Fights? The Determinants of Participation in Civil War", American Journal of Political Science, 52(2), April 2008, 436-455.

Please read the header of the ado-file for additional information and syntax. Currently, -qi- will work after logit, mlogit, and mprobit. The program is not yet properly packaged, and it is computationally inefficient, so Clarify is preferred when it meets your needs. The function requires that the package -erepost- is installed if -qi- is used after -mprobit-.

To install, download qi.ado into your appropriate Stata ado-directory. Here is a simple usage example (read the header of the file for more):

mprobit y x z
qi using out.csv, q(x 0 1) replace