Description Usage Arguments Value Note Source
View source: R/two_group_measures.R
This index measures the evenness with which two mutually exclusive groups are distributed across the geographic units that make up a larger geographic entity; for example, the distribution of blacks and whites across the census tracts that make up a metropolis. Its minimum value is zero and its maximum value is 100.
1 | dissimilarity(group1, group2, population = NA, summed = TRUE, na.rm = TRUE)
|
group1, group2 |
Numeric vectors representing the proportions of each group in each observation |
population |
if |
summed |
If TRUE, will return a single summary statistic. (Or one value per group if specifying
|
na.rm |
logical. Should missing values (including NaN) be removed?
Used only if |
A scalar value, see note.
Setting summed == FALSE will return by-observation measures, but this measure is not meant to be decomposed. These results are for verification purposes only.
Duncan, Otis Dudley, and Beverly Duncan. A Methodological Analysis of Segregation Indexes.” American Sociological Review, vol. 20, no. 2, 1955, pp. 210–217. JSTOR, www.jstor.org/stable/2088328. Accessed 14 Mar. 2020.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.