Compute the observable log-likelihood of the mixed LM model

Share:

Description

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

Usage

1
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

Author(s)

Francesco Bartolucci, Silvia Pandolfi - University of Perugia (IT)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.