Function that computes the observable log-likelihood of the LM model with covariates in the latent model (internal use).
lk_obs_latent(th, S, R, b, yv, Am, XXdis, Xlab, ZZdis, Zlab, param, fort = TRUE)
vector of parameters
matrix of distinct response configurations
matrix of missing response configurations
number of response categories
corresponding vector of frequencies
design matrix for the logits
design matrix used for estimation of the initial probabilities
list of labels used for estimation of the initial probabilities
design matrix used for estimation of the transition probabilities
list of labels used for estimation of the transition probabilities
type of parametrization for the transition probabilities ("multilogit" = standard multinomial logit for every row of the transition matrix, "difflogit" = multinomial logit based on the difference between two sets of parameters)
to use fortran routine when possible
log-likelihood
score vector
conditional response probabilities
parameters on initial probabilities
parameters on transition probabilities
initial probabilities
transition probabilities
matrix of derivatives of the logarithm of the conditional response probabilities
matrix of derivatives of the logarithm of the intial probabilities
matrix of derivatives of the logarithm of the transition probabilities