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

Reproducibility package for Unpacking Non-Tariff Measures: Beyond The Tip Of The Iceberg

2026
Get Reproducibility Package
Reference ID
RR_IDN_2026_708
Author(s)
Devaki Ghose, Shafaat Khan, Angella Faith Montfaucon
Collections
World Bank Policy Research Working Papers
Metadata
JSON
Created on
Oct 14, 2026
Last modified
Oct 14, 2026
Page views
66
Downloads
34
  • Project Description
  • Downloads
  • Overview
  • Reproducibility Package
  • Description
  • Scope and coverage
  • Disclaimer
  • Access and rights
  • Contacts
  • Information on metadata
  • Overview

    Abstract

    Rising protectionism has shifted trade policy toward non-tariff measures (NTMs), yet their economic effects are not well captured by standard ad-valorem equivalents. This paper shows that NTMs affect trade not only by raising costs, but by altering firms’ adjustment margins and trade dynamics. We assemble a novel, highly disaggregated dataset of NTMs and combine it with transaction-level import and inventory data from Indonesia. Embedding these data in a dynamic trade model, we map observed firm behavior---imports, ordering frequency, and inventories---into underlying cost components, allowing us to decompose NTMs into fixed ordering costs, delivery delays, and iceberg costs. We find that NTMs impose substantial non-ad-valorem frictions. Pre-shipment inspections primarily increase fixed ordering costs, while product standards and import authorization requirements raise both fixed costs and delivery delays. NTMs significantly reshape the response to trade shocks. In the presence of NTMs, supply disruptions lead to larger inventory drawdowns and more persistent price increases, while temporary tariff shocks become more persistent due to slower inventory rebuilding. We also document substantial heterogeneity across end-use categories, with the same NTM operating through different adjustment margins across capital, consumption, and intermediate goods. Overall, our results show that NTMs play a central role in shaping not only the level of trade, but also how trade adjusts and evolves in response to shocks.

    Reproducibility Package

    Scripts
    Readme Get Reproducibility Package
    Link: https://reproducibility.worldbank.org/catalog/674/download/2028/README.pdf
    Reproducibility package for Unpacking Non-Tariff Measures: Beyond The Tip Of The Iceberg
    File name
    RR_IDN_2026_708
    Zip package
    RR_IDN_2026_708.zip
    Title
    Reproducibility package for Unpacking Non-Tariff Measures: Beyond The Tip Of The Iceberg
    Date
    2026-10
    Dependencies
    Stata dependencies are listed in the ado folder.
    Instructions
    See README in reproducibility package.
    Notes
    Computational reproducibility verified by Development Impact (DECDI) Analytics team, World Bank.
    Source code repository
    Repository name URI
    Reproducible Research Repository (World Bank) https://reproducibility.worldbank.org
    Software
    Stata
    Name
    Stata
    Version
    19.0 MP
    MATLAB
    Name
    MATLAB
    Version
    2024a

    Reproducibility

    Technology environment

    Paper exhibits were reproduced on a computer with the following specifications:
    • OS: Windows 11 Enterprise
    • Processor: INTEL(R) XEON(R) PLATINUM 8562Y+ 2.80 GHz (2 processors)
    • Memory available: 32.0 GB

    Technology requirements

    Runtime: ~2 hours.

    Reproduction instructions

    To reproduce the findings in this paper, a replicator must:

    1. Secure access to data: obtain the datasets not included in the package (see the Datasets section) and place them in Data/Raw, keeping the file names listed in data_hash_report.csv.
    2. Reduced-form results (Stata): open Codes/00_master.do, update the global root on line 52, keep all RUN switches equal to 1, and run the script. Tables are written to Output/ReducedForm and Figure 1 to Output/Figures.
    3. Structural model, step 1 (MATLAB): run Model/code/master_montecarlo_PE.m to generate the Monte Carlo simulation files.
    4. Structural model, step 2 (Stata): from the Model folder, run regressions_PE.do.
    5. Structural model, step 3 (MATLAB): run Model/matrix_inversion.m.
    6. Structural model, step 4 (MATLAB): run Model/code/master.m for the counterfactual simulations and Figures 2 and 3.

    Structural-model tables are written to Model/Tex files and figures to Model/code/Figures. See Model/README.md for details.

    Note: The structural model (steps 3 to 6) does not use any of the restricted data and can be run without obtaining it. It reproduces Tables 3, 4, 5 and 7, Figures 2 and 3, and Appendix Tables D.4 to D.7. Table 5 is printed to the MATLAB console rather than saved to a file. The reduced-form part (step 2) requires the restricted data. However, users without access can rebuild Tables 2 and 6 and Appendix Tables D.2 and D.3 from the saved regression estimates included in Output/ReducedForm. To do so, set all RUN switches in Codes/00_master.do to 0 except RUN_TABLE_ASSEMBLY, and run the script.

    Data

    Datasets
    Indonesian Customs Import Transaction Level Microdata - 2014-2018
    Name
    Indonesian Customs Import Transaction Level Microdata - 2014-2018
    Note
    Filename: Data/Raw/import_concorded_v2.dta. Confidential transaction-level Indonesian customs import data from the Directorate General of Customs and Excise (DGCE), Ministry of Finance, accessed through a World Bank collaboration. Used to build annual firm-HS6-country import values, weights, and transaction counts for the HS6-year trade panel. A list of variables is provided in variable_inventory.csv, and the file hash is in data_hash_report.csv. For more details on the data, interested users can reach out to one of the authors at dghose@worldbankgroup.org
    Access policy
    Data is restricted and it is not included in the reproducibility package.
    License
    Confidential
    Citation
    Indonesian Directorate General of Customs and Excise, Ministry of Finance. Indonesian Customs Import Transaction Level Microdata - 2014-2018 [dataset]. Unpublished data. Accessed through a World Bank collaboration.
    Indonesian Customs Export Microdata, 2015-2022
    Name
    Indonesian Customs Export Microdata, 2015-2022
    Note
    Filename: Data/Raw/indonesia_exports_annual_2015_2022.dta. Confidential annual Indonesian customs export data from DGCE, Ministry of Finance, accessed through a World Bank collaboration. Used to construct firm-year export totals for the firm-size heterogeneity analysis (Appendix Table D.1). A list of variables is provided in variable_inventory.csv and the file hash in data_hash_report.csv. For more details on the data, interested users can reach out to one of the authors at dghose@worldbankgroup.org.
    Access policy
    Data is restricted, and it is not included in the reproducibility package.
    License
    Confidential
    Citation
    Indonesian Directorate General of Customs and Excise, Ministry of Finance.Indonesian Customs Export Microdata, 2015-2022 [dataset]. Unpublished data. Accessed through a World Bank collaboration.
    Annual Manufacturing Survey, plant-level microdata
    Name
    Annual Manufacturing Survey, plant-level microdata
    Note
    Filename: Data/Raw/plant_year_5digitKBLI_data.dta. Restricted plant-year manufacturing microdata from BPS-Statistics Indonesia with 5-digit KBLI industry codes, output, inputs, imports, exports, inventories, and other plant characteristics. Used to build the plant-year inventory panel and the sales-based firm-size heterogeneity analysis. A list of variables is provided in variable_inventory.csv, and the file hash is in data_hash_report.csv. For more details on the data, interested users can reach out to one of the authors at dghose@worldbankgroup.org.
    Access policy
    Data is restricted, and it is not included in the reproducibility package.
    License
    Confidential
    Citation
    Badan Pusat Statistik. Annual Manufacturing Survey, plant-level manufacturing microdata [dataset]. Unpublished data.
    Indonesia Non-Tariff Measures Dataset, NTM Panel: Indonesia (2008-2021 vintage)
    Name
    Indonesia Non-Tariff Measures Dataset, NTM Panel: Indonesia (2008-2021 vintage)
    Note
    Filename: Data/Raw/NTM_HS_Panel_2008-2021_trade.dta. HS10-month NTM, tariff, and trade exposure panel built by the World Bank from ERIA/UNCTAD NTM data and UNCTAD TRAINS tariffs. Used to construct HS6-year NTM and tariff exposure for the trade regressions and upstream IO-sector NTM exposure for the inventory regressions. The earlier vintage used in this package is not publicly available for download; the World Bank Data Catalog currently publishes the newer version, NTM-Panel: Indonesia 2008-2023. A list of variables is provided in variable_inventory.csv, and the file hash is in data_hash_report.csv. For more details on the data, interested users can reach out to one of the authors at dghose@worldbankgroup.org.
    Access policy
    The vintage used in the paper is not publicly available and is not included in the reproducibility package.
    Data URL
    https://datacatalog.worldbank.org/search/dataset/0063543/indonesia-non-tariff-measures
    Citation
    World Bank. Indonesia Non-Tariff Measures Dataset, NTM Panel: Indonesia [dataset]. World Bank Data Catalog.
    HS Consolidation Correspondence through 2017
    Name
    HS Consolidation Correspondence through 2017
    Note
    Filename: Data/Raw/Consolidation_Until_2017.dta; Data/Raw/Consolidation_Until_2017_BEC.dta. HS concordance prepared by the authors (World Bank) based on publicly available HS and BEC correspondences. Used to harmonize HS-2007 HS6 product codes to consolidated HS-2017 HS6 codes.
    Access policy
    Data is included in the reproducibility package.
    License
    Custom License
    Citation
    Author's compilation, World Bank. (2026). HS Consolidation Correspondence through 2017, based on publicly available HS correspondence [dataset].
    Indonesian Standard Commodity Classification (KBKI)
    Name
    Indonesian Standard Commodity Classification (KBKI)
    Note
    Filename: Data/Raw/kbki2015_0t4_11.dta. HS2012-to-KBLI2009 concordance (KBKI 2015, Sections 0-4 and 11) published by BPS-Statistics Indonesia in PDF format and digitized by the authors. Used to map HS products to 5-digit KBLI industries. Source PDFs: Book 1 (Publication No. 03120.1503), Book 2 (03120.1504), Book 3 (03120.1505), Book 4 (03120.1506), available at https://ppid.bps.go.id.
    Access policy
    Data is included in the reproducibility package.
    License
    Public source
    Data URL
    https://ppid.bps.go.id/upload/doc/Korespondensi_KBKI_dengan_KKI_1998_1999_-_KBLI_2009_-_HS_2012__Buku_1_1659512732.pdf
    Citation
    Badan Pusat Statistik. 2015. Indonesian Standard Commodity Classification 1998/1999, KBLI 2009, HS 2012, Buku 1-4 Komoditas Barang. Jakarta: BPS-Statistics Indonesia.
    2016 Indonesia Input-Output Table
    Name
    2016 Indonesia Input-Output Table
    Note
    Filename: Data/Raw/IO 2016.xlsx. 2016 Indonesia input-output table published by BPS in PDF format and converted by the authors to Excel. The code imports sheet "185, Total, Purchaser" and reshapes the IO matrix into source-destination input shares.
    Access policy
    Data is included in the reproducibility package.
    License
    Central Statistics Agency (BPS) Terms of Use
    License URL
    https://www.bps.go.id/id/term-of-use
    Data URL
    https://www.bps.go.id/id/publication/2021/03/31/081f6b0af2c15c524d72b660/tabel-input---output-indonesia-2016.html
    Citation
    Badan Pusat Statistik. 2021. 2016 Indonesia Input-Output Table [dataset]. Jakarta: Badan Pusat Statistik. https://www.bps.go.id/id/publication/2021/03/31/081f6b0af2c15c524d72b660/tabel-input---output-indonesia-2016.html
    Input-Output (IO) Sectors to Standard Classification of Indonesian Business Fields (KBLI) Concordance
    Name
    Input-Output (IO) Sectors to Standard Classification of Indonesian Business Fields (KBLI) Concordance
    Note
    Filename: Data/Raw/IO_KBLI5digs.dta. Raw IO-sector-to-5-digit-KBLI concordance used to map plant KBLI industries to IO sectors.
    Access policy
    Data is included in the reproducibility package.
    License
    Custom License
    Citation
    Authors' compilation, World Bank. (2026). Input-Output (IO) Sectors to Standard Classification of Indonesian Business Fields (KBLI) Concordance
    World Integrated Trade Solution (WITS) Product Concordance: HS 2012 (H4) to HS 2007 (H3)
    Name
    World Integrated Trade Solution (WITS) Product Concordance: HS 2012 (H4) to HS 2007 (H3)
    Note
    Filename: Data/Raw/JobID-80_Concordance_H4_to_H3.CSV. HS2012-to-HS2007 concordance used to connect HS2012-KBLI mappings to the HS2007 NTM panel. On the WITS page, select the H4 to H3 concordance file.
    Access policy
    Data is publicly available and included in the reproducibility package.
    License
    Public
    Data URL
    https://wits.worldbank.org/product_concordance.html
    Citation
    World Integrated Trade Solution. (2026). Product Concordance: H4 to H3. World Bank. https://wits.worldbank.org/product_concordance.html
    Data statement

    The reproducibility package relies on two types of data: open and restricted data. For the source, access type, file location, and citation of each dataset, refer to the Datasets section and the README file.

    Description

    Output
    Unpacking Non-Tariff Measures: Beyond The Tip Of The Iceberg
    Type
    Working Paper
    Title
    Unpacking Non-Tariff Measures: Beyond The Tip Of The Iceberg
    Description
    Policy Research Working Paper (PRWP)
    Authors
    Author Affiliation Email
    Devaki Ghose World Bank dghose@worldbankgroup.org
    Shafaat Khan Syracuse University shafaatyar.k@gmail.com
    Angella Faith Montfaucon World Bank amontfaucon@worldbank.org
    Date of production

    2026-10-09

    Scope and coverage

    Geographic locations
    Location Code
    Indonesia IDN
    Keywords
    Non-Tariff Measures Trade Costs Inventories Delivery Delays
    Topics
    ID Topic Parent topic ID Vocabulary Vocabulary URI
    F13 Trade Policy • International Trade Organizations F1 Journal of Economic Literature (JEL)
    F15 Economic Integration F1 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
    MIT License https://opensource.org/license/mit
    World Bank IGO Rider https://github.com/worldbank/metadata-editor/blob/main/WB-IGO-RIDER.md

    Contacts

    Contacts
    Name Affiliation Email
    Devaki Ghose World Bank dghose@worldbankgroup.org
    Reproducibility WBG World Bank reproducibility@worldbank.org

    Information on metadata

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

    2026-10-09

    Document version

    1

    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.