We provide a simple and reproducible R pipeline to investigate residential segregation (RS) using US census data. The pipeline contains two components:
- pulling decennial US census data of Year 2000, 2010, 2020 via R package tidycensus
- calculating three residential segregation indices, including dissimilarity, isolation and interaction indices, at the preferred geographical level, e.g. county or census tract level
We pull decennial US census data with tidycensus and calculate three residential segregation indices.
Figure 1: 2010 Alabama Dissimilarity Index at county level calculated with census tract level statistics
epidemiology, social sciences