Sample individual class assignments Z_i, i = 1, ..., N
sample_class_assignment(
data,
leaf_data,
a_pg,
auxiliary_mat,
class_probability
)a vector of length N, where the i-th element is the class assignment of individual i
a N by J binary matrix, where the i,j-th element is the response of item j for individual i
a K by J matrix of \(logit(theta_{kj})\)
a N by J matrix of hyperparameters of the generalized logistic distribution
a N by J matrix of truncated normal variables from previous iteration
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