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
rOpenSci package or resource used*
What did you do?
We pull decennial US census data with tidycensus and calculate three residential segregation indices.
URL or code snippet for your use case*
Image
Figure 1: 2010 Alabama Dissimilarity Index at county level calculated with census tract level statistics
Field(s) of application
epidemiology, social sciences
Twitter handle
@BoyiGuo