Function that computes the observable log-likelihood of the LM model with covariates in the measurement model (internal use).
lk_obs_manifest(par, Y, Xd, yv, indn, lev, k, sup, G2, IPI, mod, outp = FALSE)
vector of regression parameters
matrix of response variables
matrix of covariates
vector of frequencies of response configurations
index of the design matrix for each unit
vector containing the number of levels of each variable
number of latent states
support points
design matrix
index of the transition matrix elements
model (0 = LM with stationary transition, 1 = finite mixture)
to compute the score of the observable log-likelihood
log-likelihood
array containing the posterior distribution of the latent states for each response configuration and each pair of consecutive time occasions
score of the observable log-likelihood