Estimating a latent jump process with Poisson observations

You may be able to use Mixture inside the step to marginalize the idx variable