Compute the posterior distribution of a CLCM

compute_post(X, item.type, param, lprior, eta, categories.j)

Arguments

X

matrix of item responses

item.type

character vector of item types

param

list of item parameters

lprior

N by 2^K matrix of log of prior distribution

eta

matrix operationalizing the condensation rules

categories.j

numeric vector of number of categories per item

Value

matrix of N by 2^K