Binary group membership matrix
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)
x$$G matrix of binary group memberships.
binary_group_ind(class=c(3,1,5), G=6)
Cristina Mollica and Luca Tardella
Useful links