Code Associated With "The Role of Prior Information in Inference on the Annualized Rates of Mass Shootings in the United States"
The python script in this repository generates all analysis, visualizations, and statistics quoted in the paper "The Role of Prior Information in Inference on the Annualized Rates of Mass Shootings in the United States" published in the journal Statistics & Public Policy in April of 2018. The file gp_model_final.stan
defines the Gaussian process statistical model used in the paper. A static copy of the source dataset, transformed data to be fed to the model, and intermediate stochastic sampling outputs are also shared in this repository.
A preprint of the paper is also available here.
This project makes use of the database of public mass shootings compiled by Mother Jones magazine.
An earlier version of this analysis was prepared in Jupyter notebook format for presentation at the first annual StanCon meeting in January 2017.