ei_index: Krackhardt's E-I Index

Description Usage Arguments Details Author(s) References Examples

View source: R/ei_index.R

Description

Given a categorical vertex attribute describing mutually exclusive groups, the E-I index represents a ratio of external to internal ties.

Usage

1
ei_index(g, node_attr_name, scope = c("global", "group", "node"), ...)

Arguments

g

<igraph>, <network>

node_attr_name

<chr> The name of a node/vertex attribute in g.

scope

<chr> The target scope of the resulting EI-Index

  • "global", "group", or "node"

...

Arguments passed to or from other methods.

Details

E\mbox{-}I~Index = \frac{EL-IL}{EL+IL}

Author(s)

Brendan Knapp brendan.g.knapp@gmail.com

References

Krackhardt, David, and Robert N. Stern. "Informal Networks and Organizational Crises: An Experimental Simulation." Social Psychology Quarterly 51, no. 2 (1988): 123-40. http://www.jstor.org/stable/2786835.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# <igraph>
ei_index(jemmah_islamiyah, node_attr_name = "role")
ei_index(jemmah_islamiyah, node_attr_name = "role", scope = "group")
ei_index(jemmah_islamiyah, node_attr_name = "role", scope = "node")

# <network>
data("sampson", package = "ergm")
ei_index(samplike, node_attr_name = "group")
ei_index(samplike, node_attr_name = "group", scope = "group")
ei_index(samplike, node_attr_name = "group", scope = "node")

knapply/homophily documentation built on Nov. 4, 2019, 3:54 p.m.