Learn R Programming

LMest (version 2.4.5)

complk_cont: Complete log-likelihood of the basic latent Markov model for continuous outcomes

Description

Function that computes complete log-likelihood of the basic latent Markov model for continuous outcomes (internal use).

Usage

complk_cont(Y, piv, Pi, Mu, Si, k)

Arguments

Y

array of continuous outcomes (n x TT x r)

piv

vector of initial probabilities

Pi

transition probability matrix

Mu

matrix of conditional means for the response variables (r x k)

Si

var-cov matrix common to all states (r x r)

k

number of latent classes

Value

lk

log-likelihood

Phi

matrix of the conditional probabilities of the observed response configurations

L

matrix of the forward probabilities

pv

vector of marginal probabilities

References

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.