sample_class_assignment {ddtlcm} | R Documentation |
Sample individual class assignments Z_i, i = 1, ..., N
Description
Sample individual class assignments Z_i, i = 1, ..., N
Usage
sample_class_assignment(
data,
leaf_data,
a_pg,
auxiliary_mat,
class_probability
)
Arguments
data |
a N by J binary matrix, where the i,j-th element is the response of item j for individual i |
leaf_data |
a K by J matrix of |
a_pg |
a N by J matrix of hyperparameters of the generalized logistic distribution |
auxiliary_mat |
a N by J matrix of truncated normal variables from previous iteration |
class_probability |
a length K vector, where the k-th element is the probability of assigning an individual to class k. It does not have to sum up to 1 |
Value
a vector of length N, where the i-th element is the class assignment of individual i
[Package ddtlcm version 0.2.1 Index]