Skip to content

Stellenbosch-Econometrics/Geospatial-Inequality

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geospatial (Remote Sensing) Inequality Estimates for South Africa

This is exploratory work and summarized in the presentation. It depends on different data sources and several analysis scripts described below.

Data

Analysis Scripts

  • SA_NL_GINI_TS.R: Produces time series estimates of inequality in South Africa based on annual nightlights median composite images since 2014. It also computes and explores municipal nightlights time series, which are however deemed useless.

  • SA_inequality.R: Produces spatial remotely sensed inequality estimates for South Africa inside 96km2 hexagons or 1km2 interpolations with 5 or 10km radius - based on IWI, RWI and Nightlights in 2020.

  • explore_SA_inequality.R: Explores the inequality estimates computed in SA_inequality.R using correlations and graphs, and relates them to the Uber Hexagons of the Spatial Tax Panel v3.7.

  • spatial_tax_panel.R: Explores the Spatial Tax Panel v3.7 and joins it with the RWI, IWI, Nightlights and Population, from which alternative municipal GINI estimates are produces. The estimates are compared using correlations and graphs. Note that for consistency with the STP3 and population estimates for 2020, I here use the Nightlights 2020 V1 layer. This was probably not such a great idea, especially for the municipal estimates. I have kept it like this for replication purposes, but it would be good to recalculate these results using the better Nightlights 2021 V2.1 image included in the repo.

  • explore_spatial_tax_panel.R: Explores the inequality estimates computed in spatial_tax_panel.R using correlations and graphs.

  • viz_raster_layers.py: Python script to plot raster layers and nightlights/wealth estimates at high resolution using Matplotlib.

Results

  • The results/ folder contains all the GINI estimates produced by various scripts. The result involving 96km2 hexagons and the STP3 are saved as GeoPackage databases, which contain the geometry and can be read from many softwares. The folder also contains a QGIS project to visualize these different estimates.

  • The figures/ folder contains various graphs and figures, many of which are included in the presentation.

  • The presentation/ folder contains a Beamer presentation of the results, delivered at the BBL seminar in the Stellenbosch Economics Department on April 18, 2023. The seminar was recorded.

Further Notes

  • Every script should be evaluated on a fresh R session, in particular settings that optimize some of the libraries used such as set_collapse(nthreads = 4, na.rm = FALSE, sort = FALSE) are not to be used on all scripts. Also watch out for changes in these options within the script. In general, most scripts are meant to be executed from top to bottom.

About

Geospatial (Remote Sensing) Inequality Estimates for South Africa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published