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*
https://github.com/boyiguo1/Tutorial-Residential_Segregation_Score
Image
Figure 1: 2010 Alabama Dissimilarity Index at county level calculated with census tract level statistics
Field(s) of application
epidemiology, social sciences
If you reported this use case and want to modify or remove it, use the "Suggest an edit" link in the sidebar
to open a GitHub pull request, or contact us!
