gamix: Gupta-Anderson-May measure of within-group mixing

Description Usage Arguments Details Value References See Also Examples

View source: R/gamix.R

Description

Measure of within-group mixing in networks proposed in Gupta, Anderson and May (1989).

Usage

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

## S3 method for class 'table'
gamix(object, debug = FALSE, ...)

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

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

Arguments

object

R object, see Details for available methods

...

other objects passed to/from other methods

debug

logical, return some intermediate results as attributes to the returned value

vattr

character, name of vertex attribute

Details

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.

Method for mixing matrices

Method for igraphs

Value

Numerical value of the measure.

References

Gupta, S., Anderson, R., May, R. (1989) "Networks of sexual contacts: implications for the pattern of spread of HIV", AIDS 3:807–817

See Also

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

Examples

1
2
gamix(Wnet, "gender")
gamix(EFnet, "type")

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