assortativity {nemBM}R Documentation

Assortativity mechanism

Description

Calculate the normalized network statistic according to the assortativity mechanism.

Usage

assortativity(X, actor)

Arguments

X

Binary network; of class matrix.

actor

A unit (actor; row/column number), which have an opportunity to change a link.

Details

The function returns the value 1 when actor (i.e. ego) and alter do not differ in the number of incoming ties. Otherwise, lower values indicate higher difference in the number of incoming ties between the actor and alter.

Value

A vector with the assortativity mechanism, cacluated between the actor and other units.

Author(s)

Marjan Cugmas and Aleš Žiberna

References

Cugmas, M., & Žiberna, A. (2022). Approaches to blockmodeling dynamic networks: a Monte Carlo simulation study. Social Networks, in print

Examples

X <- matrix(sample(c(0,1), size = 9**2, replace = TRUE), nrow = 9)
mutuality(X, actor = 2)

[Package nemBM version 1.00.01 Index]