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