Dahlin, J. and Schön, T. B. (2019) “Getting Started with Particle Metropolis-Hastings for Inference in Nonlinear Dynamical Models”, Journal of Statistical Software, Code Snippets, 88(2), pp. 1–41. doi: 10.18637/jss.v088.c02.