binary_group_ind {PLMIX} | R Documentation |
Binary group membership matrix
Description
Construct the binary group membership matrix from the multinomial classification vector.
Usage
binary_group_ind(class, G)
Arguments
class |
Numeric vector of class memberships. |
G |
Number of possible different classes. |
Value
Numeric length(class)
\times
G
matrix of binary group memberships.
Author(s)
Cristina Mollica and Luca Tardella
Examples
binary_group_ind(class=c(3,1,5), G=6)
[Package PLMIX version 2.1.1 Index]