Implementation of the backward recursions to compute posterior distribution of the latent states (internal function).
rec3(Q, yv, PI, Pio, pim)
posterior probabilities from the forward recursion
vector of frequencies of response configurations
transition probability matrices
matrix of manifest probabilities
vector of marginal probabilities
array containing the posterior distribution of the latent states for each response configuration and time occasion
matrix containing the posterior distribution of the latent states
Baum, L. E., Petrie, T., Soules, G., and Weiss, N. (1970). A maximization technique occurring in the statistical analysis of probabilistic functions of Markov chains. Annals of Mathematical Statistics, 41, 164-171.