binary_group_ind: Binary group membership matrix

View source: R/PLMIXfunctions.R

binary_group_indR 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)\timesG matrix of binary group memberships.

Author(s)

Cristina Mollica and Luca Tardella

Examples


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


PLMIX documentation built on July 1, 2025, 1:12 a.m.