Session 4-5: The benchmark of theoretical gravity models

Similar documents
Session 3-4: Estimating the gravity models

The gravity models for trade research

ARTNeT Interactive Gravity Modeling Tool

Quantifying the effects of NTMs. Xinyi Li Trade Policies Review Division, WTO Secretariat 12 th ARTNeT Capacity Building Workshop December 2016

Workshop for empirical trade analysis. December 2015 Bangkok, Thailand

Basic Regressions and Panel Data in Stata

Gravity Models: Theoretical Foundations and related estimation issues

Session 1: Introduction to Gravity Modeling

The shaded areas of the map are ESCAP Members and Associate members.

Ninth ARTNeT Capacity Building Workshop for Trade Research "Trade Flows and Trade Policy Analysis"

Modelling Methods for Trade Policy II: Introduction to OLS Regression Analysis

Gravity Models and the Armington Assumption

YANNICK LANG Visiting Student

Econ 1123: Section 5. Review. Internal Validity. Panel Data. Clustered SE. STATA help for Problem Set 5. Econ 1123: Section 5.

Gravity Equation. Seyed Ali Madanizadeh. April Sharif U. of Tech. Seyed Ali Madanizadeh (Sharif U. of Tech.) Gravity Equation April / 16

The Poisson Quasi-Maximum Likelihood Estimator: A Solution to the Adding Up Problem in Gravity Models

Empirical trade analysis

BORDER EFFECTS AND THE GRAVITY EQUATION: CONSISTENT METHODS FOR ESTIMATION 1

Elasticity of Trade Flow to Trade Barriers

Bonus Vetus OLS: A Simple Approach for Addressing the Border Puzzle and other Gravity-Equation Issues*

Measuring the Gains from Trade: They are Large!

Estimating the effect of exchange rate changes on total exports

SAFTA and AFTA: a comparative welfare analysis of two regional trade agreements

The Space of Gravity: Spatial Filtering Estimation of a Gravity Model for Bilateral Trade

IV. On the theory and application of Gravity Models

CEMMAP Masterclass: Empirical Models of Comparative Advantage and the Gains from Trade 1 Lecture 3: Gravity Models

The Institutional Determinants of Bilateral Agricultural and Food Trade

International Trade Lecture 16: Gravity Models (Theory)

The OLS Estimation of a basic gravity model. Dr. Selim Raihan Executive Director, SANEM Professor, Department of Economics, University of Dhaka

MSc Economic Policy Studies Methods Seminar. Stata Code and Questions sheet: Computer lab session 24 th October

The Border E ect Through the Rearview Mirror: Would the puzzle have existed if today s tools had been used?

INTRODUCTION TO BASIC LINEAR REGRESSION MODEL

Lecture 9: Panel Data Model (Chapter 14, Wooldridge Textbook)

Bonus Vetus OLS: A Simple Method for Approximating International Trade-Cost Effects using the Gravity Equation

Internation1al Trade

Comparative Advantage and Biased Gravity

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data

MIT PhD International Trade Lecture 15: Gravity Models (Theory)

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data

Elasticity of trade flow to trade barriers: A comparison among emerging estimation techniques

Gravity or Dummies? The Limits of Identication in Gravity Estimations

Applied Microeconometrics (L5): Panel Data-Basics

Competing-Destinations Gravity Model Applied to Trade in Intermediate Goods

DEPARTMENT OF ECONOMICS WORKING PAPERS

Policy Measurement and Multilateral Resistance in Gravity Models

Non-Homothetic Gravity

The TransPacific agreement A good thing for VietNam?

The Role of the Most Favored Nation Principle of the GATT/WTO in the New Trade Model

The incidence of agricultural support on trade of refined sugar

Quality and Gravity in International Trade

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data

It Is Much Bigger Than What We Thought: New Estimate of Trade Diversion

Gravity Models, PPML Estimation and the Bias of the Robust Standard Errors

