Reproducible Research Repository
Reproducible Research Repository
  • Home
  • Repository
  • Collections
  • About
    Home / Repository / PRWP / RR_BRA_2025_384
PRWP

Reproducibility package for Exports, Labor Markets, And The Environment: Evidence From Brazil

2025
Get Reproducibility Package
Reference ID
RR_BRA_2025_384
DOI
https://doi.org/10.60572/ays7-af90
Author(s)
Gabriel Lara Ibarra, Carlos Góes, Otavio Conceição, Gladys Lopez-Acevedo
Collections
World Bank Policy Research Working Papers
Metadata
JSON
Created on
Aug 01, 2025
Last modified
Aug 04, 2025
  • Project Description
  • Downloads
  • Overview
  • Reproducibility Package
  • Description
  • Scope and coverage
  • Disclaimer
  • Access and rights
  • Contacts
  • Information on metadata
  • Citation
  • Overview

    Abstract

    What is the environmental impact of exports? Focusing on 2000–20, this paper combines customs, administrative, and census microdata to estimate employment elasticities with respect to exports. The findings show that municipalities that faced increased exports experienced faster growth in formal employment. The elasticities were 0.25 on impact, peaked at 0.4, and remained positive and significant even 10 years after the shock, pointing to a long and protracted labor market adjustment. In the long run, informal employment responds negatively to export shocks. Using a granular taxonomy for economic activities based on their environmental impact, the paper documents that environmentally risky activities have a larger share of employment than environmentally sustainable ones, and that the relationship between these activities and exports is nuanced. Over the short run, environmentally risky employment responds more strongly to exports relative to environmentally sustainable employment. However, over the long run, this pattern reverses, as the impact of exports on environmentally sustainable employment is more persistent.

    Reproducibility Package

    Scripts
    Readme Get Reproducibility Package
    Link: https://reproducibility.worldbank.org/index.php/catalog/313/download/947/README.pdf
    Reproducibility package for Exports, Labor Markets, And The Environment: Evidence From Brazil
    File name
    RR_BRA_2025_384
    Zip package
    RR_BRA_2025_384.zip
    Title
    Reproducibility package for Exports, Labor Markets, And The Environment: Evidence From Brazil
    Date
    2025-07
    Dependencies
    Stata dependencies are listed in the `ado` folder. Python dependencies are stored in the `requirements.txt` file.
    Instructions
    See README in reproducibility package.
    Notes
    Computational reproducibility verified by Development Impact (DIME) Analytics team, World Bank.
    Source code repository
    Repository name URI
    Reproducible Research Repository (World Bank) https://reproducibility.worldbank.org
    Software
    Stata
    Name
    Stata
    Version
    18
    Python
    Name
    Python
    Version
    3.12

    Reproducibility

    Technology requirements

    ~3 hour runtime.

    Reproduction instructions

    Since some of the data used in this reproducibility package is restricted, users must obtain access to the necessary data before running the code.
    Once the data is available, follow these steps to reproduce the results:

    • Place the data in the appropriate folder.
    • Open the do-file "00_base.do" located in the code folder.
    • Update the file path on line 2 to your folder's location, and the Python execution path on line 44.
    • Install all required Python dependencies listed in "requirements.txt"
    • Run the "00_base.do" dofile in Stata, all Python code will execute from within the Stata script.

    Since the restricted data is not included in the package, the final outputs produced by the replicators are provided in the figs folder.

    Data

    Datasets
    National Classification of Economic Activities(CNAE) data
    Name
    National Classification of Economic Activities(CNAE) data
    Note
    Source: Brazilian National Statistical office Filenames: CNAE.xlsx, CNAE1.0xCNAE.pdf_harmonized.xlsx, CNAE20_Correspondencia20x10 (2).xlsx, CNAEDOMxCNAExPNAD91_using_ExtractTable_harmonized.xlsx, CNAE_Domiciliar2.0(DEZEMBRO2008).xlsx
    Access policy
    Data is publicly available and included in the reproducibility package.
    License
    Creative Commons Attribution-NoDerivatives 3.0 Unported
    License URL
    https://www.gov.br/acessoainformacao/pt-br
    Data URL
    https://concla.ibge.gov.br/
    RAIS – Relação Anual de Informações Sociais
    Name
    RAIS – Relação Anual de Informações Sociais
    Note
    Source: Brazilian Ministry of Labor Filenames: RAIS_data_1995_2021_by_microregion_and_CNAE95_5digits_only_green_variables.dta, RAIS_data_1995_2021_by_municipality_and_CNAE95_5digits.dta, RAIS_data_1995_2022_by_microregion_and_CNAE95_5digits.dta, RAIS_data_2000_2020_by_municipality_and_CNAE95_5digits.dta, RAIS_reduced_file_2000.dta, RAIS_reduced_file_2001.dta, RAIS_reduced_file_2002.dta, RAIS_reduced_file_2003.dta, RAIS_reduced_file_2004.dta, RAIS_reduced_file_2005.dta, RAIS_reduced_file_2006.dta, RAIS_reduced_file_2007.dta, RAIS_reduced_file_2008.dta, RAIS_reduced_file_2009.dta, RAIS_reduced_file_2010.dta, RAIS_reduced_file_2011.dta, RAIS_reduced_file_2012.dta, RAIS_reduced_file_2013.dta, RAIS_reduced_file_2014.dta, RAIS_reduced_file_2015.dta, RAIS_reduced_file_2016.dta, RAIS_reduced_file_2017.dta, RAIS_reduced_file_2018.dta, RAIS_reduced_file_2019.dta, RAIS_reduced_file_2020.dta The data was obtained through a formal data agreement between the Brazilian Ministry of Labor and the World Bank.
    Access policy
    Restricted and not included in the package.
    Global Trade data
    Name
    Global Trade data
    Note
    Source: United Nations Comtrade database Users can bulk download the data using `bulkRetrieve.py` via the API.
    Access policy
    Data is publicly available but does not allow redistribution.
    License URL
    https://comtrade.un.org/licenseagreement.html
    Data URL
    https://comtradedeveloper.un.org/signin?returnUrl=%2F
    Brazilian Population Censuses 2000, 2010
    Name
    Brazilian Population Censuses 2000, 2010
    Note
    Source: Brasileiro de Geografia e Estatística (IBGE) Filenames: Censo.2000.brasil.amostra.10porcento.dta, Censo.2010.brasil.amostra.10porcento.dta, overall_formal_and_informal_2000_and_2010_census_microregion_CNAE95_race.dta, overall_formal_and_informal_2000_and_2010_census_microregion_CNAE95_v2.dta, overall_formal_and_informal_2000_and_2010_census_municipality_CNAE95.dta, overall_formal_and_informal_2000_and_2010_census_municipality_CNAE95_race.dta
    Access policy
    Data is publicly available but does not allow redistribution.
    License URL
    https://www.ibge.gov.br/acesso-informacao/acoes-e-programas/politica-de-privacidade.html
    Data URL
    https://ftp.ibge.gov.br/Censos/Censo_Demografico_2000/Microdados/
    Customs Data
    Name
    Customs Data
    Note
    Source: Ministry of Industry and Commerce’s (MDIC) Filename: EXP_1989_NBM.csv, EXP_1990_NBM.csv, EXP_1991_NBM.csv, EXP_1992_NBM.csv, EXP_1993_NBM.csv, EXP_1994_NBM.csv, EXP_1995_NBM.csv, EXP_1996_NBM.csv, EXP_COMPLETA.csv, EXP_COMPLETA.zip, EXP_COMPLETA_MUN.csv, EXP_COMPLETA_MUN.zip, EXP_TOTAIS_CONFERENCIA.csv, EXP_TOTAIS_CONFERENCIA_MUN.csv, IMP_1989_NBM.csv, IMP_1990_NBM.csv, IMP_1991_NBM.csv, IMP_1992_NBM.csv, IMP_1993_NBM.csv, IMP_1994_NBM.csv, IMP_1995_NBM.csv, IMP_1996_NBM.csv, IMP_COMPLETA.csv, IMP_COMPLETA.zip, IMP_COMPLETA_MUN.zip, IMP_TOTAIS_CONFERENCIA.csv, IMP_TOTAIS_CONFERENCIA_MUN.csv, lista-exportadores.csv, NBM.csv, NBM_NCM.csv, source.txt, TABELAS_AUXILIARES.xlsx, UF_MUN.csv
    Access policy
    Data is publicly available but does not allow redistribution.
    License URL
    https://www.gov.br/mdic/pt-br/acesso-a-informacao/dados-abertos
    Data URL
    https://www.gov.br/mdic/pt-br/assuntos/comercio-exterior/estatisticas/base-de-dados-bruta
    Environmental taxonomy of economic activities in Brazil
    Name
    Environmental taxonomy of economic activities in Brazil
    Note
    Source: Brazilian Federation of Banks (FEBRABAN). Filename: FEBRABAN - Versão Final da Taxonomia_20210217.xlsx
    Access policy
    Data is publicly available and included in the reproducibility package.
    National Household Sample Survey (Pesquisa Nacional por Amostra de Domicílios) 2001-2009 and 2011
    Name
    National Household Sample Survey (Pesquisa Nacional por Amostra de Domicílios) 2001-2009 and 2011
    Note
    Source: Brazilian National Statistical office Filenames: PES2001.dta, PES2002.dta, PES2003.dta, PES2004.dta, PES2005.dta, PES2006.dta, PES2007.dta, PES2008.dta, PES2009.dta, PES2011.dta
    Access policy
    Data is publicly available and included in the reproducibility package.
    License URL
    https://www.gov.br/acessoainformacao/pt-br
    Data URL
    https://ftp.ibge.gov.br/Trabalho_e_Rendimento/Pesquisa_Nacional_por_Amostra_de_Domicilios_anual/microdados/reponderacao_2001_2012/
    National Household Sample Survey (Pesquisa Nacional por Amostra de Domicílios) 2012-2020
    Name
    National Household Sample Survey (Pesquisa Nacional por Amostra de Domicílios) 2012-2020
    Note
    Source: SEDLAC (World Bank and CEDLAS) Filenames: BRA_2012_PNADC-E1_v02_M_v01_A_SEDLAC-03_all.dta, BRA_2013_PNADC-E1_v02_M_v01_A_SEDLAC-03_all.dta, BRA_2014_PNADC-E1_v02_M_v01_A_SEDLAC-03_all.dta, BRA_2015_PNADC-E1_v02_M_v01_A_SEDLAC-03_all.dta, BRA_2016_PNADC-E1_v03_M_v02_A_SEDLAC-03_all.dta, BRA_2017_PNADC-E1_v03_M_v02_A_SEDLAC-03_all.dta, BRA_2018_PNADC-E1_v02_M_v02_A_SEDLAC-03_all.dta, BRA_2019_PNADC-E1_v02_M_v02_A_SEDLAC-03_all.dta, BRA_2020_PNADC-E5_v01_M_v02_A_SEDLAC-03_all.dta Access is restricted to World Bank staff using Bank-managed computers; external access is not available.
    Access policy
    Restricted and not included in the package.
    Population Estimates data
    Name
    Population Estimates data
    Note
    Source: Source: Brazilian National Statistical office Filenames: POP-2000.xls, POP-2010.xls, POP2022_Municipios_20230622.xls, state-pop.xlsx,
    Access policy
    Data is publicly available and included in the reproducibility package.
    License URL
    https://www.gov.br/acessoainformacao/pt-br
    Data URL
    https://ftp.ibge.gov.br/Trabalho_e_Rendimento/Pesquisa_Nacional_por_Amostra_de_Domicilios_anual/microdados/reponderacao_2001_2012/
    Data statement

    Some data is restricted and has not been included in the reproducibility package. For more details, please refer to the README file.

    Description

    Output
    Exports, Labor Markets, And The Environment: Evidence From Brazil
    Type
    Working Paper
    Title
    Exports, Labor Markets, And The Environment: Evidence From Brazil
    Description
    Policy Research Working Papers (PRWP) WPS11172
    URL
    https://documents.worldbank.org/pt/publication/documents-reports/documentdetail/099225407142518682
    DOI
    https://doi.org/10.1596/1813-9450-11172
    Authors
    Author Affiliation Email
    Gabriel Lara Ibarra The World Bank glaraibarra@worldbank.org
    Carlos Góes IFC cbezerradegoes@ifc.org
    Otavio Conceição World bank ocanozzi@worldbank.org
    Gladys Lopez-Acevedo World Bank gacevedo@worldbank.org
    Date of production

    2025-07-31

    Scope and coverage

    Geographic locations
    Location Code
    Brazil BRA
    Keywords
    Exports Shocks Labor Markets Formal Employment Wages Brazil
    Topics
    ID Topic Parent topic ID Vocabulary Vocabulary URI
    D3 Distribution D Journal of Economic Literature (JEL)
    F16 Trade and Labor Market Interactions F1 Journal of Economic Literature (JEL)
    J16 Economics of Gender • Non-labor Discrimination J1 Journal of Economic Literature (JEL)
    O19 International Linkages to Development • Role of International Organizations O1 Journal of Economic Literature (JEL)

    Disclaimer

    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.

    Access and rights

    License
    Name URI
    Modified BSD3 https://opensource.org/license/bsd-3-clause/

    Contacts

    Contacts
    Name Affiliation Email
    Gabriel Lara Ibarra The World Bank glaraibarra@worldbank.org
    Reproducibility WBG World Bank reproducibility@worldbank.org

    Information on metadata

    Producers
    Name Abbreviation Affiliation Role
    Reproducibility WBG DIME World Bank - Development Impact Department Verification and preparation of metadata
    Date of Production

    2025-07-31

    Document version

    1

    Citation

    Citation
    loading, please wait...
    Citation format
    Export citation: RIS | BibTeX | Plain text
    Back to Catalog
    The World Bank Working for a World Free of Poverty
    • IBRD IDA IFC MIGA ICSID

    © The World Bank Group, All Rights Reserved.