{"type":"script","doc_desc":{"producers":[{"name":"Reproducibility WBG ","abbr":"DIME","affiliation":"World Bank - Development Impact Department ","role":"Verification and preparation of metadata "}],"prod_date":"2024-07-01","version":"1"},"project_desc":{"authoring_entity":[{"name":"Alessandro Barattieri","affiliation":"World Bank","email":"abarattieri@worldbank.org"},{"name":"Aaditya Mattoo","affiliation":"World Bank","email":"amattoo@worldbank.org"},{"name":"Daria Taglioni","affiliation":"World Bank","email":"dtaglioni@worldbank.org"},{"name":"Maria Del Mar Gomez Ortiz","email":"mgomezortiz@worldbank.org","affiliation":"World Bank"}],"output":[{"type":"Working paper","title":"Trade Effects of Industrial Policies: Are Preferential Agreements a Shield?","description":"Policy Research Working Paper (PRWP) 10806","uri":"http:\/\/documents.worldbank.org\/curated\/en\/099310406172411550\/IDU154197ea11b0ca145c81a7371f9425c7549d7","doi":"https:\/\/doi.org\/10.1596\/1813-9450-10806","authors":"Alessandro Barattieri, Aaditya Mattoo, Daria Taglioni"}],"datasets":[{"name":"Global Trade Alert Database","license_uri":"https:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/","license":"Creative Commons Attribution 4.0 International license","uri":"https:\/\/www.globaltradealert.org\/data_extraction","note":"Data was acquired on November 2023 by downloading the complete dataset in R from the data URL (\"2008 to latest (Rdata)\") and saving the results in the data file \"GTA-OCT-23.csv\". ","access_type":"Data is public and included in the reproducibility package"},{"name":"BACI trade flows by year - HS12","uri":"http:\/\/www.cepii.fr\/CEPII\/en\/bdd_modele\/bdd_modele_item.asp?id=37","note":"Data files: \"BACI_HS12_Y[year]_V202401.csv\". Data was acquired on January 2024 from the data URL.","license_uri":"https:\/\/www.etalab.gouv.fr\/wp-content\/uploads\/2018\/11\/open-licence.pdf","license":"Etalab 2.0","access_type":"Data is public and included in the reproducibility package"},{"name":"Deep Trade Agreements","uri":"https:\/\/datatopics.worldbank.org\/dta\/table.html","note":"Data file: \"DTA 2.0 - Vertical Content (v2).xlsx\". Data was acquired on March 2024 from the data URL.","license":"Creative Commons Attribution 4.0 International License","license_uri":"https:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/","access_type":"Data is public and included in the reproducibility package"},{"name":"Global Trade Alert - New Industrial Policy Observatory","note":"Data file: \"GTA_NIPO.xls\". Data was acquired on February 2024 from the data URL (Link \"Download inventory\": https:\/\/gtaupload.s3.eu-west-1.amazonaws.com\/Uploads\/web\/NIPO\/GTA+NIPO+-+latest+release.xlsx).","uri":"https:\/\/www.globaltradealert.org\/reports\/112","access_type":"Data is public and included in the reproducibility package","license":"Creative Commons Attribution 4.0 International License","license_uri":"https:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/"},{"name":"US Imports from the Census Bureau","license_uri":"https:\/\/www.census.gov\/foreign-trade\/statistics\/dataproducts\/uto-help\/faq.html","uri":"https:\/\/usatrade.census.gov\/","access_type":"Data is public and included in the reproducibility package","note":"Data file: \"Standard Report - Imports.xlsx\". The data was acquired by running a query in the data URL by selecting all imports by NAICS and then selecting all imports to all districts from 2017m1 to 2024m2 for the following origin countries: World total, China, ASEAN, Canada, Mexico, and USMCA. Data were accessed in April 2024."},{"name":"Country ISO codes BACI database","license":"Etalab 2.0","license_uri":"https:\/\/www.etalab.gouv.fr\/wp-content\/uploads\/2018\/11\/open-licence.pdf","uri":"http:\/\/www.cepii.fr\/CEPII\/en\/bdd_modele\/bdd_modele_item.asp?id=37","access_type":"Data is public and included in the reproducibility package","note":"Data was downloaded from the data URL from the link \"HS12\". This compressed file includes a file named \u201ccountry_codes_V202401b.csv\u201d. We manually kept only the columns \u201ccountry_code\u201d and \u201ccountry_iso3\u201d, created a copy of both for easier data processing later on (\u201ccountry_code\u201d was copied into the columns \u201cj\u201d and \u201cI\u201d, and \u201ccountry_iso3\u201d was copied into \u201cIMP\u201d and \u201cEXP\u201d), and saved the result into Stata. A copy of the resulting data is provided as part of this archive in the file \u201cBACI_ISO_Codes.dta\u201d. Data were accessed in January 2024."},{"name":"World Bank country income classification","uri":"https:\/\/datacatalogfiles.worldbank.org\/ddh-published\/0037712\/DR0090754\/OGHIST.xlsx","license":"Creative Commons Attribution 4.0 International License","license_uri":"https:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/","access_type":"Data is public and included in the reproducibility package","note":"Data was downloaded from the data URL and the income classification values of the tab \"Country Analytical History\" for 2007 and 2021 were manually copied into Stata and saved in the files \"WB income classification 2007.dta\" and \"WB income classification 2021.dta\". Data was accessed on January 2024."},{"name":"Crosswalk HS codes and ISIC categories","note":"Data was downloaded from the link \"H4 to ISIC Rev 3\" of the panel \"HS 2012 or H4\" of the data URL. Data was manually copied into Stata keeping only the columns \"HS 2012 Product Code\" (renamed to \"HS2012\") and \"ISIC Revision 3 Product Code\" (renamed to \"ISIC3_2\") and saved in the file \"HS2012_ISIC3.dta\". Data was accessed on January 2024.","access_type":"Data is public and included in the reproducibility package","license_uri":"https:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/","license":"Creative Commons Attribution 4.0 International License","uri":"https:\/\/wits.worldbank.org\/product_concordance.html"},{"name":"GDP in 2021","uri":"https:\/\/data.worldbank.org\/indicator\/NY.GDP.PCAP.PP.KD","license_uri":"https:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/","license":"Creative Commons Attribution 4.0 International License","access_type":"Data is public and included in the reproducibility package","note":"Data was downloaded from the data URL and manually copied into Stata keeping only the columns \"Country code\" (renamed to \"Economy\") and 2021 (renamed to \"gdp_pc\"). A column with the logarithm of \"gdp_pc\" was then created with the name \"ln_gdp_pc\". The resulting data was saved in the file \"GDP-21.dta\". Data was accessed on January 2024."}],"title_statement":{"idno":"RR_EAP_2024_161","title":"Reproducibility package for Trade Effects of Industrial Policies: Are Preferential Agreements a Shield?"},"production_date":"2024-06","abstract":"This paper explores the effects of industrial policy on trade, focusing on the role of preferential trade agreements. The analysis uses data for the period 2012\u20132022 on detailed product-level bilateral trade, industrial policy announcements, and rules on subsidies in different preferential trade agreements. The introduction of a new industrial policy measure in a destination market reduces export growth to that market on average by about 0.28 percent. However, exports from fellow members of preferential trade agreements are not adversely affected and may even be positively affected if the agreements have deep disciplines on subsidies. These findings suggest that preferential trade agreements have a shielding effect against the trade distorting effects of industrial policies.","geographic_units":[{"name":"World","code":"WLD"}],"keywords":[{"name":"Industrial Policies"},{"name":"Trade"},{"name":"Preferential Trade Agreements"}],"topics":[{"id":"F10","name":"Trade - General","parent_id":"F1","uri":"https:\/\/www.aeaweb.org\/econlit\/jelCodes.php?view=jel","vocabulary":"Journal of Economic Literature"},{"id":"F14","parent_id":"F1","uri":"https:\/\/www.aeaweb.org\/econlit\/jelCodes.php?view=jel","vocabulary":"Journal of Economic Literature","name":"Empirical Studies of Trade "},{"id":"F15","parent_id":"F1","uri":"https:\/\/www.aeaweb.org\/econlit\/jelCodes.php?view=jel","vocabulary":"Journal of Economic Literature","name":"Economic Integration"},{"id":"L52","parent_id":"L5","uri":"https:\/\/www.aeaweb.org\/econlit\/jelCodes.php?view=jel","vocabulary":"Journal of Economic Literature","name":"Industrial Policy \u2022 Sectoral Planning Methods"}],"data_statement":"All data sources are publicly available and included in the reproducibility package.","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":[{"affiliation":"World Bank","name":"Alessandro Barattieri","email":"abarattieri@worldbank.org"},{"name":"Reproducibility WBG","affiliation":"World Bank","email":"reproducibility@worldbank.org"}],"software":[{"name":"Stata","version":"18 MP"},{"name":"R","version":"4.3.0"}],"scripts":[{"file_name":"RR_EAP_2024_161-v01","zip_package":"RR_EAP_2024_161-v01.rar","title":"Reproducibility package (code and data) for Trade Effects of Industrial Policies: Are Preferential Agreements a Shield?","dependencies":"All Stata dependency files are included in the folder \"2_Do_files\/ado\".","instructions":"See README in the reproducibility package","notes":"Computational reproducibility verified by Development Impact (DIME) Analytics team, World Bank."}],"repository_uri":[{"name":"Reproducible Research Repository (World Bank)","uri":"https:\/\/reproducibility.worldbank.org"}],"technology_requirements":"Runtime: 15 hours","technology_environment":"Paper exhibits were reproduced in a computer with the following specifications:\n\u2013 OS: Windows 11 Enterprise\n\u2013 Processor: Intel(R) Core(TM) i5-1145G7 CPU @ 2.60GHz\n\u2013 Memory available: 15.7 GB\n\u2013 Software version: R 4.3.0; Stata version 18 MP","reproduction_instructions":"Users need to change the global path in line 20 of the do-file \"0-master\", run it, and then run the R script \"3-Split Sectors-Products.R\". Optional instructions for reproducing the R environment with renv are included in the README."},"tags":[{"tag":"DOI"}],"schematype":"script"}