Motivation Non-linear Rational Expectations The Permanent Income Hypothesis The Log of Gravity Non-linear IV Estimation Summary.

Capital humain, développement et migrations: approche macroéconomique (Empirical Analysis - Static Part)

xtseqreg: Sequential (two-stage) estimation of linear panel data models

GLOBALIZATION, INTERNATIONAL TRADE, AND HUMAN DEVELOPMENT: A CASE OF CENTRAL AND EASTERN EUROPE

System GMM estimation of Empirical Growth Models

A Spatial Econometric Approach to Model the Growth of Tourism Flows to China Cities

Paraguay and Mercosur: A Sensitivity Analysis of Gravity Model Estimation Techniques

Analyzing the Impacts of Mongolia s Trade Costs

The Space of Gravity: Spatial Filtering Estimation of a Gravity Model for Bilateral Trade

Econometrics in a nutshell: Variation and Identification Linear Regression Model in STATA. Research Methods. Carlos Noton.

International Prices and Exchange Rates Econ 2530b, Gita Gopinath

Problem Set 10: Panel Data

International Trade. Lecture 2: Gravity. Thomas Chaney. Sciences Po. Thomas Chaney (Sciences Po) International Trade 1 / 17

DUAL GRAVITY: USING SPATIAL ECONOMETRICS TO CONTROL FOR MULTILATERAL RESISTANCE

General motivation behind the augmented Solow model

THE GRAVITY MODEL OF INTERREGIONAL TRADE: CASE OF EASTERN SIBERIA

AI Gravity, Latent Trade, and Zero Flows

Trade policy III: Export subsidies

Structural Estimation of Gravity Models with Market Entry Dynamics

SUR Estimation of Error Components Models With AR(1) Disturbances and Unobserved Endogenous Effects

14.461: Technological Change, Lecture 4 Technology and the Labor Market

Global Value Chain Participation and Current Account Imbalances

Online Appendix: Entry into Export Markets

On the Problem of Endogenous Unobserved Effects in the Estimation of Gravity Models

How can regions benefit from global value chains?

Topic 10: Panel Data Analysis

Comparative Advantage and Heterogeneous Firms

The challenge of globalization for Finland and its regions: The new economic geography perspective

Trade costs in bilateral trade flows: Heterogeneity and zeroes in structural gravity models

Aggregated vs. Disaggregated Trade Flows and the Missing Globalization Puzzle

Dual gravity: Using spatial econometrics to control for multilateral resistance

ECONOMETRICS HONOR S EXAM REVIEW SESSION

Review of Panel Data Model Types Next Steps. Panel GLMs. Department of Political Science and Government Aarhus University.

DATABASE AND METHODOLOGY

This PDF is a selection from a published volume from the National Bureau of Economic Research

The Impact of ICT on Trade in Persian Gulf Countries

Econometrics Problem Set 11

Wooldridge, Introductory Econometrics, 2d ed. Chapter 8: Heteroskedasticity In laying out the standard regression model, we made the assumption of

Trade Challenges Facing LLDCs: How the ITT-LLDCs could respond to these issues

Trade and institutions: extensive and intensive margins

Gravity and the Hungarian Railway Network Csaba Gábor Pogonyi

Quality and Gravity in International Trade

Making sense of Econometrics: Basics

Chapter 4. Explanation of the Model. Satoru Kumagai Inter-disciplinary Studies, IDE-JETRO, Japan

Estimating General Equilibrium Trade Policy Eects: GE PPML

Total trade of G20 as a share of world trade Subtotal as a share of total trade of G20

Gravity, market potential and economic development

Transcription:

ARTNeT- GIZ Capacity Building Workshop on Introduction to Gravity Modelling: 19-21 April 2016, Ulaanbaatar Session 4-5: The benchmark of theoretical gravity models Dr. Witada Anukoonwattaka Trade and Investment Division, ESCAP anukoonwattaka@un.org

