Learn R Programming

LMest (version 2.4.5)

lk_obs_mixed: Compute the observable log-likelihood of the mixed LM model

Description

Function that computes the observable log-likelihood of the mixed LM model with discrete random effect in the latent model (internal use).

Usage

lk_obs_mixed(th, nla, nPiv, nPi, nPsi, S, yv, r, k1, k2)

Arguments

th

vector of parameters

nla

number of logits for the mass probability vector

nPiv

number of logits for the intial probabilities

nPi

number of logits for the transition probabilities

nPsi

number of logits for the conditional response probabilities

S

matrix of distinct response configurations

yv

corresponding vector of frequencies

r

number of response variables

k1

number of latent classes

k2

number of latent states

Value

lk

log-likelihood

sc

score vector