Function that computes complete log-likelihood of the basic latent Markov model (internal use).
complk(S, R, yv, piv, Pi, Psi, k)
matrix of distinct response configurations (n x TT x r)
matrix of missing response configurations
corresponding vector of frequencies
vector of initial probabilities
transition probability matrix
conditional response probabilities
number of latent classes
log-likelihood
matrix of the conditional probabilities of the observed response configurations
matrix of the forward probabilities
vector of marginal probabilities
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.