calculate_segregation: Calculate segregation

Description Usage Arguments Value

Description

Calculate segregation for macro geometries. Method definitions from the US Census.

Usage

1
2
3
calculate_segregation(macro_geometry_sf, sub_geometry_sf, majority_pop,
  minority_pop, method = c("dissimilarity_index", "gini", "entropy",
  "interaction"))

Arguments

macro_geometry_sf

An 'sf' object. Contains simple features for macro-geometries (eg cities)

sub_geometry_sf

An 'sf' object. Contains simple features for sub-geometries (eg tracts or neighborhoods) and demographic data.

majority_pop

Character. The name of the column with the majority race/ ethnicity county.

minority_pop

Character. The name of the column with the minority race/ ethnicity county.

method

Character. The method to use to calculate gentrification. One of "dissimilarity_index", "gini", "entropy", or "interaction". Currently only one at a time is supported.

Value

'macro_geometry_sf' with one more column containing the segregation measure selected.


mattle24/spatial4social documentation built on May 8, 2019, 12:53 a.m.