Skip to content

Replication Material Environmental Inequality and Residential Sorting

Notifications You must be signed in to change notification settings

ruettenauer/Replication-Residential-Sorting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Replication-Material-Environmental-Inequality-and-Residential-Sorting

This repository provides all materials for replication of results in

Rüttenauer T. and Best H. (2021). “Environmental Inequality and Residential Sorting in Germany: A Spatial Time-Series Analysis of the Demographic Consequences of Industrial Sites”, Demography, Forthcoming.

Preprint on my homepage: https://ruettenauer.github.io/files/RuettenauerBest_Demographics.pdf

Date: 2021-10-13

Set up

The code for replication of the results requires the following folders: “01_Script”, “02_Data”, “03_Output”. All R Scripts are required in folder “01_Script”, all data are required in folder “02_Data”.

To reproduce the results of the paper, the scripts need to be executed in order.

The following packages are necessary for reproduction of main results:

install.packages("plyr")
install.packages("dplyr")
install.packages("zoo")
install.packages("rgeos")
install.packages("spdep")
install.packages("raster")
install.packages("sf")
install.packages("ggplot2")
install.packages("scales")
install.packages("tmap")
install.packages("tmaptools")
install.packages("texreg")
install.packages("stargazer")
install.packages("xtable")
install.packages("grid")
install.packages("gridExtra")
install.packages("plm")
install.packages("feisr")

Scripts:

  • 00_Read-EPER: Reads and combines different sets of information from the E-PRTR database.

  • 00b_Read-IOER: Reads IOER tiffs and combines them to a spatial dataframe.

  • 01_EPER-ToxWeights_v16: Adds USEtox toxicity weights to E-PRTR emissions

  • 02_Match-Pollution: Validates E-PRTR facilities against IOER land use and calculates the number of facilities in each municpality and year

  • 03_Match-INKAR: Adds annual information from INKAR to the municipality data

  • 04_Construct-Ranks: Constructs spatial lags and ranks for relevant variables. Produces Figure2.

  • 05_Descriptives: Produces descriptive statistics (Figure1 and TableA1).

  • 06_Main-Analysis: Performs main analyses of the paper. Produces Figure3, Figure4, Table1, Table2, Table3.

Data:

All data for this paper are freely available and accessible online. To reproduce the results, the following data are required in the folder “02_Data”

Plugging together the original data, unfortunately, involves several manual steps. If you have problems finding or exporting the required data as described above, please get in touch. I am happy to provide the original data as used in this study.

System and version information

Platform: Windows 10 (x86_64)

Version: R version 4.0.4

About

Replication Material Environmental Inequality and Residential Sorting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published