Data and replication files for all analyses in Ball et al. (2020) "Gender issues in fundamental physics", which has been conditionally accepted for publication in Quantitative Science Studies.
Below is a brief description of each replication file. For further information, please consult each file's in-line comments.
1-import.py imports the raw InSpire data (data/InSpire.dat), merges it with data on authors' gender (data/AuthoID2Gender.nb) and other characteristics (data/AuthorsMap.mx) and journal names (data/JournalsMap.m). It then consolidates the data into a single SQLite database file (data/strumia.db; see data/schema.sql for database structure).
To execute 1-import.py, issue the following shell command.
$ python 1-import.py2-transform.do is a Stata do file. It imports and merges data from tables in data/strumia.db and generates a single Stata data file containing one observation per article (data/strumia.dta). Execute it in Stata with the following command.
. do 2-transform.do3-analyse.do is another Stata do file. I takes the dataset created by 2-transform.do (data/strumia.dta), creates Figures 1 and 2 in Ball et al. (2020) and saves them to the figures directory. Execute it in Stata with the following command.
. do 3-analyse.domaster.sh is a bash script that executes 1-import.py, 2-transform.do and 3-analyse.do at the same time. It also converts the pdf figure files created by 2-transform.do into png files and trims excess whitespace around the figures using the ImageMagick command convert.
To execute 0-master.sh, type the following in the Bash command line.
$ sh 0-master.sh