As one of my two research agendas involves improving the tools we use to study peace and conflict, a good deal of my time is spent using statistical software. Below you’ll find software for working with estimates from Bayesian models and some code that I’ve written to save time on tasks that I find myself doing over and over again.


I am a developer of the BayesPostEst R package for generating postestimation quantities of interest from Bayesian models. The package contains functions for producing regression tables, plotting predicted probabilities, calculating first differences, and many other quantities. You can view the Journal of Open Source Software article for the package here.

To install the latest release on CRAN:


The latest development version on GitHub can be installed with:


Note: I am in the process of migrating my Bayes functions from my own personal RWmisc package below to BayesPostEst. Currently the mcmcreg() function for creating publication-ready regression tables has been relocated to BayesPostEst (and renamed mcmcReg()) while the mcmccp() and mcmcme() functions for coefficient plots and marginal effects plots will follow soon. They will be available in the development version on GitHub before the release version on CRAN.


I’ve collected convenience functions that I’ve written to address issues I frequently confront in my work into a personal R package called RWmisc. It includes:

  • Coefficient plots and marginal effects plots for Bayeisan models
  • Managing multiple different projections for cross-national spatial data
  • Correcting for overlapping polygons when aggregating raster data to polygons
  • My custom minimal ggplot2 theme

You can install the current version with :


Other Resources

I also have a number of other software resources focused on making computation and academic life easier:

  • The template I use for my academic job market materials
    • Fill in school/position information in one file and it populates to all statements
    • Generate summary statistics from teaching evaluations and integrate into statements
    • Combine multiple teaching evaluations into a single portfolio document
    • Do all of this programmatically with GNU Make!
  • The template I used for my dissertation
    • This satisfied the formatting requirements at UNC in 2019
    • Some tweaking likely required to use at another institution or in the future
  • Functions for extracting still frames from videos and information from images in Python using OpenCV
  • Compiling OpenCV from source for Anaconda virtual environments instead of Homebrew ones or system Python installations
  • Configuring Emacs to use X11 forwarding on Mac OS if you frequently work with remote connections such as high performance computing clusters