extract_latent_state function

Extract samples for a latent state from a Stan model