https://github.com/abpoll/equity_meas
Reproduction data and code for analysis of reviewed flood risk literature related to equity
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.9%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
Reproduction data and code for analysis of reviewed flood risk literature related to equity
Basic Info
- Host: GitHub
- Owner: abpoll
- Language: Jupyter Notebook
- Default Branch: main
- Size: 2.21 MB
Statistics
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
- Releases: 0
Created over 3 years ago
· Last pushed almost 3 years ago
https://github.com/abpoll/equity_meas/blob/main/
[](https://doi.org/10.5281/zenodo.8139215)
# Equity Measurements
## Overview
This repository includes all data and code to reproduce the data analysis and figures from Pollack et al (2023), "Designing equity indicators to support flood-risk management."
## Data
The /data folder includes five .csv files.
1) all_papers.csv includes every study returned from the search query to web of science, and all of the fields recorded for each study.
2) all_papers_col_map.csv maps each column name from all_papers.csv to a detailed explanation of the field
3) measure_equity.csv includes every measurement of the distribution of an outcome (subset matches equity_measured field of all_papers.csv) and all of the fields recorded, including whether the measurement is an equity indicator or not.
4) measure_equity_col_map.csv maps each column name from measure_equity.csv to a detailed explanation of the field
5) unique_techniques.csv tracks methods used to measure the distribution of an outcome for all the studies in measure_equity.csv
## Code
The /env folder includes the .yml file that can set up the conda environment required to run the Jupyter Notebook and execute all of the code.
The /src folder includes the Jupyter Notebook. All code is written in python.
## Reproduce Me
Check that conda is installed on your system. I used version 22.11.1 for the build which may be helpful to install for reproduction purposes to make sure you can build the environment successfully. Once you are ready to proceed:
1. Clone the repository into a local project directory
2. In your local project directory, run 'cd env' and then run `conda env create -f environment.yml`
3. When the environment is created, you can launch a Jupyter Notebook and open src/EquityReview.ipynb. Be sure to 'eqmeas' (or, if you changed the name of the environment when you created the conda environment, be sure to set the kernel to that environment)
* This step assumes some experience with using ipykernel to use a specific conda environment in a Jupyter Notebook. If you are new to Jupyter Notebooks and/or conda, please see: https://ipython.readthedocs.io/en/stable/install/kernel_install.html#kernels-for-different-environments
You can run all cells in the Jupyter Notebook. Figures are generated twice - once with readable font size, and once with very small labels. The purpose of this is to manually arrange the figures with legible labels, and then repeat the visual apperance of that plot with the "invisible" labels. The latters plot were downloaded as a .png and edited in Keynote to re-add labels. The built-in function for producing the parallel categories plots is hard to optimize for labels and arrangement of bars and this process was easier to customize.
The Notebook is organized as follows, with brief overviews of what the code in each section does:
1. Import libraries for loading data, obtaining summary statistics, and producing visualizations
2. Load review data
* This includes some cleaning of csvs (excess rows and columns)
3. Summarize review
* Filters described in the supplementary information are conducted
4. Summarize review sample definitions
* Summarize how equity is defined in full sample of studies
5. Summarize qualitative papers definitions
* For the qual studies, summarize definitions
6. Summarize quantitative papers definitions
* For the quantitative studies, summarize definitions
* See how many quant. studies that have definitions define indicators
7. Map indicators onto taxonomy
* Summary statistics on indicators reported in the text are produced here
* A second figure is produced with small text for editing outside the constraints of plotly customizability options
8. Compare equity indicators with similar measurements
* Map stated equity measurements to the taxonomy as well
* Also includes the generation of a second figure
Note that not all cells will result in output. The key results are in sections 7 & 8, and there are some values printed to the console in sections 3-6.
So far, these instructions have resulted in successful reproduction of the figures and summary statistics reported in the manuscript, but you may run into issues and need assistance debugging. Please contact Adam Pollack at adam.b.pollack@dartmouth.edu if you have any issues following these steps.
Owner
- Name: Adam Pollack
- Login: abpoll
- Kind: user
- Location: Hanover, NH
- Company: Dartmouth College
- Website: https://abpoll.github.io/
- Repositories: 20
- Profile: https://github.com/abpoll
Postdoctoral research associate @ Dartmouth College.
GitHub Events
Total
Last Year
Dependencies
env/environment.yml
conda
- _libgcc_mutex 0.1
- _openmp_mutex 5.1
- asttokens 2.0.5
- attrs 22.1.0
- backcall 0.2.0
- blas 1.0
- bottleneck 1.3.5
- bzip2 1.0.8
- ca-certificates 2022.10.11
- certifi 2022.12.7
- comm 0.1.2
- debugpy 1.5.1
- decorator 5.1.1
- entrypoints 0.4
- executing 0.8.3
- intel-openmp 2021.4.0
- ipykernel 6.19.2
- ipython 8.7.0
- jedi 0.18.1
- jsonschema 4.16.0
- jupyter_client 7.4.8
- jupyter_core 5.1.1
- ld_impl_linux-64 2.38
- libffi 3.4.2
- libgcc-ng 11.2.0
- libgomp 11.2.0
- libsodium 1.0.18
- libstdcxx-ng 11.2.0
- libuuid 1.41.5
- matplotlib-inline 0.1.6
- mkl 2021.4.0
- mkl-service 2.4.0
- mkl_fft 1.3.1
- mkl_random 1.2.2
- nbformat 5.7.0
- ncurses 6.3
- nest-asyncio 1.5.6
- numexpr 2.8.4
- numpy 1.23.5
- numpy-base 1.23.5
- openssl 1.1.1s
- packaging 22.0
- pandas 1.5.2
- parso 0.8.3
- pexpect 4.8.0
- pickleshare 0.7.5
- pip 22.3.1
- platformdirs 2.5.2
- plotly 5.9.0
- prompt-toolkit 3.0.36
- psutil 5.9.0
- ptyprocess 0.7.0
- pure_eval 0.2.2
- pygments 2.11.2
- pyrsistent 0.18.0
- python 3.10.9
- python-dateutil 2.8.2
- python-fastjsonschema 2.16.2
- pytz 2022.7
- pyzmq 23.2.0
- readline 8.2
- setuptools 65.6.3
- six 1.16.0
- sqlite 3.40.1
- stack_data 0.2.0
- tenacity 8.0.1
- tk 8.6.12
- tornado 6.2
- traitlets 5.7.1
- tzdata 2022g
- wcwidth 0.2.5
- wheel 0.37.1
- xz 5.2.10
- zeromq 4.3.4
- zlib 1.2.13