Provides a helper function for generating weight matrices
Arguments
- membership_vector
vector of strings containing group memberships
- sep
separator that delimits group memberships in membership_vector
Examples
a <- c("k,l,m", "k,m", "k", "l", "l,k")
Wa <- weights_from_vector(a)