met.assortativityCat: Assortativity

View source: R/met.assortativityCat.R

met.assortativityCatR Documentation

Assortativity

Description

Calculates the binary or weighted version of vertices Newman's assortativity for categorical or continuous attributes.

Usage

met.assortativityCat(M, attr, df = NULL)

Arguments

M

a square adjacency matrix.

attr

a factor or character vector indicating individuals categorical attributes appartenance.

Details

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.

Value

an integer representing the categorical assortativity index of the network.

Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez

References

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.


SebastianSosa/ant documentation built on Sept. 23, 2023, 7:06 a.m.