seg_dissim: Compute Dissimilarity Index

View source: R/segregation.R

seg_dissimR Documentation

Compute Dissimilarity Index

Description

Compute Dissimilarity Index

Usage

seg_dissim(plans, shp, group_pop, total_pop)

Arguments

plans

redist_plans object or plans_matrix where each row indicates a district assignment and each column is a plan

shp

redist_map object, tibble, or data frame containing other columns

group_pop

unqouted name of column in shp with group population

total_pop

unqouted name of column in shp with total population

Value

numeric vector

References

Douglas Massey and Nancy Denton. 1987. The Dimensions of Social Segregation. Social Forces.

Examples

data(nh)
data(nh_m)
# For a single plan:
seg_dissim(plans = nh$r_2020, shp = nh, group_pop = vap_hisp, total_pop = vap)

# Or many plans:
seg_dissim(plans = nh_m[, 3:5], shp = nh, group_pop = vap_hisp, total_pop = vap)


redistmetrics documentation built on April 11, 2022, 5:08 p.m.