Learn R Programming

PLMIX (version 2.1.1)

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)

Arguments

class

Numeric vector of class memberships.

G

Number of possible different classes.

Value

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

Examples

Run this code
# NOT RUN {
binary_group_ind(class=c(3,1,5), G=6)

# }

Run the code above in your browser using DataLab