Overview of the workshop Day 1 : Introduction to the gravity approach Concepts of traditional gravity models and its problems Estimating traditional gravity model in STATA Day 2 Theoretical Gravity models Estimating theoretical gravity models Concepts and the importance Fixed Effect models Baier-Bergstrand approach Day 3 Consolidation Brainstorming on group exercises Group presentation and comments Wrap-up 2

Introduction The basic gravity model provides a respectable place to start. But if we look more closely, we will find that it has some unattractive implications from an economic point of view. Doing some theory allows us to reformulate the gravity model in much more attractive way.

ln X ij b0 b1 ln( Yi ) b2 ln( Yj ) b3 ln( t ij )... e ij Yesterday, we interpreted b3 = -1 as indicating that a 1% increase in bilateral distance (trade cost) is associated with a 1% decrease in bilateral trade. In fact, this presents some serious problems in the context of a world with many countries. Do trade flows between i and j only depend on bilateral trade costs, without any adjustment for the level of trade costs prevailing on other routes?

Major weaknesses of the basic gravity: ln X ij b0 b1 ln( Yi ) b2 ln( Yj ) b3 ln( t ij ) e ij The basic gravity model cannot handle the facts that: 1. Trade costs of the third party can affect trade between the two partners. 2. Relative trade costs (relative prices, to be exact) matter, not absolute trade costs A consequence: The OLS basic gravity models encounter the omitted variables bias Ex. trade creation and trade diversion are not captured by the basic gravity model. 5

The theoretical gravity model A number of papers try to lay theoretical foundations to gravity model For the starting point, we will focus on Anderson &Van Wincoop (AvW),2003. The gravity with gravitas. There are several theoretical gravity models developed for particular purposes. Ex. Helpman et.al. (2008), Chaney (2008). Showing complex empirical issues that OLS cannot handle Sources such as the gravity course on Ben Shepherd s website at http://www.developing-trade.com/ provide rich details.

AvW (2003) The most formal benchmark for theoretical gravity model so far Bringing the gravity model a step closer to GE effects Accounting for relative price effects on trade flow Things affecting relative price can influence bilateral trade flow. No matter the things happen between the two trading partners or happen with third parties.

Building gravity on micro-foundation Consumers have love of variety preferences with CES structure Producers are under monopolistic competition Introducing trade costs, and related domestic and foreign prices Closing the model with macroeconomic accounting identities

AvW (2003) empirical model k X ij Sector-k exports from country i to j Y k World income from sector k k Y i k E j Exporting country s income from sector k Importing country s expenditure on sector k k ij Sector-k trade costs between country i and country j

AvW (2003) empirical model Outward multi-lateral resistance (MTR): looking from export sides Exports from country i to j depend on trade costs across ALL possible export markets. Inward multi-lateral resistance (MTR): looking from import side Imports of country j from country i depend on trade costs across ALL possible suppliers.

AvW (2003) empirical implications The intuitive gravity model have omitted variables. Serious consequences (bias and inconsistency) Relative trade costs matter, NOT absolute trade costs, Two types of trade costs have to be taken into account Trade costs between i and j Trade costs of i and j with third parties For each observation, trade flows are unidirectional trade flows, NOT total trade of a country pair. Variables are in nominal terms, NOT real terms (Special) price indices are captured separately in the MRT terms Using aggregate GDP, NOT GDP per capita

AvW (2003) empirical implications Need the estimated trade costs, NOT just distance in gravity models. The base line can be Policy-related variables can be augmented into the trade cost functions. bˆ is NOT purely trade cost elasticity, but combined with elasticity of substitution ( k )

Estimating the AvW gravity model The multilateral trade resistance (MTR) terms are empirically unobservable Two possible strategies to estimate the model Fixed effects (FE) estimation Baier and Bergstrand (2009) approach

The theoretical gravity model: FE estimation FE transformation of the model: where Exporter fixed effects Importer fixed effects Estimated trade cost

