Implementation of the recursions to compute manifest probability of the responses and posterior distribution of the latent states (internal function).
recursions(S, R, yv, Psi, piv, Pi, k, lth, matr, Bm, Cm, bv, mod)
matrix of distinct response configurations
matrix of missing response configurations
corresponding vector of frequencies
matrix of conditional response probabilties
initial probability vector
transition probability matrices
number of latent states
internal argument
internal argument
internal argument
internal argument
internal argument
model on the transition probabilities (0 for time-heter., 1 for time-homog., from 2 to (TT-1) partial homog. of that order)
log-likelihood
score vector
internal argument
internal argument
internal argument
internal argument
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.