powered by
Construct the binary group membership matrix from the multinomial classification vector.
binary_group_ind(class, G)
Numeric length(class)\(\times\)\(G\) matrix of binary group memberships.
length(class)
Numeric vector of class memberships.
Number of possible different classes.
Cristina Mollica and Luca Tardella
binary_group_ind(class=c(3,1,5), G=6)
Run the code above in your browser using DataLab