CreateHypotMatrix function

Creates binary correlation matrices

Creates binary correlation matrices

Takes a binary vector or column matrix and generates list of binary correlation matrices representing the partition in the vectors.

CreateHypotMatrix(modularity.hypot)

Arguments

  • modularity.hypot: Matrix of hypothesis. Each line represents a trait and each column a module. if modularity.hypot[i,j] == 1, trait i is in module j.

Returns

binary matrix or list of binary matrices. If a matrix is passed, all the vectors are combined in the last binary matrix (total hypothesis of full integration hypothesis).

Examples

rand.hypots <- matrix(sample(c(1, 0), 30, replace=TRUE), 10, 3) CreateHypotMatrix(rand.hypots)
  • Maintainer: Diogo Melo
  • License: MIT + file LICENSE
  • Last published: 2023-12-05

Useful links