Code used in the publication of Gururangan, Sadovsky and Maclean 2014.