Software

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.

BayesPostEst

R build status CRAN_Status_Badge Codecov test coverage

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, creating coefficient plots, and many other quantities. You can view the Journal of Open Source Software article for the package here.

coefficient table generated by BayesPostEst coefficient plot generated by BayesPostEst marginal effects plot generated by BayesPostEst

To install the latest release on CRAN:

install.packages("BayesPostEst")

The latest development version on GitHub can be installed with:

library(remotes)
install_github("ShanaScogin/BayesPostEst")

You can try out the mcmcCoefPlot function from the package in the interactive R console below:

RWmisc

R build status CRAN_Status_Badge codecov

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 functions for:

  • Managing multiple different projections for cross-national spatial data
  • Converting latitude-longitude data in archaic forms (degrees, minutes, seconds)
  • Correcting for overlapping polygons when aggregating raster data to polygons
  • My custom minimal ggplot2 theme

To install the latest release on CRAN:

install.packages("RWmisc")

The latest development version on GitHub can be installed with:

library(remotes)
install_github("jayrobwilliams/RWmisc")

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
  • Scripts that I use to save time on various teaching-related tasks like grading
  • 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