binary_group_ind function

Binary group membership matrix

Binary group membership matrix

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

binary_group_ind(class, G)

Arguments

  • class: Numeric vector of class memberships.
  • G: Number of possible different classes.

Returns

Numeric length(class)x$$G matrix of binary group memberships.

Examples

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

Author(s)

Cristina Mollica and Luca Tardella

  • Maintainer: Cristina Mollica
  • License: GPL (>= 2)
  • Last published: 2019-09-04

Useful links