binary_group_ind {PLMIX} | R Documentation |
Construct the binary group membership matrix from the multinomial classification vector.
binary_group_ind(class, G)
class |
Numeric vector of class memberships. |
G |
Number of possible different classes. |
Numeric length(class)
\times
G
matrix of binary group memberships.
Cristina Mollica and Luca Tardella
binary_group_ind(class=c(3,1,5), G=6)