smi: Segregation Matrix Index

Description Usage Arguments Details Value References See Also Examples

View source: R/smi.R

Description

Segregation Matrix Index due to Freshtman (1997). A measure of network segregation. Currently (and originally) supports only two groups.

Usage

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

## S3 method for class 'table'
smi(object, normalize = TRUE, ...)

## S3 method for class 'igraph'
smi(object, vattr, ...)

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

Arguments

object

R object, see Details for available methods

...

other arguments passed to/from other methods

normalize

logical, whether normalized values should be returned, defaults to TRUE

vattr

character, name of the node attribute designating groups

Details

The Segregation Matrix Index (SMI) is calculated for every group separately. It compares the density within group to the density of between group ties of nodes belonging to that group.

Non-normalized version is the ratio of the within-group density to the between-group density, so vary between 0 and infinity. The normalized version varies between 0 and 1.

Method for mixing matrices.

Method for igraphs

Value

Numeric vector of length equal to the number of groups in g according to vattr with the values of SMI for the groups.

References

Freshtman, M. (1997) "Cohesive Group Segregation Detection in a Social Network by the Segregation Matrix Index", Social Networks, 19:193–207

See Also

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

Examples

1
2
3
4
if(require(igraph, quietly = TRUE)) {
  data(Wnet)
  smi( as.directed(Wnet, "mutual"), "gender")
}

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