Dahlin, J., & 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), 1–41. https://doi.org/10.18637/jss.v088.c02