ei: Krackhard and Stern's E-I index

Description Usage Arguments Details Value See Also Examples

View source: R/ei.R

Description

An index proposed by Krackhard and Stern (1988) to capture relative prevalence of between- and within-group ties. From that perspective it can be interpreted as a measure of network segregation.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
ei(object, ...)

## S3 method for class 'table'
ei(object, ...)

## S3 method for class 'igraph'
ei(object, vattr, directed = is.directed(object),
  loops = any(is.loop(object)), ...)

## Default S3 method:
ei(object, ...)

Arguments

object

R object, see Details for available methods

...

other arguments passed to/from other methods

vattr

character scalar or vector of length equal to the size of object, vertex attribute for which mixing matrix is to be computed

directed

logical whether the network is directed

loops

logical, whether loops are allowed

Details

If object is a table, it is assumed to be a mixing matrix.

Method for igraphs

Default method tries to coerce object to table.

Value

Numerical value of the E-I index.

See Also

Other segregation measures: assort, coleman, freeman, gamix, orwg, smi, ssi

Examples

1
ei(Wnet, "gender")

mbojan/isnar documentation built on Feb. 18, 2021, 4:38 a.m.