met.assortatvityContinuous: Continuous assortativity

View source: R/met.assortatvityContinuous.r

met.assortatvityContinuousR Documentation

Continuous assortativity

Description

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

Usage

met.assortatvityContinuous(
  Matrix,
  se = FALSE,
  values,
  weighted = TRUE,
  df = NULL
)

Arguments

Matrix

a square adjacency matrix.

se

if true, it calculates the standard error.

values

The dataframe column that contains the vertices' attributes.

weighted

if true, it calculates the weigthed version.

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 continuous assortativity index of the network.

Author(s)

Ivan Puga-Gonzalez, Sebastian Sosa

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/ANTs documentation built on Sept. 25, 2023, 11:06 p.m.