gamix | R Documentation |
Measure of within-group mixing in networks proposed in Gupta, Anderson and May (1989).
gamix(object, ...)
## S3 method for class 'table'
gamix(object, ...)
## S3 method for class 'igraph'
gamix(object, vattr, ...)
## Default S3 method:
gamix(object, ...)
object |
R object, see Details for available methods |
... |
other objects passed to/from other methods |
vattr |
character, name of vertex attribute |
The measure varies between -1/vcount(g)
for dissassortative mixing
and 1 for perfect within-group mixing. It takes a value of 0 for
proportionate mixing.
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.
Numerical value of the measure.
Gupta, S., Anderson, R., May, R. (1989) "Networks of sexual contacts: implications for the pattern of spread of HIV", AIDS 3:807–817
Other segregation measures:
assort()
,
coleman()
,
ei()
,
freeman()
,
orwg()
,
smi()
,
ssi()
gamix(WhiteKinship, "gender")
gamix(EF3, "race")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.