Estimation procedures 1. Generate (numerical) fixed effects dummies Exporter & Importer dummies Year dummies (if relevant) Sector dummies (if relevant, but may be impractical) 2. Assuming key OLS assumptions are fine, we estimate the FE model with OLS No multicolinearity Homoskedasticity E is uncorrelated with any independent variables

Estimation procedures 3. Variables that vary in the same dimensions as the FEs CANNOT be included in the model Having multicolinearity problems with FEs ex. MFN tariffs, ETCR scores MUST be transformed into a new variable that vary bilaterally before including in the model, or using alternative approaches.

Estimating a FE gravity model with OLS in Stata egen exporters=group(exp) egen importers=group(imp) regress ln_trade ln_distance contig comlang_off comcol /// i.exporters i.importers, robust cluster(dist) Alternatively, quietly tabulate exporters, generate(exp_dum_) quietly tabulate importers, generate(imp_dum_) regress ln_trade ln_distance contig comlang_off comcol /// exp_dum_* imp_dum_*, robust cluster(dist)

Taking account of MTR How serious is this OV bias empirically? quietly regress ln_trade ln_gdp_exp ln_gdp_imp ln_distance contig comlang_off estimates store Basic quietly regress ln_trade ln_distance contig comlang_off comcol i.exporters i.importers estimates store FE suest Basic FE, robust cluster(dist)

Distance coefficients Taking account of MTR The intuitive model = -1.75*** The FE model = -2.39*** The difference is statistically significant at the 1% level

Augmented theoretical gravity models Policy variables often vary only in the exporter or importer dimensions Perfectly collinear with corresponding FEs Possible Solutions: Transforming the policy variables so as to vary by country pair(and continue using FE approach): Sum of exporter and importer values. Average of exporter and importer values, etc. Using random effects (RE approach) Ex. Egger (2002), Carrère (2006) Not recommend due to a strong assumption. Baier and Bergstrand (BB) approach See Baier and Bergstrand (2009)

An augmented FE model gen tariff_sim_both = (tariff_exp_sim+tariff_imp_sim)/2 regress ln_trade tariff_sim_both ln_distance contig comlang_off comcol i.exporters i.importers, robust cluster(dist)

Dummies and Fixed Effects in STATA Option 1: enter the dummies manually and use OLS: egen exporters=group(exp) egen importers=group(imp) regress ln_trade tariff_sim_both ln_distance contig comlang_off comcol /// i.exporters i.importers, robust cluster(dist) Option 2: use a panel estimator (OLS + a trick) to account for one set of dummies: xtset exporters xtreg ln_trade tariff_sim_both ln_distance contig comlang_off comcol /// i.importers, robust fe With the same clustering specification, results should be identical between regress with dummy variables and xtreg, fe

Note: xtreg can only include fixed effects in one dimension. For additional dimensions, enter the dummies manually. For FE with more than 1 dimension: reghdfe --estimation of a Linear Regression Model with multiple dimensional Fixed Effects ivreg2hdfe-- estimation of a linear IV regression model with two high dimensional fixed effects.

Trade potential in Gravity

Identifying trade potential The OLS estimates give the prediction of average trade level. Actually, some countries trade more than average, while others trade less than average. Some of the literature uses the sign and size of the error term to examine trade potential. 25

Identifying trade potential Estimating trade potential ln X ij b0 b1 ln( Yi ) b2 ln( Yj ) b3 ln( t ij )... e ij Fist step: estimate the model to get estimated coefficients Second step: Use estimated coefficients give predicted Xij ln Xˆ ˆ ˆ ln( ) ˆ ln( ) ˆ ij b0 b1 Yi b2 Yj b3 ln( tij )... Third: Trade potential is the gap between predicted and actual Xij 26

qui regress regress ln_trade ln_tariff_imp_sim ln_gdp_exp ln_gdp_imp ln_distance /// comlang_off comcol, robust cluster(dist) predict ln_tradehat gen tradehat = exp(ln_tradehat) gen tradeerror = trade-tradehat list tradeerror exp_name imp_name if exp=="mng" & tradeerror ~=. 27

