sample_class_assignment | R Documentation |
Sample individual class assignments Z_i, i = 1, ..., N
sample_class_assignment(
data,
leaf_data,
a_pg,
auxiliary_mat,
class_probability
)
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 |
a vector of length N, where the i-th element is the class assignment of individual i
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.