Learn R Programming

PLMIX (version 2.2.0)

binary_group_ind: Binary group membership matrix

Description

Construct the binary group membership matrix from the multinomial classification vector.

Usage

binary_group_ind(class, G)

Value

Numeric length(class)\(\times\)\(G\) matrix of binary group memberships.

Arguments

class

Numeric vector of class memberships.

G

Number of possible different classes.

Author

Cristina Mollica and Luca Tardella

Examples

Run this code

binary_group_ind(class=c(3,1,5), G=6)

Run the code above in your browser using DataLab