---
title: Estimating Policy Barriers to Trade
author:
- name: Brendan Cooley
affiliation: Ph.D. Candidate, Department of Politics, Princeton University
date: 18 May 2020
abstract: To what extent is international trade free and fair? Because policy barriers to trade are often opaque and take on many forms, it is difficult to answer this question while relying on data on observable trade barriers. Here, I propose and implement a structural approach to estimating the magnitude of policy barriers to trade, measured at the trade partner level. The method allows for the possibility that these barriers are both *asymmetric* and *discriminatory*, affecting certain trade partners disproportionately. The approach reveals substantial latent policy barriers to trade, many times larger than observed tariffs. It also implies substantial effective policy discrimination, with exporters in a subset of favored countries enjoying far superior market access conditions than their peers in unfavored countries. Combined, these results suggest that the existing world trading system remains far from a free and fair ideal.
thanks: Princeton's Research Program in Political Economy provided financial support for this research. The World Bank's International Comparison Program kindly shared data. Thanks to Jim Bisbee, Christina Fattore, Haosen Ge, Gene Grossman, Gleason Judd, Kathy Ingram, Sojeong Lee, Aurora Ling, John Londregan, Marco Martini, Helen Milner, Sayumi Miyano, Steve Monroe, Tim Peterson, Sondre Solstad, Kris Ramsay, Steve Redding, Noam Reich, Esther Robinson, Alexandra Zeitz, and Grace Zeng for comments on earlier drafts of this paper, as well audiences at the Princeton Political Economy Graduate Colloquium, the Princeton IR Graduate Seminar, Princeton's Fellowship of Woodrow Wilson Scholars, the Midwest Political Science Association's 2019 Annual Meeting, the International Studies Association's 2019 Midwest Annual Conference, and the Southern Political Science Association's 2020 Annual Meeting.
# jelcodes: JEL codes go here
bibliography: bib/library.bib
# biblio-style: apsr
csl: "templates/apsa.csl"
papersize: letter
documentclass: article
geometry: margin=1.25in
link-citations: true
output:
fig_caption: yes
citation_package: natbib
---
Is international trade free and fair? For trade to be free, firms must not face government-imposed burdens to foreign market access. I refer to these burdens as policy barriers to trade. For trade to be fair, any policy barriers that do exist must treat products from all origin countries equally.^[Of course, there are many competing conceptions of what a free and fair international trading system should look like. These are the definitions of free and fair I use here.]
Examining tariff rates produces a qualified "yes," on both counts. Despite recent threats to the world trading system,^[See Bown, Chad P. "Is the Global Trade System Broken?" Peterson Institute for International Economics. 8 May 2018.] tariffs remain at historically low rates (less than five percent on most trade [@Baldwin2016]), suggesting trade is relatively free. Moreover, World Trade Organization (WTO) member countries, accounting for the vast majority of the world economy, commit to the principle of nondiscrimination (or most-favored-nation (MFN)) in tariff policy, applying the same tariff rates to the imports of all member countries. At first glance, adherence to this principle suggests international trade is also fair.
However, tariffs are but one instrument by which governments can influence the flow of trade. Direct barriers to trade are imposed at national borders or ports of entry. In addition to tariffs, governments also impose many non-tariff regulations on imports. Often referred to collectively as nontariff measures (NTMs), these regulations require that prospective importers comply with these price controls, quotas, quality and safety requirements, and other rules in order to access foreign markets.^[For studies of these kinds of barriers, see @Mansfield1995b; @Lee1997; @Gawande1999; @Kono2006; @Rickard2012; @Maggi2018.]
Indirect, or "behind-the-border", barriers are economic policies not assessed at the border that nevertheless disproportionately affect imported goods. Government procurement rules often explicitly privilege domestic suppliers, resulting in increased domestic purchases and reduced imports [@Evenett2004; @Kono2014]. Excise taxes, while implemented uniformly on a single good, may primarily fall on imports if targeted at goods with high foreign content.^[Sin taxes on alcohol and cigarettes might distort trade if these products are generally imported.] Subsidies and tax credits made available to domestic firms allow less productive firms to survive, supplanting importers in home markets and reducing trade. The burden of complying with health, safety, and environmental regulations may also fall disproportionately on foreign firms, reducing their sales and distorting trade.
All of these instruments can in principle be targeted to generate de facto discrimation. For example, the MFN principle is enforced at the tariff line level, allowing importers to target duties at products exported by specific countries, without running afoul of WTO rules. Through high agricultural duties, the United States, Europe, and Japan effectively discriminate against the developing world, which specializes in the production of these products [@Anderson2005]. NTMs and behind-the-border barriers can produce effective discrimination in the same manner.
Even armed with data on all such trade-distorting policy instruments, estimating the magnitude of aggregate policy barriers to trade would be challenging. Here, I propose and implement a new method to estimate policy barriers to trade with minimal data requirements. I construct a parsimonious model of international trade subject to frictions, following @Eaton2002.^[In their technology-based model, trade frictions enter as variable costs, introducing a wedge between the price of a good when it leaves an exporting country and when it is sold in an importing country. @Gulotty2020 argues that many of the regulatory barriers discussed above are better conceptualized as fixed costs, applied on firms as a condition for market entry. @Head2014 show that this distinction is important for modeling the effects of trade costs on trade flows. Namely, the elasticity of trade with respect to changes in fixed costs is different than the elasticity governing the responsiveness of trade to changes in variable costs [@Melitz2003; @Chaney2008; @Arkolakis2012]. The presence of fixed costs of exporting have also been used to rationalize the sparsity of the empirical trade flow matrix [@Helpman2008]. Methods developed in @Helpman2008 could in principle be used to separately measure fixed and variable policy barriers to trade.] I show that the magnitude of trade frictions between two countries
The intuition underlying the model is straightforward. Cross-national price gaps inform about the existence of arbitrage opportunities, and imply that large trade flows should exist from countries with low prices toward those with high prices. The extent to which these flows are realized in the data informs about the magnitude of trade costs. If the cost of freight between countries is known, then the component of these costs that cannot be attributed to purely economic frictions can be independently identified. The remaining "missing trade" is attributed to the existence of policy distortions, broadly defined.
The logic behind the approach employed here is also articulated in @Leamer1988. If consumers are homogenous across countries, they will consume the same basket of goods when trade is frictionless (and prices equalize across markets).^[Empirical studies of trade rely heavily on the (dubious) assumption of consumer homogeneity. For a prominent counterexample, see @Fajgelbaum2016. I hold consumers' preferences over tradable goods constant, but allow for heterogeneity in consumers' taste for tradable versus nontradable goods.] Observed heterogeneity in consumption baskets is then informative about the magnitude of trade frictions. Leveraging advances in the structural gravity literature, I am able to empirically connect Leamer's basic insight more tightly to theory.
The results point to far more policy distortion and effective discrimination than would be inferred from the tariff data. Tariff equivalents of implied policy barriers are generically more than an order of magnitude larger than observed tariffs. Moreover, exporters in a subset of favored countries enjoy far superior market access conditions than their peers in unfavored countries.
The trade policy openness attributed to developed countries also depends strongly on the metric used to evaluate openness.^[See @Rodriguez2000, @Dollar2004, and @Tavares2008 for discussions of this phenomenon.] As shown in Figure \ref{fig:triIncome}, there is a negative association between economic development (per capita GDP) and applied tariff rates. This relationship is reversed if trade policy restrictiveness is measured as proposed here. Countries with higher per capita incomes tend to have higher Trade Restrictiveness Indices.^[See Equation \ref{eq:tri}.] This is consistent with @Kono2006 and @Queralt2015, which suggest that developed countries offset tariff reductions with increases in non-tariff direct barriers and (potentially distortionary) domestic taxes.
This paper is most closely related to the international economics literature on the estimation of trade costs, beginning with @Anderson2004. The particular methodology adopted here draws on several studies that link price gaps to these trade costs [@Eaton2002; @Waugh2010; @Simonovska2014; @Sposi2015; @Waugh2016]. I build on these studies by disentangling policy barriers to trade and freight costs, and connecting the implied policy barriers to observable trade policy instruments. A parallel literature focuses on the estimation of trade costs under the assumption that they are symmetric [@Head2001; @Novy2013].^[@Bergstrand2013 provide an alternative method to estimate the asymmetric barriers targeted here.] While transportation costs may be nearly symmetric, policy barriers are less likely to be [@Kono2008; @Tavares2008]. Such estimates therefore average over meaningful policy heterogeneity.
The paper is also related to efforts to use observable barriers to trade to construct indices of trade openness [@Sachs1995; @Anderson1996; @Kee2009]. These observable barriers may be a non-random sample from the universe of protectionist instruments, however. Here, I take advantage of the structure of the theoretical model to infer the magnitude of policy barriers from the price and trade data, rather than attempting to quantify observable barriers. @Hiscox2002 construct country-level measures of aggregate trade openness using a fixed effects approach. @Martini2018 constructs industry-level measures of trade restrictiveness, under the assumption that policy barriers are nondiscriminatory within industry. I sacrifice industry-level granularity in order to assess discrimination in the international trade policy regime.
The fields of comparative and international political economy rely heavily on imperfect measures of trade protectionism. Political economic theories of protectionism generally relates primitives of the economic and political environment to a government's choice of trade policy, broadly construed. In evaluating these theories, however, researchers generally resort to examining observable barriers to trade, such as applied tariff rates, NTM coverage ratios, or simply the volume of trade.^[For a few examples, see @Goldberg1999; @Mansfield2000b; @Milner2005; @Tavares2008; @Kono2009; @Gawande2009; @Betz2017; @Barari2019.] The measure constructed here is arguably closer to the theoretical quantity of interest of many of these studies.
The broad policy barriers recovered here are also the objects that governments seek to influence in international negotiations, particularly in today's era in which tariffs rates are historically low.^[For example, Trans Pacific Partnership (TPP) negotiations focused overwhelmingly on non-tariff liberalization efforts. Fergusson, Ian F. and Brock R. Williams. "The Trans-Pacific Partnership (TPP): Key Provisions and Issues for Congress." 14 June, 2016. Congressional Research Service.] Governments desire foreign market access for the firms whose interests they represent [@Gawande2009; @Ossa2011; @Ossa2012]. Acquiring foreign market access requires dismantling policy barriers to trade, direct and indirect. This places governments in a complex multilateral bargaining game that has attracted the attention of many studies.^[See, for example, @Hirschman1945; @Pollins1989b; @Gowa1993; @Milner1997; @Aghion2007; @Head2010; @Antras2011; @Dube2011; @Berger2013; @Ossa2014.] Evaluating and assessing the outcomes of this game requires measurement of its outcomes -- governments' trade policy choices.
Finally, many argue that international institutions, the WTO and its predecessor General Agreements on Tariffs and Trade (GATT) in particular, structure this bargaining game in important ways [@Bagwell1999; @Maggi1999; @Steinberg2002; @Davis2006; @Carnegie2014; @Bagwell2018b]. GATT signatories committed in principle to convert protective policy measures into tariff-equivalents and subsequently negotiated primarily over tariff barriers [@Bagwell2004]. Theories of international trade institutions generally take this commitment seriously, assuming commitments to reduce tariffs cannot be subsequently "undone" through the implementation of non-tariff or behind-the-border barriers to trade. Statements about the efficacy of the principles of reciprocity and nondiscrimination in achieving efficient outcomes rest on this premise.
I proceed in three steps. The next section specifies a model of international trade and demonstrates how it relates observables to the magnitude of trade policy distortions. I then discuss the data that I use to calibrate the model. Finally, I present the results of this exercise and discuss their implications for the question posed at the beginning of this paper -- is international trade free and fair?
In 2011, tradable goods were, on average, twice as expensive in Japan than in Malaysia.^[See The World Bank, International Comparison Program (ICP)] If trade were frictionless, Malaysian merchants could exploit this price difference by shipping goods to Japan, making more than twice what they would be selling their goods in their home market. Factually, however, Malaysian exporters made up less than one percent of the market for tradables in Japan in 2011. The model explicated below allows me to infer that these prospective exporters must have faced high costs to sell in the Japanese market and to quantify the exact magnitude of these costs. If freight costs are known, then the component of these costs attributable to policy distortions can be recovered separately.
@Eaton2002 and @Waugh2010 show that these forces are related in a simple equation. Let
This relationship between cross national tradable prices, trade flows, and trade costs follows from the competitive framework of @Eaton2002, adapted to the study of trade costs by @Waugh2010. In the model presented below, I modify their underlying framework in order to minimize the conceptual distance between the theory and the data. However, the result is not unique to competitive international economies. Quantitative trade models with market imperfections generate related "gravity" equations that imply the same relationship between prices, trade, and trade costs [@Melitz2003; @Chaney2008; @Costinot2015].
There are
Each consumer values aggregate tradable goods
There is a continuum of tradable varieties, indexed by
Consumer utility over these varieties exhibits constant elasticity of substitution (CES)
\begin{equation} \label{eq:CES}
Q_i = \left( \int_{[0,1]} \tilde{\alpha}{i, h(\omega)}^{\frac{1}{\sigma}} q_i(\omega)^{\frac{\sigma - 1}{\sigma}} d \omega \right)^{\frac{\sigma}{\sigma - 1}}
\end{equation}
with $\sigma > 0$. $\tilde{\alpha}{ik} = \epsilon_{ik} \alpha_k$ is a stochastic preference parameter that modulates country
With expenditure on tradables fixed by the Cobb Douglas upper level preference structure, consumers simply maximize
Every country can produce every tradable variety
Countries require
Exporters pay iceberg costs (
Domestic consumers and producers alike search around the world for the cheapest source of each variety
For national accounts to balance, gross output and gross consumption, inclusive of trade deficits
Total expenditure on tradables is the sum of expenditures from consumers and producers^[Note that expenditure on tradables can be written
This quantity depends on wages everywhere, stored in the vector
Definition: An international equilibrium is a vector of wages
@Alvarez2007 provide an argument for the existence and uniqueness of such an equilibrium. In the unique equilibrium, trade shares satisfy
\begin{equation} \label{eq:Gravity}
\lambda_{ij}(\bm{w}) = \frac{ T_j \left( d_{ij} w_j^{1 - \beta} P_j^{\beta} \right)^{- \theta} }{\Phi_i}
\end{equation}
where
$$
\Phi_i = \sum_j T_j \left( d_{ij} w_j^{1 - \beta} P_j^{\beta} \right)^{- \theta} .
$$
The equilibrium price index in country
The numerator of Equation \ref{eq:Gravity} is a measure of the overall competitiveness of country
To get from the factory gates of a firm located in an exporting country and the market located overseas, goods incur a bevy of costs, both economic and political in nature. Our goal is to recover the proportion of these costs attributable to policy barriers to trade. I assume that trade costs are multiplicatively decomposable into exporter-specific costs,^[This includes both costs associated with transportation within the exporting country and any taxes and regulatory costs that are common to all traders in the country (@Limao2001).] international freight costs, and policy barriers to trade. Note that I do not model heterogeneity in costs common to all traders within importing countries. This framework yields
\begin{equation} \label{eq:tcosts}
d_{ij} = \rho_j \delta_{ij}(\bm{Z}{ij}) \tau{ij}
\end{equation}
where
Figure \ref{fig:tcostsMap} traces the path goods must travel from a factory in country
The problem with taking this equation straight to the data is that it contains unobserved technologies and wages. This would also require taking a stance on several structural parameters. Comparing
If the trade elasticity is known, data on trade shares, relative prices, and freight costs are sufficient to calculate policy barriers to trade,
I present results from a calibration on a set of 24 of the world's largest economies in 2011.^[The list of the economies in the sample is included in Appendix E.] These in-sample countries collectively made up 87 percent of world GDP. I treat the rest of the world as an aggregate outside economy. The calibration requires me to take a stance on a single structural parameter, the Frechét parameter,
Price indices and freight costs estimated below are measured with error. I employ a nonparametric bootstrap to quantify the uncertainty surrounding the implied magnitude of policy barriers. This entails sampling product-level prices and observed freight costs with replacement and recomputing
In order to calculate policy barriers to trade, I require an empirical analogue of the Equation \ref{eq:P}, the country-specific price index. This quantity summarizes the overall level of competition in the economy, summarized in the market price of tradable varieties. Data on cross-national prices comes from the World Bank's International Comparison Program, used to calculate Purchasing Power Parities (PPP).^[@Rao2013 details the underlying data and methodology. @Deaton2010 discusses challenges in working with these data.]
The ICP surveys prices of hundreds of products and services across 146 countries, and chooses product lists to maximize comparability across markets. They also report the share of GDP that is allocated toward purchases of different product categories, termed "basic headings." After using the prevailing exchange rate to convert prices into U.S. dollars, various (largely atheoretical) statistical methods are used to compute internationally comparable price indices across basic headings.^[See @Redding2018 for a discussion of the conditions under which these price indices correspond to their theoretical counterparts.] I classify each basic heading as tradable or nontradable and report the results of this classification in Appendix F.^[@Simonovska2014 undertake the same exercise. My classification differs slightly from theirs.]
I take these basic headings as the empirical analogue to good categories
I plot the distribution of estimated price indices and tradable expenditure shares on tradables that emerge from this procedure against per capita GDPs in Figure \ref{fig:P}. Within my sample, consumers in wealthier countries tend to face higher prices. The total share of consumer expenditure on tradable goods
The theory makes predictions about the share of consumer expenditure that will be devoted to products from each country. In the data, however, I only observe the value of imports at the border. Price distortions due to policy barriers to trade are not included in the valuations of shipments. Let
Substituting this relationship into \ref{eq:tau} gives a modified equation relating observed trade flows, prices, and freight rates to unobserved policy barriers to trade \begin{equation} \label{eq:tauCIF} \tau_{ij} = \left( \frac{\lambda_{ij}^{\text{cif}}}{\lambda_{jj}(\bm{\tau}j)} \right)^{-\frac{1}{\theta + 1}} \left( \frac{P_i}{P_j} \right)^{\frac{\theta}{\theta+1}} \left( \frac{1}{\delta{ij}(\bm{Z}_{ij})} \right)^{\frac{\theta}{\theta+1}} . \end{equation}
Then, to calculate
Note that implicit domestic consumption in Equation \ref{eq:lambda_jj} depends on the magnitude of policy barriers to trade. This is because consumers' expenditure on foreign goods inclusive of policy barriers is greater than the value of these purchases observed at the border. Because
Freight costs are observed for only a subset of my sample. As depicted in Figure \ref{fig:tcosts}, all freight costs I observe cover the cost of shipments from border-to-border. They do not include costs that are incurred during intranational transit (
I build a simple model of the transportation sector in order to estimate freight costs out of sample, using data on observed freight costs and modes of transportation along with geographic covariates. I assume there is a competitive transportation sector in each mode (generating constant freight costs) and that the costs of transportation within a mode depend on dyadic geography. Observing these costs, a continuum of exporters in each country-sector choose the mode with which to ship their products to market abroad. Exporter-specific shocks lead to utilization of all modes by some exporters. This model generates a simple multinomial logistic functional form for predicted mode shares [@Mcfadden1974], which can be estimated given data on predicted freight costs. Predicted freight costs and mode shares can be aggregated to predict total trade costs, which serve as the
There are two limitations of this simple model of the transportation sector. First, @Takahashi2011, @Behrens2011, and @Brancaccio2020 show that there are significant scale economies in international shipping. This contradicts the assumption of elastic supply of transportation services. Moreover, non-freight trade costs may affect the attractiveness of different ports and the prices demanded by transportation services providers. For example, @Brancaccio2020 show that the level of tariffs applied on a countries exports affect its desirability as a shipping destination, affecting the price of freight to that country. This implies that
Accounting for these features of the market for transportation services would add considerable complexity to the framework developed here. Moreover, the simple model I consider produces reasonable out-of-sample fit, and estimated freight costs are small relative to estimated policy barriers. Figure \ref{fig:freight} depicts factual and predicted freight costs for the United States, Australia, New Zealand, and Chile in 2011. The observations for New Zealand and Chile are out of sample -- the model was not trained on these data.^[The model of aggregate freight costs relies on information on transportation mode shares, which were not available for these countries. They do report c.i.f.-f.o.b. ratios, however.] Chile and New Zealand's predicted bilateral freight costs have a mean absolute error of 2 percentage points. Overall, predicted freight costs average 7 percent the value of shipments and are positively correlated with distance.
The results of this exercise reveal substantial unobserved policy barriers to trade. In 2011, across all in-sample markets, exporters faced an average
The model and data jointly suggest that international trade remains far from free, even taking into account unavoidable freight costs. Returning to Equation \ref{eq:tau}, this result suggests that the observed international price gaps and trade flows are inconsistent with a trade barrier-less world, given predicted freight costs. The model suggests that if implied policy barriers were removed, some combination of increases in trade flows and the reduction of price gaps would occur.
International trade is also far from fair. A fair international trading system might allow for trade restrictions, but require that these restrictions affect all trading partners equally. In fact, policy barriers to trade are quite discriminatory. In 2011, the mean within-country standard deviation of
Figure \ref{fig:hm} shows the distribution of directed policy barriers to trade in the data. The latent trade discrimination implemented by the United States is not unique -- openness varies significantly at the importer-exporter level. Clustering countries by the similarity of their trade policy vectors uncovers regional biases in trade policy. I sort countries into economic blocs through a K-means procedure with 3 groups. Pacific countries (East and Southeast Asia and Australasia) are grouped together, as are North and South American countries. The European Union is grouped with Russia and Turkey. Because freight costs are not included in these measures, these economic blocs are not the result of mere geographic proximity. Rather, these countries have undergone political-economic union by reducing policy barriers to trade on one anothers' products.
Figure \ref{fig:tau_ci} plots uncertainty intervals surrounding the magnitude of policy barriers for each importing country in the sample. These intervals are asymmetric around the point estimates due to nonlinearities in the estimating equation (\ref{eq:tau}).
These barriers can be aggregated into two numbers -- a Trade Restrictiveness Index (TRI) and a Market Access Index (MAI) -- that summarize each country's import restrictiveness and international market access conditions, respectively. The TRI is simply a weighted average of the policy barriers an importing country imposes on all other countries, where the weights are the gross tradable expenditures of these other countries.^[I use gross consumption, rather than observed flows, as weights for consistency with the theoretical framework. Trade flows are endogenous to each country's trade policy decisions. In a friction-less world, exporters would capture a constant share of every market's gross expenditure on tradables.] \begin{equation} \label{eq:tri} \text{TRI}i = \frac{1}{\sum{j \neq i} E_j} \sum_{j \neq i} \tau_{ij} E_j \end{equation} Similarly, the market access index is an expenditure weighted average of the barriers that all importing countries impose on the exports of a given country. \begin{equation} \label{eq:mai} \text{MAI}j = \frac{1}{\sum{i \neq j} E_i} \sum_{i \neq j} \tau_{ij} E_i \end{equation} Higher values of the TRI correspond to higher aggregate trade restrictiveness. Conversely, higher values of the MAI correspond to lower aggregate market access (a high tax on a country's exports).
Figure \ref{fig:trimai} plots the TRIs and MAIs jointly. A negative correlation between these indices emerges naturally from the structure of the model. High domestic prices imply arbitrage opportunities, raising the TRI. They also imply high opportunity costs for domestic exporting firms that forgo these high prices. To rationalize these flows, the model infers that these firms must face relatively friendly market access conditions abroad, raising the MAI.
Figure \ref{fig:tcosts} shows that tariffs cannot account for the magnitude of trade protection implied by the model. What, then, is the source of these policy distortions? As discussed in the introduction, governments have a dizzying slate of policy instruments at their disposal which can have direct or indirect effects on trade. Existing studies of trade protection generally leverage these observable proxies of the broader, unobservable, aggregate policy barrier that is the target of this study [@Kee2009].
Such observable proxies include tariffs, but also NTMs and preferential trade agreements (PTAs). NTMs are simply regulations that affect what kinds of products can and cannot be imported. Some NTMs, such as quotas, are rather blunt in their impact, while others, such as health and safety regulations, are more subtle. PTAs usually lower tariff rates beyond WTO commitments within a bloc of signatory countries. Increasingly, these agreements also work to harmonize regulatory environments and reduce "behind-the-border" barriers to trade [@Baccini2019]. If in fact NTMs impede trade and PTAs facilitate trade, they should be correlated with the aggregate policy barriers to trade captured here.
To evaluate this proposition, I gather data on applied tariff rates, NTMs, and PTAs, and run a simple regression to evaluate the correlation between these observable indicators of trade restrictiveness and my metric.
I measure aggregate tariff protection with a trade-weighted average of applied tariff rates, taken from UN Conference on Trade and Development's (UNCTAD) TRAINS database.^[This allows the measure to vary at the trade partner level, as exporters with different product portfolios are differentially exposed to tariff lines.] UNCTAD also tracks the incidence of NTMs in governments official trade regulations. As is standard in the literature on NTMs,^[See, for example, @Anderson2004.] I employ NTM coverage ratios as a measure of aggregate NTM protection. A coverage ratio is simply the proportion of Harmonized System (HS) 6-digit tariff lines that are subject to an NTM. I group NTMs into three categories, price/quota (core), health/safety, and other, and calculate coverage ratios for each category.^[Due to data availability constraints, data for the European Union is taken from 2012, while the rest of the NTM data is taken from 2011. NTM data for South Korea is unavailable, so it is dropped from the analysis.] Finally, I construct a binary indicator that takes the value of one if two countries are members of a bilateral or multilateral PTA, and zero if not, employing the DESTA database [@Dur2014]. I include importer and exporter fixed effects in order to make comparisons relative to mean levels of protection and market access.
\begin{table}[!htbp] \centering \caption{Correlates of Structural Policy Barriers, 2011\label{tab:correlates}} \label{} \begin{tabular}{@{\extracolsep{5pt}}lc} \[-1.8ex]\hline \hline \[-1.8ex] & \multicolumn{1}{c}{\textit{Dependent variable:}} \ \cline{2-2} \[-1.8ex] & Structural Policy Barrier \ \hline \[-1.8ex] Tariffs & 1.194$^{}$ \ & (0.570) \ & \ PTAs & $-$0.316$^{}$ \ & (0.063) \ & \ Core NTM & 0.097 \ & (0.163) \ & \ Health/Safety NTM & 0.171 \ & (0.152) \ & \ Other NTM & $-$0.082 \ & (0.205) \ & \ \hline \[-1.8ex] Importer Fixed Effects & \checkmark \ Exporter Fixed Effects & \checkmark \ Observations & 361 \ R$^{2}$ & 0.876 \ \hline \hline \[-1.8ex] \textit{Note:} & \multicolumn{1}{r}{$^{}$p$<$0.1; $^{}$p$<$0.05; $^{*}$p$<$0.01} \ \end{tabular} \end{table}
The results are shown in Table \ref{tab:correlates}. Estimated policy barriers are positively correlated with observed tariffs. Independently of tariff rate reductions, policy barriers are negatively correlated with the existence of a PTA. This is consistent with PTAs as a tool of "deep liberalization" that reduce trade costs in excess of those imposed by tariffs. In particular, the existence of a PTA is associated with a tariff-equivalent decrease in
In the preceding analysis, the European Union (EU) member states were treated as a single economic entity. Within the EU, goods face few policy barriers to trade. The EU customs union eliminates direct barriers to trade assessed at the border, and regulatory harmonization efforts seek to minimize indirect barriers. For this reason, intra-EU policy barriers to trade should be substantially lower than external barriers. Because the EU documents internal trade and the ICP collects price data for each EU member state, I can test this hypothesis in the data. To do so, I first employ my freight cost model to predict shipping costs within EU member states. European Union policy barriers to trade can then be disaggregated by member state.^[There were 27 members of the European Union in 2011, and Turkey participated in the economic bloc through a customs union. Due to inconsistencies between its trade and national accounts data, I drop Malta from the analysis.]
Figure \ref{fig:hmEUD} depicts the results of this exercise.^[In Appendix D, I reproduce Figure \ref{fig:hm} with the European Union disaggregated and re-implement K-means clustering, with
In the introduction, I noted that richer countries tend to have higher policy barriers to trade, contrary to their relatively liberal tariff regimes. From this fact, some conclude that political institutions in developed countries are more "welfare-conscious" than those in their developing counterparts [@Gawande2009; @Gawande2015]. These results are consistent with an alternative approach, emphasizing state capacity, articulated in @Acemoglu2005b, @Rodrik2008, and @Queralt2015. Here, tariffs emerge as a "second-best" solution to a revenue-raising problem facing low-capacity governments, which struggle to raise revenue through other channels. As capacity grows, governments employ alternative instruments to raise revenues. As shown here, these governments do not necessarily become less protectionist in the process. In fact, they may become more closed to international trade.
Due to the restrictiveness and discrimination inherent in developed countries' trade policies, poor countries also struggle to access international markets, shown in Figure \ref{fig:maiGdppc}. Several studies examining trade costs as a whole replicate this finding, and suggest that this explains some of the variation in cross-national income per capita [@Redding2004; @Romalis2007; @Waugh2010]. These results suggest that even complete tariff liberalization on the part of developed countries would still leave developing countries confronting substantial market access barriers.
The structure of global tariff rates suggests that international trade is relatively free and fair. Does this conclusion extend to non-tariff barriers to trade? I have shown that the policy barriers to trade implied by observed prices, trade flows, and freight costs are quite large and are implemented in a discriminatory manner. In particular, developed countries implement high non-tariff barriers to trade and tend to discriminate against their less-developed trading partners.
I should qualify these conclusions on three counts. First, like most studies of international trade, they are model-dependent. My approach accounts for trade in intermediate inputs, but does so rather bluntly. Global value chains are complex and respond non-linearly to changes in trade costs [@Yi2003], a feature not captured here. The nested CES preferences ascribed to consumers are also rather rigid. This inflexibility may affect the proportion of distortions attributed to trade costs, rather than consumer heterogeneity, a point noted by @Waugh2010. Second, my conclusions depend on the accuracy of the ICP's price data, and on the assumption that producers face the same prices as consumers. If the price level in Japan is factually less than twice that of Malaysia, Japan's implied policy barriers to trade will also fall. Similarly, if intermediate input prices differ systematically from the prices of final goods, this will change my conclusions on the magnitude of policy barriers to trade. Finally, the simple calibration exercise conducted here cannot speak to uncertainty about the magnitude of policy barriers to trade. From the perspective of Equation \ref{eq:tau}, measurement error in prices and trade flows and estimation error in the trade elasticity and predicted trade costs will aggregate to produce a window of uncertainty the true value of
\clearpage
Demand for variety
With constant prices in each basic heading, total spending on goods in category
With the United States as the base country,
I build a simple model of demand for transportation services in order to estimate freight costs. There are
Exporters have preferences over the mode of transit and cost of freight. Let
$$
V_{ij}^{mk} = \tilde{\beta}0 \delta{ij}^{mk}(\bm{Z}{ij}) + \tilde{\beta}k + \eta{ij}^{km}
$$
where $\eta{ij}^{km}$ is a Type-I extreme value-distributed preference shock with
I model
I obtain estimates for
The total free on board (f.o.b.) value of imports of country
Recall that
With these terms defined, total predicted freight costs can be computed as $$ \hat{\delta}{ij} \left( \bm{Z}{ij} \right) = \frac{1}{X_{ij}} \sum_{m = 1}^M x_{ij}^m \sum_{k=1}^K \zeta_{ij}^{m k}\left( \delta_{ij}^{mk}(\bm{Z}{ij}) \right) \delta{ij}^{mk}(\bm{Z}_{ij}) . $$
To estimate freight costs and mode share choice, I employ data from the United States Census Bureau and the Australian Bureau of Statistics on the c.i.f. and f.o.b. values of its imports.^[The Australian data are also used by @Shapiro2016 and @Adao2017.] The ratio of the c.i.f. value of goods to their f.o.b. value can then be taken as a measure of the ad valorem freight cost. I supplement these values with international data on the costs of maritime shipments from the OECD's Maritime Transport Cost Dataset [@Korinek2011]. I also observe the transportation modes of imports (air, land, or sea) to the European Union, Japan, Brazil, Australia and the United States .^[Data from the United States come from the Census Bureau and are available on the website of Peter Schott. Data from the European Union are from Eurostat. Data from Japan are from the government's statistical agency, e-Stat. Data from Brazil come from the ministry of trade and industry. Data from Australia are from the Australian Bureau of Statistics.]
To model the cost of transport via sea, I take sea distances from CERDI [@Bertoli2016]. For land and air distances, I use CEPII's GeoDist database [@Mayer2011].
Parameter estimates for mode-specific freight cost models are reported in the following three tables. Across modes, distance is estimated to significantly increase freight costs. Contiguity is estimated to decrease costs for land and air shipments while increasing costs for seaborne shipments.
\begin{table}[!htbp] \centering \caption{Maritime Cost Model} \label{} \begin{tabular}{@{\extracolsep{5pt}}lc} \[-1.8ex]\hline \hline \[-1.8ex] & \multicolumn{1}{c}{\textit{Dependent variable:}} \ \cline{2-2} \[-1.8ex] & Freight Cost \ \hline \[-1.8ex] CERDI seadist (log, std) & 0.010$^{}$ \ & (0.0002) \ & \ Contiguity & 0.013$^{}$ \ & (0.0004) \ & \ \hline \[-1.8ex] Product fixed effects? & \checkmark \ Cubic time spline? & \checkmark \ Observations & 156,135 \ R$^{2}$ & 0.388 \ \hline \hline \[-1.8ex] \textit{Note:} & \multicolumn{1}{r}{$^{}$p$<$0.1; $^{}$p$<$0.05; $^{}$p$<$0.01} \ \end{tabular} \end{table}
\FloatBarrier
\begin{table}[!htbp] \centering \caption{Land Cost Model} \label{} \begin{tabular}{@{\extracolsep{5pt}}lc} \[-1.8ex]\hline \hline \[-1.8ex] & \multicolumn{1}{c}{\textit{Dependent variable:}} \ \cline{2-2} \[-1.8ex] & Freight Cost \ \hline \[-1.8ex] CEPII distw (log, std) & 0.003$^{}$ \ & (0.0003) \ & \ Contiguity & $-$0.016$^{}$ \ & (0.001) \ & \ \hline \[-1.8ex] Product fixed effects? & \checkmark \ Cubic time spline? & \checkmark \ Observations & 26,455 \ R$^{2}$ & 0.500 \ \hline \hline \[-1.8ex] \textit{Note:} & \multicolumn{1}{r}{$^{}$p$<$0.1; $^{}$p$<$0.05; $^{}$p$<$0.01} \ \end{tabular} \end{table}
\FloatBarrier
\begin{table}[!htbp] \centering \caption{Air Cost Model} \label{} \begin{tabular}{@{\extracolsep{5pt}}lc} \[-1.8ex]\hline \hline \[-1.8ex] & \multicolumn{1}{c}{\textit{Dependent variable:}} \ \cline{2-2} \[-1.8ex] & Freight Cost \ \hline \[-1.8ex] CEPII distw (log, std) & 0.028$^{}$ \ & (0.001) \ & \ Contiguity & $-$0.030$^{}$ \ & (0.002) \ & \ \hline \[-1.8ex] Product fixed effects? & \checkmark \ Cubic time spline? & \checkmark \ Observations & 58,346 \ R$^{2}$ & 0.351 \ \hline \hline \[-1.8ex] \textit{Note:} & \multicolumn{1}{r}{$^{}$p$<$0.1; $^{}$p$<$0.05; $^{}$p$<$0.01} \ \end{tabular} \end{table}
\FloatBarrier
With
I take air transport as the baseline category for the transportation modes model. Price increases in mode
\begin{table}[!htbp] \centering \caption{Mode Share Model} \label{} \begin{tabular}{@{\extracolsep{5pt}}lc} \[-1.8ex]\hline \hline \[-1.8ex] & \multicolumn{1}{c}{\textit{Dependent variable:}} \ \cline{2-2} \[-1.8ex] & (Log) Relative Share \ \hline \[-1.8ex] Predicted Price Ratio & $-$9.039$^{}$ \ & (0.090) \ & \ Sea FE & 1.115$^{}$ \ & (0.013) \ & \ Land FE & $-$1.338$^{}$ \ & (0.017) \ & \ \hline \[-1.8ex] Observations & 145,846 \ R$^{2}$ & 0.263 \ \hline \hline \[-1.8ex] \textit{Note:} & \multicolumn{1}{r}{$^{}$p$<$0.1; $^{}$p$<$0.05; $^{***}$p$<$0.01} \ \end{tabular} \end{table}
\FloatBarrier
\FloatBarrier
\begingroup\fontsize{9}{11}\selectfont
\begin{longtable}{ll}
\toprule
iso3 & Country Name\
\midrule
\endfirsthead
\multicolumn{2}{@{}l}{\textit{(continued)}}\
\toprule
iso3 & Country Name\
\midrule
\endhead
\endfoot
\bottomrule
\endlastfoot
AUS & Australia\
BRA & Brazil\
CAN & Canada\
CHL & Chile\
CHN & China\
\addlinespace
COL & Colombia\
EU & European Union\
IDN & Indonesia\
IND & India\
ISR & Israel\
\addlinespace
JPN & Japan\
KOR & South Korea\
MEX & Mexico\
MYSG & NA\
NZL & New Zealand\
\addlinespace
PER & Peru\
PHL & Philippines\
RoW & Rest of the World\
RUS & Russia\
THA & Thailand\
\addlinespace
TUR & Turkey\
USA & United States\
VNM & Vietnam\
ZAF & South Africa\*
\end{longtable}
\endgroup{}
\begingroup\fontsize{9}{11}\selectfont
\begin{longtable}{rll}
\toprule
Code & Basic Heading & Tradable?\
\midrule
\endfirsthead
\multicolumn{3}{@{}l}{\textit{(continued)}}\
\toprule
Code & Basic Heading & Tradable?\
\midrule
\endhead
\endfoot
\bottomrule
\endlastfoot
1101111 & Rice & \checkmark\
1101112 & Other cereals, flour and other products & \checkmark\
1101113 & Bread & \checkmark\
1101114 & Other bakery products & \checkmark\
1101115 & Pasta products & \checkmark\
\addlinespace
1101121 & Beef and veal & \checkmark\
1101122 & Pork & \checkmark\
1101123 & Lamb, mutton and goat & \checkmark\
1101124 & Poultry & \checkmark\
1101125 & Other meats and meat preparations & \checkmark\
\addlinespace
1101131 & Fresh, chilled or frozen fish and seafood & \checkmark\
1101132 & Preserved or processed fish and seafood & \checkmark\
1101141 & Fresh milk & \checkmark\
1101142 & Preserved milk and other milk products & \checkmark\
1101143 & Cheese & \checkmark\
\addlinespace
1101144 & Eggs and egg-based products & \checkmark\
1101151 & Butter and margarine & \checkmark\
1101153 & Other edible oils and fats & \checkmark\
1101161 & Fresh or chilled fruit & \checkmark\
1101162 & Frozen, preserved or processed fruit and fruit-based products & \checkmark\
\addlinespace
1101171 & Fresh or chilled vegetables other than potatoes & \checkmark\
1101172 & Fresh or chilled potatoes & \checkmark\
1101173 & Frozen, preserved or processed vegetables and vegetable-based products & \checkmark\
1101181 & Sugar & \checkmark\
1101182 & Jams, marmalades and honey & \checkmark\
\addlinespace
1101183 & Confectionery, chocolate and ice cream & \checkmark\
1101191 & Food products nec & \checkmark\
1101211 & Coffee, tea and cocoa & \checkmark\
1101221 & Mineral waters, soft drinks, fruit and vegetable juices & \checkmark\
1102111 & Spirits & \checkmark\
\addlinespace
1102121 & Wine & \checkmark\
1102131 & Beer & \checkmark\
1102211 & Tobacco & \checkmark\
1102311 & Narcotics & \
1103111 & Clothing materials, other articles of clothing and clothing accessories & \checkmark\
\addlinespace
1103121 & Garments & \checkmark\
1103141 & Cleaning, repair and hire of clothing & \
1103211 & Shoes and other footwear & \checkmark\
1103221 & Repair and hire of footwear & \
1104111 & Actual and imputed rentals for housing & \
\addlinespace
1104311 & Maintenance and repair of the dwelling & \
1104411 & Water supply & \
1104421 & Miscellaneous services relating to the dwelling & \
1104511 & Electricity & \checkmark\
1104521 & Gas & \checkmark\
\addlinespace
1104531 & Other fuels & \checkmark\
1105111 & Furniture and furnishings & \checkmark\
1105121 & Carpets and other floor coverings & \checkmark\
1105131 & Repair of furniture, furnishings and floor coverings & \
1105211 & Household textiles & \checkmark\
\addlinespace
1105311 & Major household appliances whether electric or not & \checkmark\
1105321 & Small electric household appliances & \checkmark\
1105331 & Repair of household appliances & \
1105411 & Glassware, tableware and household utensils & \checkmark\
1105511 & Major tools and equipment & \checkmark\
\addlinespace
1105521 & Small tools and miscellaneous accessories & \checkmark\
1105611 & Non-durable household goods & \checkmark\
1105621 & Domestic services & \
1105622 & Household services & \
1106111 & Pharmaceutical products & \checkmark\
\addlinespace
1106121 & Other medical products & \checkmark\
1106131 & Therapeutic appliances and equipment & \checkmark\
1106211 & Medical Services & \
1106221 & Dental services & \
1106231 & Paramedical services & \
\addlinespace
1106311 & Hospital services & \
1107111 & Motor cars & \checkmark\
1107121 & Motor cycles & \checkmark\
1107131 & Bicycles & \checkmark\
1107141 & Animal drawn vehicles & \checkmark\
\addlinespace
1107221 & Fuels and lubricants for personal transport equipment & \checkmark\
1107231 & Maintenance and repair of personal transport equipemnt & \
1107241 & Other services in respect of personal transport equipment & \
1107311 & Passenger transport by railway & \
1107321 & Passenger transport by road & \
\addlinespace
1107331 & Passenger transport by air & \
1107341 & Passenger transport by sea and inland waterway & \
1107351 & Combined passenger transport & \
1107361 & Other purchased transport services & \
1108111 & Postal services & \
\addlinespace
1108211 & Telephone and telefax equipment & \checkmark\
1108311 & Telephone and telefax services & \
1109111 & Audio-visual, photographic and information processing equipment & \checkmark\
1109141 & Recording media & \checkmark\
1109151 & Repair of audio-visual, photographic and information processing equipment & \
\addlinespace
1109211 & Major durables for outdoor and indoor recreation & \checkmark\
1109231 & Maintenance and repair of other major durables for recreation and culture & \
1109311 & Other recreational items and equipment & \checkmark\
1109331 & Garden and pets & \
1109351 & Veterinary and other services for pets & \
\addlinespace
1109411 & Recreational and sporting services & \
1109421 & Cultural services & \
1109431 & Games of chance & \
1109511 & Newspapers, books and stationery & \checkmark\
1109611 & Package holidays & \
\addlinespace
1110111 & Education & \
1111111 & Catering services & \
1111211 & Accommodation services & \
1112111 & Hairdressing salons and personal grooming establishments & \
1112121 & Appliances, articles and products for personal care & \checkmark\
\addlinespace
1112211 & Prostitution & \
1112311 & Jewellery, clocks and watches & \checkmark\
1112321 & Other personal effects & \checkmark\
1112411 & Social protection & \
1112511 & Insurance & \
\addlinespace
1112611 & Financial Intermediation Services Indirectly Measured (FISIM) & \
1112621 & Other financial services & \
1112711 & Other services nec & \
1113111 & Final consumption expenditure of resident households in the rest of the world & \
1113112 & Final consumption expenditure of non-resident households in the economic territory & \
\addlinespace
1201111 & Individual consumption expenditure by NPISHs & \
1301111 & Housing & \
1302111 & Pharmaceutical products & \checkmark\
1302112 & Other medical products & \checkmark\
1302113 & Therapeutic appliances and equipment & \checkmark\
\addlinespace
1302121 & Out-patient medical services & \
1302122 & Out-patient dental services & \
1302123 & Out-patient paramedical services & \
1302124 & Hospital services & \
1302211 & Compensation of employees & \
\addlinespace
1302221 & Intermediate consumption & \
1302231 & Gross operating surplus & \
1302241 & Net taxes on production & \
1302251 & Receipts from sales & \
1303111 & Recreation and culture & \
\addlinespace
1304111 & Education benefits and reimbursements & \
1304211 & Compensation of employees & \
1304221 & Intermediate consumption & \
1304231 & Gross operating surplus & \
1304241 & Net taxes on production & \
\addlinespace
1304251 & Receipt from sales & \
1305111 & Social protection & \
1401111 & Compensation of employees & \
1401121 & Intermediate consumption & \
1401131 & Gross operating surplus & \
\addlinespace
1401141 & Net taxes on production & \
1401151 & Receipts from sales & \
1501111 & Fabricated metal products, except machinery and equipment & \checkmark\
1501121 & General purpose machinery & \checkmark\
1501131 & Special purpose machinery & \checkmark\
\addlinespace
1501141 & Electrical and optical equipment & \checkmark\
1501151 & Other manufactured goods nec & \checkmark\
1501211 & Motor vehicles, trailers and semi-trailers & \checkmark\
1501212 & Other road transport & \checkmark\
1501221 & Other transport equipment & \checkmark\
\addlinespace
1502111 & Residential buildings & \
1502211 & Non-residential buildings & \
1502311 & Civil engineering works & \
1503111 & Other products & \
1601111 & Opening value of inventories & \
\addlinespace
1601112 & Closing value of inventories & \
1602111 & Acquisitions of valuables & \
1602112 & Disposals of valuables & \
1701111 & Exports of goods and services & \
1701112 & Imports of goods and services & \*
\end{longtable}
\endgroup{}
\clearpage
Arel-Bundock V (2018). countrycode: Convert Country Names and Country Codes. R package version 1.1.0, <URL: https://CRAN.R-project.org/package=countrycode>.
Arnold JB (2019). ggthemes: Extra Themes, Scales and Geoms for 'ggplot2'. R package version 4.2.0, <URL: https://CRAN.R-project.org/package=ggthemes>.
Boettiger C (2020). knitcitations: Citations for 'Knitr' Markdown Files. R package version 1.0.10, <URL: https://github.com/cboettig/knitcitations>.
Chang W, Wickham H (2019). ggvis: Interactive Grammar of Graphics. R package version 0.4.5, <URL: https://CRAN.R-project.org/package=ggvis>.
Cooper N (2018). NCmisc: Miscellaneous Functions for Creating Adaptive Functions and Scripts. R package version 1.1.6, <URL: https://CRAN.R-project.org/package=NCmisc>.
Cooper N (2017). reader: Suite of Functions to Flexibly Read Data from Files. R package version 1.0.6, <URL: https://CRAN.R-project.org/package=reader>.
Francois R (2020). bibtex: Bibtex Parser. R package version 0.4.2.2, <URL: https://CRAN.R-project.org/package=bibtex>.
from mda:mars SMD, utilities with Thomas Lumley's RTUAMF (2019). earth: Multivariate Adaptive Regression Splines. R package version 5.1.2, <URL: https://CRAN.R-project.org/package=earth>.
Gloeckner N (2020). olpsR: Algorithms and functions for On-line Portfolio Selection. R package version 0.5.
Henry L, Wickham H (2019). purrr: Functional Programming Tools. R package version 0.3.3, <URL: https://CRAN.R-project.org/package=purrr>.
Hlavac M (2018). stargazer: Well-Formatted Regression and Summary Statistics Tables. R package version 5.2.2, <URL: https://CRAN.R-project.org/package=stargazer>.
Hornik K, Feinerer I, Kober M (2017). skmeans: Spherical k-Means Clustering. R package version 0.2-11, <URL: https://CRAN.R-project.org/package=skmeans>.
Lemon J, Bolker B, Oom S, Klein E, Rowlingson B, Wickham H, Tyagi A, Eterradossi O, Grothendieck G, Toews M, Kane J, Turner R, Witthoft C, Stander J, Petzoldt T, Duursma R, Biancotto E, Levy O, Dutang C, Solymos P, Engelmann R, Hecker M, Steinbeck F, Borchers H, Singmann H, Toal T, Ogle D, Baral D, Groemping U, Venables B (2019). plotrix: Various Plotting Functions. R package version 3.7-7, <URL: https://CRAN.R-project.org/package=plotrix>.
Milborrow S (2019). plotmo: Plot a Model's Residuals, Response, and Partial Dependence Plots. R package version 3.5.6, <URL: https://CRAN.R-project.org/package=plotmo>.
Müller K, Wickham H (2020). tibble: Simple Data Frames. R package version 3.0.1, <URL: https://CRAN.R-project.org/package=tibble>.
Pedersen TL (2019). patchwork: The Composer of ggplots. R package version 0.0.1.9000, <URL: https://github.com/thomasp85/patchwork>.
R Core Team (2019). R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna, Austria. <URL: https://www.R-project.org/>.
Ripley B (2016). nnet: Feed-Forward Neural Networks and Multinomial Log-Linear Models. R package version 7.3-12, <URL: https://CRAN.R-project.org/package=nnet>.
Sievert C, Parmer C, Hocking T, Chamberlain S, Ram K, Corvellec M, Despouy P (2020). plotly: Create Interactive Web Graphics via 'plotly.js'. R package version 4.9.2.1, <URL: https://CRAN.R-project.org/package=plotly>.
Slowikowski K (2019). ggrepel: Automatically Position Non-Overlapping Text Labels with 'ggplot2'. R package version 0.8.1, <URL: https://CRAN.R-project.org/package=ggrepel>.
Snow G (2016). TeachingDemos: Demonstrations for Teaching and Learning. R package version 2.10, <URL: https://CRAN.R-project.org/package=TeachingDemos>.
Wickham H (2019). forcats: Tools for Working with Categorical Variables (Factors). R package version 0.4.0, <URL: https://CRAN.R-project.org/package=forcats>.
Wickham H (2019). stringr: Simple, Consistent Wrappers for Common String Operations. R package version 1.4.0, <URL: https://CRAN.R-project.org/package=stringr>.
Wickham H (2017). tidyverse: Easily Install and Load the 'Tidyverse'. R package version 1.2.1, <URL: https://CRAN.R-project.org/package=tidyverse>.
Wickham H, Bryan J (2019). readxl: Read Excel Files. R package version 1.3.1, <URL: https://CRAN.R-project.org/package=readxl>.
Wickham H, Chang W, Henry L, Pedersen TL, Takahashi K, Wilke C, Woo K, Yutani H, Dunnington D (2020). ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics. R package version 3.3.0, <URL: https://CRAN.R-project.org/package=ggplot2>.
Wickham H, François R, Henry L, Müller K (2020). dplyr: A Grammar of Data Manipulation. R package version 0.8.5, <URL: https://CRAN.R-project.org/package=dplyr>.
Wickham H, Henry L (2019). tidyr: Tidy Messy Data. R package version 1.0.0, <URL: https://CRAN.R-project.org/package=tidyr>.
Wickham H, Hester J, Francois R (2018). readr: Read Rectangular Text Data. R package version 1.3.1, <URL: https://CRAN.R-project.org/package=readr>.
Wilke CO (2018). ggridges: Ridgeline Plots in 'ggplot2'. R package version 0.5.1, <URL: https://CRAN.R-project.org/package=ggridges>.
Xiao N (2018). ggsci: Scientific Journal and Sci-Fi Themed Color Palettes for 'ggplot2'. R package version 2.9, <URL: https://CRAN.R-project.org/package=ggsci>.
Xie Y (2019). knitr: A General-Purpose Package for Dynamic Report Generation in R. R package version 1.25, <URL: https://CRAN.R-project.org/package=knitr>.
Zeileis A, Croissant Y (2018). Formula: Extended Model Formulas. R package version 1.2-3, <URL: https://CRAN.R-project.org/package=Formula>.
Zhu H (2019). kableExtra: Construct Complex Table with 'kable' and Pipe Syntax. R package version 1.1.0, <URL: https://CRAN.R-project.org/package=kableExtra>.