Source code for Ciw hybrid simulations - Palmer, Geraint (2020)