qui reghdfe ln_trade ln_distance comlang_off comcol ///, absorb (exporters importers) vce(cluster dis) predict ln_tradehat2 gen tradehat2=exp(ln_tradehat2) /***exp(ln_x)=x***/ gen tradeerror2=trade-tradehat2 list tradeerror2 exp_name imp_name if exp =="MNG" & tradeerror2 ~=. 28

Identifying trade potential Actual Trade- Predicted trade << 0 (Large negative errors: A country could be trading more based on their economic and geographical fundamentals Something is holding back trade. Positive errors:?? Keep in mind Junk-in, Junk-out The error term include also statistical noise and measurement error. Do not overemphasized trade potential estimated by gravity model. It may just give a first idea of what is going on with particular trade relationships. Things need to work in details of what is holding back trade. 29

Issues about FEs

Sectoral gravity models Dummy variables need to be specified in the importersector, exporter-sector, and sector dimensions, because: In addition, trade costs need to be interacted with sector dummies in order to take account of varying elasticities of substitution across sectors.

Depending on the level of sectoral disaggregation used, this approach can result in huge numbers of parameters. Models can take a long time, and a big computer, to estimate. It is usually much easier to estimate separate models for each sector.

Gravity (FE) models with panel data Panel data (cross-sectional time-series data) are data where multiple cases (people, firms, countries etc.) were observed at two or more time periods MTRs vary over time. So, ideally, the gold standard specification is using pair, importer-time and exportertime fixed effects and identifies the effect of bilateral time-varying variables. The model contains a huge number of dummies. They are always perfectly collinear with policy variables.

Disadvantages of the FE approach Losing insights on interested policy impacts Dimensionality constraints A large number of dummies if running a sectoral gravity model: Dummies for sectors, exporter-sector, and importer-sector. A larger number of dummies if they are time-variant A trick: reduce dimensions by estimating separate models for each (major) dimension.

Dealing with policy variables

Baier and Bergstrand (BB) Approach Taking account of MTR without using dummies (Policy) variables that varies by exporter or importer can be directly included Doing a 1 st order Taylor series approximation of the MTR terms.

BB (2009) approach Original form of Theoretical Gravity Baier and Bergstrand transformation by using the 1 st order Taylor series approximation of MTR: weighted by GDP shares k i Y Y k i k

BB estimation procedures 1. Calculate the weight terms 2. Calculate log ij * for EACH trade-cost variable ln dist contig * ij * ij ln dist ij contig ij i i ln i i dist contig ij ij j j j contig j ln dist ij ij i i j j i i j contig j ln dist ij ij 3. Estimate the BB gravity model with OLS

Points to keep in mind Need to apply the Taylor approximation to ALL variables in the trade cost function Possible endogeneity problems when using GDP weights BB (2009) recommend using simple averages rather than the GDP-weighted averages

BB with simple averages in Stata Find the weight term: k i 1 N k i Calculate log ij * egen temp1 = mean(ln_distance), by (exp sector) egen temp2 = mean(ln_distance), by (imp sector) egen temp3 = sum(ln_distance), by (sector) gen ln_distance_star = ln_distance - temp1 - temp2 + (1/(58*58))*temp3

BB with simple averages in Stata Note: we assume, for brevity, distance is the only trade cost variable. A simplified BB model A simplified FE model

Reference Empirical examples uses the Uncomtrade dataset on bilateral trade in goods downloaded from WITS. The original trade data has been reaggregated and compiled by to include GDP data are from the WDIs. Geographical data are from CEPII. Tariff data are from UNCTAD s TRAINS database downloaded from WITS). The completed lists of references are provided in the reading list

Thank you! Training materials of this session are drawn largely from Ben Shepherd (2012). Available at http://www.unescap.org/tid/pu blication/tipub2645.asp