Learn R Programming

OasisR (version 1.0.0)

xPy: A function to compute interaction index (xPy)

Description

The interaction index is an exposure index that measures the probability that a member of a group shares the same spatial unit with a member of another group.

Usage

xPy(x)

Arguments

x
- an object of class matrix (or that can be coerced to that class), where each column represents the distribution of a population group, within spatial units. The number of columns should be greater than one (at least two population groups are require

Value

  • A matrix with interaction index

References

Bell W. (1954) A probability model for the measurement of ecological segregation. Social Forces 32(4), pp. 357-364 Massey D. S. and Denton N. A. (1988) The dimensions of residential segregation. Social Forces 67(2), pp. 281-315.

See Also

Intragroup exposure indices: xPx, Eta2

Examples

Run this code
x <- slot(GreHSize, 'data')[ ,3:5]
xPy(x)

Run the code above in your browser using DataLab