Learn R Programming

LMest (version 2.4.5)

lk_obs: Compute the observable log-likelihood of the basic LM model

Description

Function that computes the observable log-likelihood of the basic LM model (internal use).

Usage

lk_obs(th, m, Bm, Cm, bv, k, S, R, yv, TT, r, mod)

Arguments

th

vector of parameters

m

list of design matrices for the logits

Bm

design matrix for the logits

Cm

design matrix for the logits

bv

number of response categories

k

number of states

S

matrix of distinct response configurations

R

matrix of missing response configurations

yv

corresponding vector of frequencies

TT

number of times occasions

r

number of response variabels

mod

type of model

Value

lk

log-likelihood

sc

score vector