Skip to contents

Odds ratio for connected, as opposed to disconnected, dyads depending whether it is between- or within-group, i.e. how much more likely the dyad will be connected if it is within-group.

Usage

orwg(object, ...)

# S3 method for table
orwg(object, ...)

# S3 method for igraph
orwg(object, vattr, ...)

# S3 method for default
orwg(object, ...)

Arguments

object

R object, see Details for available methods

...

other arguments passed to/from other methods

vattr

character scalar or any vector, name of the vertex attribute or the attribute itself (as a vector)

Value

Numeric value of the measure.

Details

The measure takes values, like all odds ratios, from (0; Inf).

If object is a table it is interpreted as a mixing matrix. Two-dimensional table is interpreted as a contact layer. Three-dimensional table is interpreted as a full mixing matrix \(m_{ghy}\) cross-classyfying all dyads, in which \(g\) and \(h\) correspond to group membership of ego and alter respectively. Layers \(y=1\) and \(y=2\) are assumed to be non-contact and contact layers respectively.

If object is of class "igraph" it is required to supply vattr with the name of the vertex attribute to calculate intermediate mixing matrix.

References

Moody, Jim (2001) "Race, school integration, and friendship segregation in America", American Journal of Sociology, 107(3):679--377

See also

Other segregation measures: assort(), coleman(), ei(), freeman(), gamix(), smi(), ssi()

Examples

orwg(WhiteKinship, "gender")
#> [1] 3.301587