CoMembership {sharp} | R Documentation |
Pairwise co-membership
Description
Generates a symmetric and binary matrix indicating, if two items are co-members, i.e. belong to the same cluster.
Usage
CoMembership(groups)
Arguments
groups |
vector of group membership. |
Value
A symmetric and binary matrix.
Examples
# Simulated grouping structure
mygroups <- c(rep(1, 3), rep(2, 5), rep(3, 2))
# Co-membership matrix
CoMembership(mygroups)
[Package sharp version 1.4.6 Index]