binary_group_ind: Binary group membership matrix

Description Usage Arguments Value Author(s) Examples

View source: R/PLMIXfunctions.R

Description

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

Usage

1

Arguments

class

Numeric vector of class memberships.

G

Number of possible different classes.

Value

Numeric length(class)xG matrix of binary group memberships.

Author(s)

Cristina Mollica and Luca Tardella

Examples

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

PLMIX documentation built on Sept. 4, 2019, 5:03 p.m.