{"type":"script","doc_desc":{"producers":[{"name":"Reproducibility WBG","abbr":"DECDI","affiliation":"World Bank - Development Impact Department","role":"Verification and preparation of metadata"}],"prod_date":"2025-09-08","version":"1"},"project_desc":{"authoring_entity":[{"name":"Daniel Bj\u00f6rkegren","affiliation":"Columbia University","email":"dan@bjorkegren.com"},{"name":"Alice Duhaut","affiliation":"World Bank","email":"aduhaut@worldbank.org"},{"name":"Geetika Nagpal","affiliation":"World Bank","email":"gnagpal@worldbank.org"},{"name":"Nick Tsivanidis","affiliation":"UC Berkeley","email":"ntsivanidis@berkeley.edu"}],"title_statement":{"title":"Reproducibility package for Public and Private Transit: Evidence from Lagos","idno":"RR_NGA_2025_298"},"software":[{"name":"Stata","version":"18.5"},{"name":"Matlab","version":"2024b"},{"name":"Python","version":"3.8.19"},{"name":"R","version":"4.4.1"},{"name":"QGIS","version":"3.38.1"}],"scripts":[{"title":"Reproducibility package for Public and Private Transit: Evidence from Lagos","date":"2025-08","notes":"Computational reproducibility verified by Development Impact (DECDI) Analytics team, World Bank.","instructions":"See README in reproducibility package.","file_name":"RR_NGA_2025_298","zip_package":"RR_NGA_2025_298.zip","dependencies":"Stata dependencies are listed in the ado folder. R dependencies are listed in the renv.lock file. Python dependencies are listed in the environment.yml file. Matlab toolboxes: statistics and machine learning toolbox, parallel computing toolbox."}],"repository_uri":[{"name":"Reproducible Research Repository (World Bank)","uri":"https:\/\/reproducibility.worldbank.org"}],"production_date":"2025-09-08","abstract":"Private minibuses dominate transport in many developing country cities. They serve 62% of trips in Lagos, the largest city in sub-Saharan Africa.We collect panel data to measure how private minibuses respond to the rollout of a new public bus network. When the government enters a route, minibuses depart less frequently, driver profits fall, and drivers switch to connected routes, reducing prices.We develop a custom app to estimate how commuters trade off prices and wait times in an RCT. The private response harms commuters on treated routes, who wait longer, but benefits those on connected routes, who face only lower prices. Overall, over one quarter of the commuter welfare gains of building the public transit system arise from the response of private transit. Drivers lose welfare equal to 60% of the commuter gains.","geographic_units":[{"name":"Nigeria","code":"NGA"}],"output":[{"type":"Working Paper","description":"Policy Research Working Papers (PRWP)","title":"Public and Private Transit: Evidence from Lagos"}],"language":[{"name":"English","code":"EN"}],"disclaimer":"The materials in the reproducibility packages are distributed as they were prepared by the staff of the International Bank for Reconstruction and Development\/The World Bank. The findings, interpretations, and conclusions expressed in this event do not necessarily reflect the views of the World Bank, the Executive Directors of the World Bank, or the governments they represent. The World Bank does not guarantee the accuracy of the materials included in the reproducibility package.","license":[{"name":"Modified BSD3","uri":"https:\/\/opensource.org\/license\/bsd-3-clause\/"}],"contacts":[{"name":"Geetika Nagpal","affiliation":"World Bank","email":"gnagpal@worldbank.org"},{"name":"Reproducibility WBG","affiliation":"World Bank","email":"reproducibility@worldbank.org"}],"datasets":[{"name":"Public transportation trips data for Lagos","note":"Source: data was collected by the study authors between June 2020 and December 2023. All data files for this dataset are listed in the README.","access_type":"Data is forthcoming on the World Bank Development Data Hub."},{"name":"Electronic ticketing and fare data for public transportation in Lagos","note":"Source: Lagos Metropolitan Area Transport Authority (LAMATA). All data files for this dataset are listed in the README. Data was received between June 2021 and December 2023.","access_type":"Data access was granted directly to the study authors by LAMATA. It was obtained with a custom data license that does not allow for redistribution"},{"name":"COVID-19 Community Mobility Reports","note":"Source: Google. Data file: \"raw\/Global_Mobility_Report.csv\". Data was accessed in April 29, 2025.","uri":"https:\/\/www.google.com\/covid19\/mobility\/index.html?hl=en","citation":"Google LLC \"Google COVID-19 Community Mobility Reports\". https:\/\/www.google.com\/covid19\/mobility\/ Accessed: April 29, 2025.","license_uri":"https:\/\/policies.google.com\/terms?hl=en","license":"Google Terms of Service","access_type":"Data is publicly available but does not allow redistribution."},{"name":"Lagos privately operated transport routes","note":"Source: Where Is My Transport. Data files: \"maps\/raw\/Lagos_GeoPackage_V2.gpkg\" and \"maps\/raw\/danfo_wimt.shp\". Data was accessed in October 2022. The data source closed down in late 2023 and the data is not available from its source.","access_type":"Data is included in the reproducibility package."},{"name":"Global Human Settlement Layer (GHSL)","note":"Source: European Commission, Joint Research Centre (JRC). Data files: \"maps\/raw\/GHS_POP_E2020_GLOBE_R2023A_54009_100_V1_0_R9_C19.tif\", \"maps\/raw\/clipped_ghs_pop.tif\". The data available in the download URL (https:\/\/jeodpp.jrc.ec.europa.eu\/ftp\/jrc-opendata\/GHSL\/GHS_POP_GLOBE_R2023A\/GHS_POP_E2020_GLOBE_R2023A_54009_100\/V1-0\/tiles\/, file \"GHS_POP_E2020_GLOBE_R2023A_54009_100_V1_0_R9_C19.zip\") was clipped to include only Lagos and the study boundaries and was saved in the file \"clipped_ghs_pop.tif\".","license_uri":"https:\/\/commission.europa.eu\/legal-notice_en","license":"Creative Commons Attribution 4.0 International (CC BY 4.0)","access_type":"Data is publicly available and included in the reproducibility package.","uri":"https:\/\/human-settlement.emergency.copernicus.eu\/ghs_pop2023.php","citation":"Schiavina M., Freire S., Carioli A., MacManus K. (2023):\nGHS-POP R2023A - GHS population grid multitemporal (1975-2030).European Commission, Joint Research Centre (JRC)\nPID: http:\/\/data.europa.eu\/89h\/2ff68a52-5b5b-4a22-8f40-c41da8332cfe, doi:10.2905\/2FF68A52-5B5B-4A22-8F40-C41DA8332CFE"}],"data_statement":"Some data is restricted and has not been included in the reproducibility package. For more details, please refer to the README file.","technology_requirements":"Runtime: 20 hours.","technology_environment":"Paper exhibits were reproduced on a computer with the following specifications:\n\u2022 OS: Windows 11 Enterprise, version 23H2\n\u2022 Processor: Intel(R) Xeon(R) Gold 6132 CPU @ 2.60GHz 2.60 GHz (2 processors)\n\u2022 Memory available: 32 GB","reproduction_instructions":"1. **Access the data:** There is no documented way to access the LAMATA data, and one other dataset (Public transportation trips data for Lagos) is not yet public but will become available in the future. No portion of the code can run without these data. See the README and the Datasets section for details.\n2. **Download and place the data:** Once all data are obtained, copy it to the corresponding folders as noted in the README.\n3. **Run the code:**\n    - Open the do-file \"main-01\", update the path global, and run it.\n    - Run the Matlab script \"04_quantitativeFinal\"\n    - Open the do-file \"main-02\", update the path global, and run it.\n    - Open the Python script \"lib\/configurePaths.Py\" and update the project root in line 12.\n    - Run the Python script \"07_priceChangePlots.py\"\n    - Run the Python script \"08_priceElasticityRegressions.py\"\n    - Run the Python script \"09A_summaryStatistics.py\"\n    - Run the Python script \"10_MLEstimation.py\"\n    - Run the Python script \"11A_checkinShift_compileData.py\"\n    - Open the R script \"11B_checkinShift.R\", update the working directory, and run it.\n    - Open the do-file \"main-03\", update the path global, and run it.\n    - Open the QGIS project file \"maps\/paper_maps.qgz\" and display the layers `clipped_ghs_pop` and `Carto Voyager`\n        - The layers `BRT` and `Standard Bus` reproduce figure 1A.\n        - The layers `BRT`, `Standard Bus`, and `Private Transit Routes` reproduce figure 1B.\n        - The layers `Treated`, `Connected`, and `Control` reproduce figure 1B.\n\nSince not all the data is accessible, the package includes the results produced by replicators in the folder \"output\/fig\" and \"output\/tab\". These files can be used to review the results presented in the paper."},"tags":[{"tag":"DOI"},{"tag":"Open Code"},{"tag":"Restricted Data"}],"schematype":"script"}