Learn R Programming

bayesefa (version 0.0.0.4)

min2LL_ono: Compute Deviance for Ordinal Probit Factor Model

Description

Internal function to compute -2LL using unstandardized parameters.

Usage

min2LL_ono(N, J, Y, MISS, as, bs, theta, Ms, Kaps)

Arguments

N

The number of observations. (> 0)

J

The number of items. (> 0)

Y

A N by J matrix of item responses.

MISS

A N by J matrix of missing data indicators.

as

A matrix of item loadings.

bs

A vector of threshold parameters.

theta

A matrix of factor scores.

Ms

A vector of the number of score categories. Note 2 = two parameter normal ogive, >2 ordinal normal ogive.

Kaps

A matrix of category thresholds.

Value

-2LL.