loglik_obs: Observed log likelihood

View source: R/diagnose.R

loglik_obsR Documentation

Observed log likelihood

Description

Observed log likelihood

Usage

loglik_obs(iter, pi_it, mu_it, y, m, n_u, .IIA)

Arguments

iter

the EM object with just one iteration

pi_it

estimate of pi at iteration it

mu_it

estimate of the mu array at iteration it

y

A U by K matrix of the data

m

A matrix of the missingness

n_u

A vector of observation counts for each row in y

.IIA

whether the model is using a multinomial logit.

Value

the total log likelihood


kuriwaki/clusterCVR documentation built on July 31, 2024, 8:28 p.m.