Efficient implementation of the Metropolis-Hastings algorithm, with application to the Cormack-Jolly-Seber model (Q252335)