Compute Dissimilarity Index
seg_dissim(plans, shp, group_pop, total_pop)
A redist_plans
object or plans_matrix where each row indicates a district assignment and each column is a plan.
A redist_map
object, tibble, or data frame containing other columns.
Unqouted name of column in shp
with group population.
Unqouted name of column in shp
with total population.
A numeric vector. Can be shaped into a district-by-plan matrix.
Douglas Massey and Nancy Denton. 1987. The Dimensions of Social Segregation. Social Forces.
data(nh)
data(nh_m)
# For a single plan:
seg_dissim(plans = nh$r_2020, shp = nh, group_pop = vap_hisp, total_pop = vap)
#> [1] 0.01085658 0.01085658
# Or many plans:
seg_dissim(plans = nh_m[, 3:5], shp = nh, group_pop = vap_hisp, total_pop = vap)
#> [1] 0.2278242 0.2278242 0.1902673 0.1902673 0.1330291 0.1330291