# ordinalseg: A function to compute Reardon multi-group ordinal segregation... In OasisR: Outright Tool for the Analysis of Spatial Inequalities and Segregation

## Description

A function to compute Reardon (2009) ordinal indices

## Usage

 `1` ```ordinalseg(x) ```

## Arguments

 `x` - an object of class matrix (or which can be coerced to that class), where each column represents the distribution of a group within spatial units. The number of columns should be greater than 1 (at least 2 groups are required). You should not include a column with total population, because this will be interpreted as a group. The rows represent the nominal categories (spatial units) and the columns the ordinal categories.

## Value

A vector with Reardon multi-group ordinal segregation indices: Lambda1 - ordinal generalization of the information theory index Lambda2 - ordinal generalization of the variation ratio index Lambda3 - ordinal square root index Lambda4 - ordinal absolute difference index

## References

Reardon S. F. (2009) Measures of ordinal segregation. Research on Economic Inequality, 17, pp. 129-155.

`rankorderseg`

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17``` ```x <- GreHSize@data[ ,3:5] ordinalseg(x) x1 <- matrix(nrow = 4, ncol = 3) x1[1,] <- c(0, 0, 30) x1[2,] <- c(0, 20, 10) x1[3,] <- c(10, 20 ,0) x1[4,] <- c(30, 0 ,0) x2 <- matrix(nrow = 4, ncol = 3) x2[1,] <- c(0, 30, 0) x2[2,] <- c(0, 10, 20) x2[3,] <- c(10, 0, 20) x2[4,] <- c(30, 0, 0) ordinalseg(x1) ordinalseg(x2) ```

### Example output

```[1] 0.0194221852 0.0227684575 0.0147330372 0.0004660728
[1] 0.75 0.75 0.75 0.75
[1] 0.625 0.625 0.625 0.625
```

OasisR documentation built on July 2, 2020, 3:14 a.m.