View source: R/met.assortativityCat.R
met.assortativityCat | R Documentation |
Calculates the binary or weighted version of vertices Newman's assortativity for categorical or continuous attributes.
met.assortativityCat(M, attr, df = NULL)
M |
a square adjacency matrix. |
attr |
a factor or character vector indicating individuals categorical attributes appartenance. |
Assortativity (like the E-I index or the Moran 'I' statistic) allows the study of homophily (preferential interaction between nodes with similar attributes) and heterophily (the preferential interaction between nodes with different attributes). Attributes can be individual characteristics such as sex or age, or individual node metrics such as the met.degree, in which case it is referred to as assortativity by vertex met.degree.
an integer representing the categorical assortativity index of the network.
Sebastian Sosa, Ivan Puga-Gonzalez
Newman, M. E. (2003). Mixing patterns in networks. Physical Review E, 67(2), 026126.
Sosa, S. (2018). Social Network Analysis, in: Encyclopedia of Animal Cognition and Behavior. Springer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.