1 Introduction

The past few decades have witnessed an accelerated pace of economic integration, reflected by a very rapid growth in cross-border commercial trade and capital flows.Footnote 1 Trade and capital flows have increased dramatically during the last decades, as shown in Fig. 1a. As a result, financial assets and liabilities have shown a threefold increase since the early 1990s.Footnote 2 At the same time, industrial specialization—the domination of economies by a limited number of industries—has steadily increased since 1985, as shown in Fig. 1b.

The reduction or, in some cases, complete elimination of trade and financial barriers has significantly reduced the costs of international transactions. The resulting enhanced mobility of production factors has facilitated the re-location of production across sectors and geographical spaces. The recent increases in specialization suggest that the effect of trade and financial openness has been a reorientation of most economies towards a more concentrated industry structure.

Fig. 1
figure 1

Developments in openness and specialization. Note: Both graphs are weighed by the country size, based on authors’ own calculations from a sample of 31 countries, see Table 4 in the “Appendix”

An interesting question that arises is what are the linkages between openness and industrial specialization? Increased specialization is desirable, as it enhances efficiency and competitiveness of a country and consequently has significant welfare implications (Eckel 2008).Footnote 3 However, countries with specialized production structures are more vulnerable to asymmetric shocks—an issue of particular importance for monetary union country members. Trade and financial openness can both shape the dynamics of industrial specialization, creating potentially more (a)symmetric responses to the presence of a shock. Financial openness, for example, may contribute to industrial specialization, as firms can borrow from abroad to differentiate their production, but it also facilitates better risk sharing opportunities, as the borrowing risk is shared across different countries.Footnote 4 Therefore, understanding the nature of the relationship between economic integration and industrial specialization is important, both for economists and policy makers.

So far, the literature has typically studied the roles of trade and financial openness in isolation. A large strand of the literature has explored the relationship between trade openness and specialization. Early trade theories predict that the reduction of trade costs tends to increase inter-industry trade, i.e., trade of goods across industries. The main argument is that the former facilitates the way countries exploit comparative advantages due to cross-country differences in technology or factor endowment (Ricardo 1817; Ohlin 1933), which in turn results in divergence of production structures across countries. New trade theories (Krugman 1979, 1980; Krugman and Venables 1990), however, stress the importance of increasing returns to scale and product differentiation in facilitating intra-industry trade, i.e., trade of goods across countries that belong to the same industry. As a result, these theories predict that trade integration will induce a shift of increasing-return industries towards countries with good market access (“the core”), i.e., the home market effect. Theories of new economic geography (Krugman 1991; Venables 1996) emphasize spatial agglomeration forces in shaping specialization patterns and suggest a non-monotonic relationship between trade liberalization and location of economic activities, depending on the level of trade costs.Footnote 5

A separate and smaller strand of literature investigates the relationship between financial openness and industrial specialization. This literature argues that with financial openness countries are better-protected against idiosyncratic risks and consequently can specialize more.Footnote 6 The seminal study of Kalemli-Ozcan et al. (2003) investigates the relationship between risk sharing from financial openness and production specialization. The authors find a positive and robust link between risk sharing and specialization among regions in the USA, as well as across some OECD countries. Basile and Girardi (2010) use more advanced estimation methods, allowing for non-linearity and spatial dependence, and confirm a similar positive relationship across European regions. Although Kalemli-Ozcan et al. (2003) acknowledge and control for the potential impact of trade openness on specialization, the effect of trade openness in conjunction with financial integration as joint determinants of specialization is not explicitly examined in both studies.Footnote 7

The purpose of this paper is to investigate the relationship between openness and industrial specialization in a comprehensive manner for a large set of countries using a detailed sample of manufacturing industries. Our sample consists of 20 manufacturing industries in 30 countries over the period 1970–2011.

More particular, the paper aims to answer two important questions. The first, and most basic question, is how does openness relate to industrial specialization? To answer this question, we first consider two separate channels of openness, trade and financial openness, and examine their relationship with production specialization. Next, we find out whether trade-induced specialization is less prevalent if intra-industry trade dominates, as specialization in the latter case occurs mainly within the same industry (Krugman 1980). Finally, we investigate whether the relationship between financial openness and specialization is stronger in countries with more developed financial systems (Masten et al. 2008).

The second question we ask is to what extent trade and financial openness complement each other in shaping industrial specialization. To answer this question, we examine the relationship between trade (financial) openness on specialization, conditional on the level of financial (trade) openness. In doing so, we also explore whether the composition of financial flows matters, i.e. the relative shares of portfolio equity, foreign direct investment (FDI) and external debt. Portfolio equity and FDI flows are perceived to be more conductive to risk sharing (Kose et al. 2009b), whereas debt flows are more prone to sudden stops, triggering economic crises. Thus, it would be desirable for (emerging) countries to reduce their reliance on debt finance and increase the importance of equity and FDI finances (Rogoff 1999). We use various instruments for both openness measures and appropriate econometric techniques to enhance robustness of our results, explore threshold effects and to avoid endogeneity problems.

Our work relates to various strands of literature. We contribute to the literature that explores the patterns of industrial structures across countries and infers whether changes of patterns reflect ongoing economic integration (Krugman 1991; Sapir 1996; Brülhart 2001; Longhi et al. 2003; Riet et al. 2004). In this literature, trade and financial integration are mostly latent, at best, captured by a linear time trend (Longhi et al. 2003). Our paper explicitly considers the roles of trade and financial openness, allowing for interaction between both channels.

We also contribute to a number of recent studies that investigate the dynamic impact of trade openness on specialization patterns. For instance, Beine and Coulombe (2007) study the impact of trade liberalization between Canada and the USA, measured by the decrease in trade-weighted tariffs, on the degree of industrial specialization for Canadian regions. Their results favor a positive short-run relationship and a negative long-run relationship between trade integration and industrial specialization, i.e., short-run specialization and long-run diversification. Crabbé et al. (2007) perform a similar analysis for thirteen CEEC countries and show that trade integration leads to long-run specialization.Footnote 8 An important element missing in all aforementioned papers is financial openness, which is explicitly taken into account here.

We further relate to a handful of studies that have attempted to unify different strands of literature to analyze the effect of trade and financial openness on specialization. For example, the study of Imbs (2004) examines the complex relationships between trade, finance, specialization and business cycle synchronization in the context of a system of simultaneous equations based on a cross-sectional country-pair setting in 24 countries.Footnote 9

Our paper builds on these earlier contributions, mainly on Imbs (2004) and Kalemli-Ozcan et al. (2003, 2004). In contrast to those papers, this paper treats trade and financial openness as multilateral rather than bilateral phenomena (Imbs 2006), thus chooses country-year instead of country-pair as the unit of our analysis, and discusses the complementarity of trade and financial openness as channels of specialization. The panel-based estimation techniques used here exploit both time-series as well as cross-section variations and are well suited to solve endogeneity issues, thus yielding more efficient estimates. The empirical analysis is based on a sample that consists of manufacturing industries, twice as disaggregated as those used in past related studies (Kalemli-Ozcan et al. 2003), and a time span that is more extensive than that of previous studies (Imbs 2004; Basile and Girardi 2010).

Our results reveal that financial openness, to a less extent trade openness, has a positive relationship with specialization (Kalemli-Ozcan et al. 2003; Basile and Girardi 2010; Imbs 2004). Whereas intra-industry trade lowers the impact of trade openness on specialization, financial development strengthens the effect of financial openness on specialization.

In addition, we find that both channels of openness enhance each other. In particular, we find that the positive relationship between financial openness and specialization only exists when countries are sufficiently open to trade. This finding extends and complements those of Imbs (2004). Furthermore, portfolio equity, FDI and debt are all useful instruments for attaining the risk sharing benefits associated with financial openness, consequently inducing specialization. These results are robust to alternative model specifications and the use of a range of different measures of openness and specialization.

Our findings highlight that policies for (further) trade and financial integration should be jointly designed for countries to fully seize the benefits of specialized production structures, economies of scale and increased efficiency. However, countries with specialized production structures are more vulnerable to asymmetric shocks. The latter is of particular interest for the Eurozone, where well-functioning risk-sharing mechanisms can secure the benefits of specialization.

The remainder of the paper proceeds as follows. Section 2 exposes the model(s) under estimation and the econometric strategy. Section 3 presents the data and the measures proposed. Section 4 discusses the results. Finally, Sect. 5 summarizes and concludes.

2 Methodology

This section presents the empirical specifications and discusses the estimation strategies followed.

2.1 Model specification and theoretical considerations

To answer our first question, regarding the (independent) effects of trade and financial openness on specialization of production, we start with the following specification:Footnote 10

$$\begin{aligned} S_{it}= \mu _i + \beta _1 T_{it} + \beta _2 F_{it}+ \beta ^\prime Z_{it} + \varepsilon _{it}, \end{aligned}$$
(1)

where i denotes the country and t time; S is a specialization index; \(\mu _i\) is country-specific fixed effect; T and F capture the degree of trade and financial openness, respectively; \(\beta ^\prime \) is a \(1\times n\) parameter vector; Z is an \(n \times 1\) vector of control variables; and, finally, \(\varepsilon _{it}\) is the error term. All variables are in logs.Footnote 11

Most classical trade theories, with reference to the theory of comparative advantage, predict that trade openness leads to more industrial specialization and accordingly we expect a positive \(\beta _1\). Falling trade costs result in a narrowing non-traded sector, and therefore it is cheaper to import goods rather than produce them domestically (Dornbusch et al. 1977). Thus, resources are freed up and used more intensely in fewer activities.

Financial openness may induce specialization through risk-sharing. Open and integrated financial markets offer a broader range of financial instruments and permit the diversification of ownership via two types of insurance. First, if residents in one country hold debt and equity claims on the output of the other country, then the dividend, interest and rental income derived from these holdings contribute to smoothing the effects of output shocks across countries. It is thus a form of ex ante international insurance. Second, to achieve consumption smoothing, households in each country can ex post adjust their asset portfolios, following the occurrence of shocks in the region. Again, this will lead to income smoothing in all countries. Once insurance is available through trade in financial assets, each country will have a stronger incentive to specialize in fewer forms of production (or technology) in order to fully exploit economies of scale or technological competitive advantages. Therefore, \(\beta _2\) is expected to carry a positive sign (Kalemli-Ozcan et al. 2003; Basile and Girardi 2010).

The vector Z contains a number of control variables that have been commonly used in the relevant literature. These variables capture the country size and the stage of its economic development. More specifically, country size is measured by population. A large country may foster a broader range of industrial productions and thus has a more balanced industrial structure, whereas the opposite could be the case for a small country. Consequently, the coefficient for country size is expected to bear a positive sign, as small countries are more likely to specialize. The stage of economic development is measured as GDP per capita, and the square of GDP per capita to allow for possible nonlinear effects between economic development and specialization. For instance, Imbs and Wacziarg (2003) argue that specialization is likely to change along the development path of a country. They provide robust evidence that countries experience two stages of diversification. At low levels of per capita income, countries reduce their overall specialization to mitigate the adverse effect of sector-specific shocks, while when per capita income reaches a high level, countries specialize again to fully exploit the comparative advantage.Footnote 12

Recent evidence (e.g. Kose et al. 2006, 2009a) has demonstrated that trade and financial openness are closely related phenomena as they tend to move closely together and countries often cannot opt for trade (financial) integration independently of their degree of financial (trade) integration.

Therefore, to address our second question, which is to what extent financial (trade) openness acts as a moderator to the effect of trade (financial) openness on specialization, we introduce an interaction term (\(T\times F\)):

$$\begin{aligned} S_{it}=\mu _i + \beta _1 T_{it} + \beta _2 F_{it}+ \beta _3T_{it}\times F_{it}+ \beta ^\prime Z_{it}+ \varepsilon _{it}. \end{aligned}$$
(2a)

In Eq. (2a), we allow the relationship of one type of openness with specialization to be moderated by the other type of openness. The marginal effect of trade (financial) openness on specialization is now conditional on financial (trade) openness, as shown in Eqs. (2b) and (2c), respectively:

$$\begin{aligned}&\frac{\partial S_{it}}{\partial T_{it}} = \beta _{1} + \beta _{3}F_{it}, \end{aligned}$$
(2b)
$$\begin{aligned}&\frac{\partial S_{it}}{\partial F_{it}} = \beta _{2} + \beta _{3}T_{it}. \end{aligned}$$
(2c)

According to classical theories of trade, international trade works as a substitute for capital flows as trade reduces the incentives for capital to flow to capital-scarce countries. However, recent theoretical and empirical evidence offers and confirms a number of reasons that support the complementarity between trade and financial openness.

On the one hand, trade openness may foster financial openness, either by creating demand for symmetric financial flows or by promoting FDI in export-oriented sectors. The rapid growth of FDI and the establishment of multinational firms further drive the demand for financing, as those firms increasingly turn to banks and the stock exchange to raise funds, thus contributing to growing financial flows.Footnote 13

On the other hand, financial openness may promote specialization via risk sharing or by facilitating the reallocation of capital to sectors that have a comparative advantage, therefore increasing the opportunities for trade (Feeney 1994a, b). Antràs and Caballero (2009) model trade and capital flows as complements, especially in less financially developed economies, as trade integration increases the return to capital and capital inflows to these countries. This complementary relationship has also been confirmed empirically by a number of studies.Footnote 14 In line with this literature, we expect the impact of trade (financial) openness on specialization to increase with the degree of financial (trade) openness, resulting in a positive \(\beta _{3}\) in Eqs. (2b) and (2c).

2.2 Estimation procedure

We use the two-step GMM estimator to extract consistent and efficient estimates of the various model specifications discussed above. With the two-step GMM estimation procedure, we can control for country-specific heterogeneity, non-stationarity of variables and possible endogeneity (reverse causality) of the regressors.Footnote 15 As a result, we are able to examine causal effects that most other related studies ignore. In particular, if there is reverse causality from specialization to trade and financial openness, this poses serious challenges to the validity and inferences of the estimates. For example, Imbs (2004) finds a negative relationship running from specialization to trade, as a result of intra-industry trade. Similarly, financial openness is likely to be an endogenous variable based on the argument that more specialized countries demand more international insurance and are therefore more likely to engage in financial integration. We alleviate this endogeneity concern by using lagged levels to instrument the endogenous variable in the first-difference equation. Bellemare et al. (2017) postulate that researchers should be careful for using lagged explainatory variables for identification purpose. There are two situations under which lagging an explanatory variable purges the estimate of endogeneity: (1) serial correlation in endogeneous variables; (2) no serial correlation among the unobserved sources of endogeneity. Given that these conditions are unlikely to be met with certainty, for each country, we construct the average of its neighboring countries’ trade (financial) openness (AT and AF) as alternative instruments. These two instruments allow us to exploit the (time-varying) exogeneity of this variable to identify the effects of trade and financial integration on specialization, following Baltagi et al (2009) and alleviate the concern of exclusively relying on lagged levels as instruments, thereby ensure the the validity of the estimation results. For comparison, we also report OLS estimates.

To check the consistency of our estimates, we employ various diagnostic tests. First, we perform a Durbin–Wu–Hausman (DHW) endogeneity test in order to examine whether trade and/or financial openness is indeed endogenous in our model(s). Then, we ensure the validity of the instruments used to overcome reverse causality issues. The key exogeneity assumption in our context is that a country’s historical levels of trade are orthogonal to current shocks to specialization. Therefore, lagged variables must be uncorrelated with the error term in the level equations. To see whether this assumption holds, we apply a Arellano–Bond serial correlation test.Footnote 16 The usage of multiple instruments allows us to perform a Hansen test of over-identifying restrictions. Then, the Kleibergen–Paap rk test is used to examine whether the endogenous regressor is well identified by the instruments. Lastly, we employ the Anderson–Rubin weak-identification-robust test. The last two tests ensure the relevance and strength of our instruments.Footnote 17

3 Data

In answering the questions posed in this paper, we face a number of data considerations. First, having a sufficiently disaggregated set of industries is important to avoid aggregation issues when measuring specialization. Put bluntly, at a higher level of aggregation, countries’ industrial structures will appear alike by construction. A second consideration for the purpose of our analysis is the fact that we require a relatively broad set of countries to ensure sufficient variation in specialization patterns. Third, trade and financial openness are complex processes that require time to develop.Footnote 18 Since reverse causality may be an issue, a long time span allows for a deeper lag structure and more appropriate instruments.

Table 1 Descriptive statistics

Our empirical analysis covers an unbalanced panel of 20 2-digit manufacturing industries in 30 countries during the period 1970–2011, the longest period for which data are available for the largest amount of countries. We focus on manufacturing industries on the premise that these industries, in contrast to services, are involved in trade and are therefore more responsive to trade integration.

We ensure that the number of sectors available through time is constant across countries, while coverage across time varies per country. This way, both within-country and cross-country changes in specialization can be compared and interpreted in a consistent manner. Table 4 in “Appendix A” lists the 30 countries and the corresponding time span. Table 5 in “Appendix A” reports the 20 industries and their NACE codes considered in our analysis. Annual raw data are retrieved from various sources.

Below, we present the construction of our variables and their sources.

3.1 Industrial specialization

Our primary index of specialization (S) is the Gini coefficient, which measures the degree of concentration or inequality of the distribution of sector shares in an economy (Gini 1921) and is defined as follows:Footnote 19

$$\begin{aligned} S=\frac{2}{n^2\cdot \overline{s}}\sum _{j=1}^nj(s_j-\overline{s}), \end{aligned}$$
(3)

where j denotes the sector, n denotes the number of sectors, s represents the share of each sector, and \(\overline{s}\) refers to the average sector share. The index ranges from zero, where all sectors have an equal share of total manufacturing value added implying a perfectly diversified economy, to one, where only one sector produces all manufacturing value added, reflecting a strongly specialized economy. To check the robustness of our results, we also use two other indices of industrial specialization often used in the conventional literature. These indices are the Herfindahl–Hirschman index (HRI), which sums up the square of each sector’s share in the total manufacturing value added of a country, and the coefficient of variation of sector shares (VSI), which is defined as the ratio of the standard deviation to the mean of sector shares in one country.

An important consideration in comparing specialization across countries is the level of aggregation at which the specialization measures are calculated. On the one hand, the lower the aggregation level, the more we risk contaminating our analysis of the openness-specialization nexus by differences in comparative advantage between small and large sectors in each country. To see why, consider a country in which the small sectors have a comparative advantage, compared to the large sectors. An increase in trade openness will then result in less specialization. On the other hand, the higher the aggregation level, the more we risk distorting our analysis of the openness-specialization nexus by picking up the general trend towards a more services oriented economic structure that is common among (most) countries in our sample. Trade openness will then correlate positively with specialization, but without any causality implied.

In this paper, we are interested in examining the industrial specialization patterns that result from changes in trade and financial openness. As a result, we focus on the manufacturing sector (where most international trade takes place), and we use industry-specific data from the EU KLEMS database, OECD structural analysis database (STAN) and the world input–output database (WIOD). We extract annual raw data on nominal value added for 20 NACE industries to compute the specialization indices. Table 5 in “Appendix A” lists all industries included in our index.

Our aim is to ensure that our index of choice, based on 20 NACE industries, minimizes the likelihood of both biases occurring. In order to verify this, we re-calculate the specialization indices using nominal value added and employment, aggregated to 11 NACE industries. In addition, we also take data at the ISIC 3-digit disaggregation (maximum 28 industries), for a subset of countries from the Nicita and Olarreaga (2007) database. The coverage of this database is fairly limited, and the quality of data varies hugely across countries. Therefore, we only use this data source for comparison purposes. Finally, we also calculate a specialization index at the highest aggregation level, with agriculture, services and manufacturing as the three sectors of the economy. Table 4 in “Appendix A” shows the Gini coefficient and its changes over time for each country in our sample. We find that Ireland, Cyprus and Latvia are the most specialized countries in our sample, whereas USA, UK and Austria are the least specialized ones. Ireland, USA and Slovenia experience the most significant increases in specialization, where their Gini coefficients rise by 32.1, 28.4 and 19.1%. The Gini coefficients in Latvia, Estonia and Portugal decrease sharply by 17.7, 14.8 and 11.9%. However, most countries in our sample become increasingly specialized since 1985.

Ideally, we aim to find that our preferred index is positively, significantly correlated with the lower aggregation indices, and not correlated with the highest aggregation index. Figure 4 in “Appendix A” shows scatterplots for the ISIC 3-digit Gini coefficient and the 3-sector Gini, both compared to the 20 NACE Gini coefficient. The latter is indeed positively (0.477) and significantly (at the 1% level) correlated with the ISIC 3-digit Gini coefficient, whereas correlation with the 3-sector Gini coefficient is \(-\,0.077\), and not significantly different from zero.Footnote 20

Therefore, we continue using the 20 NACE Gini coefficient as our main measure of specialization. For robustness purposes, we take into account the higher level sectoral composition changes by examining the openness-specialization nexus in two sub-samples. One includes countries that experience less changes in the manufacturing shares of GDP, whereas the other consists of countries that experience more changes. Finally, as our estimation strategy exploits the changes in specialization (i.e., we estimate in first differences), we do not expect that our results are driven by industry aggregations.

3.2 Trade openness

Our primary measure for trade openness is the ratio of imports plus exports divided by GDP (T). This continuous measure is widely used in the empirical literature. For robustness purposes, we also use the share of imports to GDP (IMP) and the share of exports to GDP (EXP), as well as manufacturing trade as a percentage of GDP (MANT), a narrower measure of trade openness. To construct an instrument for trade openness in each country, we take the average of its neighboring countries’ trade openness (Baltagi et al 2009).

Country-level data of trade volume, imports, exports, manufacturing trade, GDP have been taken from the World Bank World Development Indicators (WDI). Lastly, we also consider the role of intra-industry trade intensity (IIT).Footnote 21 This measure allows for a more explicit test on the impact of trade integration, controlling for the nature of trade. We derive aggregate country-level IIT indicators from the OECD Structural Analysis database (STAN), which is computed using detailed trade data of two- and three-digit manufacturing industries.

3.3 Financial openness

We follow a similar approach with financial openness, where our primary measure F is the ratio of total foreign assets to total foreign liabilities as a percentage of GDP. This stock-based measure is constructed following Lane and Milesi-Ferretti (2007).Footnote 22 As in the case of trade openness, an external instrument for financial openness is also constructed for each country by taking the average of neighboring countries’ financial openness.Footnote 23

To address the issue of whether specific types of capital flows (and corresponding stocks) are more conducive to attaining the risk sharing benefits of financial integration, we construct three disaggregated measures of gross external assets and liabilities relative to GDP: equity (Equity), FDI (FDI) and debt (Debt). Data are retrieved from the Lane and Milesi-Ferretti (2007) database.

3.4 Other variables

To examine how financial development mediates the role of financial openness on specialization, we take liquid liabilities (currency plus demand and interest-bearing liabilities), relative to GDP as a proxy for financial development (FD). This measure is the broadest available indicator of financial development, commonly described as “financial depth”(Levine 1997). We obtain it from the Beck et al. (1999) database.

The vector Z includes country size (Size), measured by the population, as well as GDP per capita (GDPpc) and its squared term (GDPpc2) to characterize the stage of economic development. Total population and GDP per capita (constant 2000 US dollars) are taken from the World Bank World Development Indicators (WDI). For the robustness analysis, we also include three additional control variables to capture country factor endowments, namely the size of agricultural production as a share of GDP (AGRI), total natural resource rents (sum of oil, natural gas, coal, minerals and forest rents) as a percentage of GDP (RES) and education attainment (HC) measured by the average years of schooling for the population aged 25 or over. Agricultural production and total natural resource rents are retrieved from the WDI and years of schooling is retrieved from Barro and Lee (2012) database. We interpolate these authors’ data to obtain annual observations. Lastly, we include total factor productivity (TFP) level (2011 = 1) and the relative price of capital stock, where the level of the US in 2011 is set to 1. Both measures are taken from Penn World Table version 9.0 (Feenstra et al. 2015).

Table 1 summarizes the definitions, sources and descriptive statistics of main variables as well as those used in robustness analysis, respectively. The presentation and discussion of the empirical findings is the subject of the next section.

4 Empirical results

This section presents the empirical results. We examine, first, how trade and financial openness relate to industrial specialization individually and, second, how they jointly relate to industrial specialization.Footnote 24

4.1 Does openness matter for industrial specialization?

We start by investigating the independent impact of trade and/or financial openness on industrial specialization. The results are reported in Table 2. Columns (I), (II) and (III) only consider the role of trade openness. Similarly, columns (IV), (V) and (VI) only include financial openness. In columns (VII), (VIII) and (IX), trade and financial openness are both included, but (not yet) interacted.

Table 2 Does openness matter for industrial specialization?

For every specification, we first report the OLS estimates, in columns (I), (IV) and (VII). However, the OLS estimator yields biased and inconsistent estimates of the causal effect of openness on specialization in the presence of endogenous regressors. Trade and financial openness are endogenous from a theoretical viewpoint due to reverse causality with specialization. Additionally, the DHW statistics often reject the null hypothesis that introducing instruments has no effect on the estimated coefficients and confirm that both trade and/or financial openness are indeed endogenous. We then proceed with the two-step GMM results using the lagged levels of trade and financial openness at \(t-2\), \(t-3\) and \(t-4\) as instruments, in columns (II), (V) and (VIII). The validity of using lags from \(t-2\) as instruments is guaranteed by not rejecting the absence of second-order serial correlation. Next, the Hansen J test does not reject the over-identifying restrictions, confirming the validity of our instruments. Moreover, the Kleibergen–Paap rk test and the Anderson–Rubin test confirm that these specifications are properly identified and do not suffer from under- and weak-identification problems. Lastly, columns (III), (VI) and (IX) replicate (II), (V) and (VIII) with trade and/or financial openness instrumented by the average of neighboring countries’ trade and/or financial openness. We obtain stronger results.

As columns (I)–(III) show, we find a statistically significant (at 1%) positive relationship between trade openness and specialization. However, the Hansen J tests indicate that the instruments used in column (II) and (III) are not valid. Turning to the role of financial openness in column (V)–(VI), we observe a statistically significant positive effect of financial openness on specialization, in line with the risk-sharing rationale put forward by Kalemli-Ozcan et al. (2003). By allowing access to foreign markets, financial integration can bring a wider range of financing sources and investment opportunities, permitting the decoupling of production and consumption via cross-country risk sharing mechanisms and making it less costly for countries to achieve greater specialization. In terms of magnitude, ceteris paribus, a one standard-deviation increase in the (log of) financial integration is associated with an increase in the (log of) Gini coefficient of 0.616 standard deviations. Moreover, the sign, magnitude and significance remain similar after introducing trade openness into the equation in column (VII)–(IX), suggesting that international finance has been an important force in driving increased specialization over time.

In line with past evidence (Imbs and Wacziarg 2003), we do not find a positive coefficient for country size. We find some evidence of a U-shaped relationship between GDP per capita and specialization. In the early stages of development, countries diversify and hold a more balanced structure of economic activities in order to reduce the negative impact of sector-specific shocks. At the later stages of development, countries begin to specialize to fully exploit comparative advantages. However, this result is not robust across all specifications.

Having established that trade and financial openness have a significant relationship with specialization, we are interested in examining whether the strength of this relationship is determined by intra-industry trade (IIT) and financial development (FD), respectively.

Classical trade theories postulate that further trade openness is likely to result in more specialization if trade is predominantly of the inter-industry type. On the contrary, if trade is of the intra-industry type, trade-induced specialization may be weaker, as trade leads countries to concentrate on the production of a limited number of products within the industry.

Fig. 2
figure 2

The role of intra-industry trade intensity and financial development as mediators

In column (X) in Table 2, an intra-industry trade intensity index IIT therefore interacts with trade openness.Footnote 25 The index ranges from zero, indicating pure inter-industry trade, to one, indicating pure intra-industry trade. Both terms are individually and jointly significant at 1%. The DHW statistic confirms that trade openness and its interaction term with IIT are endogenous, so we instrument lagged values at \(t-2\), \(t-3\) and \(t-4\). The absence of second-order serial correlation and the inability to reject the over-identifying restrictions confirm the validity of our instruments. The Kleibergen–Paap rk test and the Anderson–Rubin test suggest that this regression is well specified.

Figure 2a shows the marginal effect of trade openness on specialization, conditional on the intra-industry trade intensity. Consistent with column (VIII), trade openness has a positive relationship with specialization, independent of the level of intra-industry trade. In addition, we find that countries with high levels of intra-industry trade experience less specialization in response to further trade openness than countries with low levels of intra-industry trade. In line with our expectation, intra-industry trade seems to dilute the specialization effect of trade. Financial openness enters with a positive and statistically significant coefficient at the 5% level. The magnitude is comparable to that found in column (V), but considerably larger than that found in column (VIII) in Table 2, confirming the important role of financial openness in driving specialization.

Next, we explore the role of financial development as a facilitator to the relationship between financial openness and specialization. A vast body of existing literature has strongly emphasized that benefits associated with financial openness only become significant at higher levels of financial development.Footnote 26 Financial development facilitates financial openness as domestic financial intermediaries, who distribute international assets, offer a local channel by which investors can gain foreign exposure. The latter may also increase the desire for international diversification. Furthermore, a well-developed financial system is attractive to foreign investors. Thus, financial openness and financial development may be complements in shaping specialization.

In column (XI), a financial development measure (FD) therefore interacts with financial openness. We instrument financial openness using values at \(t-2\), \(t-3\) and \(t-4\). The validity of the instruments is guaranteed by the absence of serial correlation and the inability to reject the over-identifying restrictions. The Kleibergen–Paap rk test and the Anderson–Rubin test confirm the appropriateness of this specification.

Figure 2b shows that the marginal effect of financial openness on specialization is positively associated with the degree of financial development, implying that the effect of financial openness in promoting specialization is larger in countries with more developed financial systems and smaller in those with less developed financial system.

To summarize, three key findings emerge from our analysis so far. First, financial and to a much less extent trade openness are important in explaining variations in industrial specialization across countries. Second, trade-induced specialization is stronger if trade is predominantly of the inter-industry type. Third, the effect of financial openness on specialization is particularly present when the level of financial development is high.

4.2 Are openness to trade and financial openness complements?

So far, we have neglected the possible connection between trade and financial openness in affecting specialization. We now proceed by examining the joint effect of trade and financial openness, as described in Eq. (2a).

The results are shown in columns (I) to (III) of Table 3. Column (I) reports the OLS estimates, which are likely to be biased and inconsistent since they neglect the endogeneity of trade openness, financial openness and their interaction term, as evidenced by the DHW statistic shown in column (III). In column (II), we report two-step GMM estimates where we use trade and financial openness as well as their interaction term using lagged values at \(t-2\), \(t-3\), \(t-4\). Lastly, column (III) applies the average of neighboring countries’ trade and financial openness as instruments. Again, the Arellano–Bond test and Hansen J test guarantee the validity of our instruments. Finally, the Kleibergen–Paap rk test and the Anderson–Rubin test show that Eq. (2a) is properly identified. Therefore, for the rest of our analyses we primarily rely on the estimates in column (III).

Table 3 Are openness to trade and financial openness complements?

To see the role of each type of openness, we have to also consider the interaction effect, which enters with a positive sign, significant at the 1% level, suggesting a complementary relationship between trade and financial openness. In other words, the effect of trade openness is further enhanced by the degree of financial openness, and vice versa.

In order to further assess the strength of each type of openness, we calculate the marginal effect of one type of openness conditional on the other type, based on Eqs. (2b) and (2c). Figure 3a, b illustrates these conditional marginal effects and the corresponding 95% confidence intervals (Brambor et al. 2006).Footnote 27

Figure 3a demonstrates that trade openness always has a positive relationship with specialization, independent of the level of financial openness. To shed more light on the economic nature of the relationship between trade openness and specialization, we can now evaluate Eq. (2b) at the mean, minimum and maximum value of financial openness. The marginal effect of trade openness on specialization at the mean level of financial openness is \(-\,0.375\). When financial openness is at its lowest and we reach the bottom left corner of Fig. 3a, the marginal effect of trade openness is \(-\,0.741\). Finally, when financial integration peaks and we reach the top right corner of Fig. 3a, the effect of trade integration is 0.177.Footnote 28 Summing up, trade openness results in more specialization as countries become more financially integrated. Once risk sharing opportunities—caused by the higher level of financial integration—are sufficient, trade openness appears to induce specialization. This result is also in line with the argument that financial openness facilitates the reallocation of capital to sectors that have a comparative advantage, thus increasing the opportunities for trade (Feeney 1994a, b).

Figure 3b demonstrates that the relationship between financial openness and specialization strongly depends on the level of trade openness. We find evidence of a threshold effect, since the positive effect of financial openness on specialization only occurs when countries are sufficiently open to international trade. The marginal effect of financial integration becomes positive when the log of trade openness is equal to 3.58, corresponding to a trade openness ratio of approximately 35% of GDP. At the mean level of trade openness, the impact of financial integration on specialization is 0.093. When evaluated at the minimum level, the impact takes the value of \(-\,0.212\), while it becomes 0.343 when the level of trade openness reaches its maximum.Footnote 29 This finding provides evidence that growing trade flows create extra demands for international insurances and enlarge the scope for financial openness to have a bigger impact on specialization.

Fig. 3
figure 3

The role of trade integration and financial integration as complements

Our results also relate to a strand of recent research documenting that the level of trade openness matters for the effects of financial openness.Footnote 30 For example, more open economies are found to be less vulnerable to financial crises (Calvo et al. 2004; Edwards 2004a; Cavallo and Frankel 2008). Countries that are more open to trade suffer smaller growth declines than those with a lower degree of trade openness (Guidotti et al. 2004; Edwards 2004b). Such findings are consistent with the notion that trade integration precedes financial integration. In other words, (developing) countries should liberalize trade before they liberalize capital flows. Our results also lend support to this notion as finance-induced specialization can only be realized when a threshold level of trade openness is achieved.

A widespread view from the literature is that the extent of risk sharing achieved via financial integration is not only dependent on the overall size of capital flows, but also on their composition, i.e., the relative shares of portfolio equity, FDI and external debt. Portfolio equity and FDI flows are perceived to be more conductive to risk sharing (Kose et al. 2009b), whereas debt flows are more prone to sudden stops, triggering economic crises. Thus, it would be desirable for (emerging) countries to reduce their reliance on debt finance and increase the importance of equity investments and FDI (Rogoff 1999).

To investigate whether the specific types of capital flows (or the corresponding stocks) have different effects on specialization, we focus on three narrower measures of financial openness, corresponding to the stocks of total portfolio equity (Equity), FDI (FDI) and debt (Debt) relative to GDP, respectively. We re-estimate Eq. (2a) but replace F with Equity, FDI, and Debt. We want to uncover whether portfolio equity and/or FDI flows are more conducive to risk sharing, therefore exerting a greater positive impact on specialization.

Columns (IV), (V) and (VI) in Table 3 report the estimates.Footnote 31 The DHW statistics confirm that trade and financial openness (different types of stocks), together with their interaction term, are indeed endogenous variables. The diagnostic tests again confirm the validity of our instruments and the proper identification of the results.

With the results in columns (IV) to (VI), we also compute the marginal effects of trade openness on specialization at the mean level of portfolio equity, FDI and debt, respectively. In contrast to Kose et al. (2009b) and Rogoff (1999), we find that the marginal effect is largest for debt (0.176), followed by FDI (\(-\,0.03\)) and portfolio equity (\(-\,\)0.078), respectively.

We conduct a series of robustness checks based on Eq. (2a) and demonstrate that our results are insensitive to alternative measures, samples and specifications. In “Appendix B”, we present the details of the robustness checks.

Summing up, we find that trade and financial openness are complementary in their effects on specialization. We find a threshold effect for trade openness as a moderator for the effect of financial openness on specialization.

5 Conclusion

This paper investigates the economic integration–industrial specialization nexus and empirically establishes the direct linkages between trade, financial openness and industrial specialization for a panel of 31 countries over the period 1970–2005.

We contribute to the existing literature by answering two important questions. First, we document the relationship between economic integration and specialization via two separate channels, trade and financial openness. We find a statistically significant and positive relationship between trade openness and specialization, suggesting that further openness to foreign trade induces a more specialized industrial structure, and a statistically significant positive effect of financial openness on specialization, in line with the risk-sharing rationale put forward by Kalemli-Ozcan et al. (2003), and subsequently confirmed by Basile and Girardi (2010) and Imbs (2004). In terms of magnitude, the impact of trade openness appears to be larger than that of financial openness. In addition, our results reveal that trade openness has a stronger relationship with specialization in countries with low levels of intra-industry trade. Financial openness has a stronger relationship with specialization in countries with more developed financial systems, although this complementary effect does not appear to be very strong.

Second, we show that the role of trade (financial) openness is further enhanced by the degree of financial (trade) openness. Our finding indicates that trade and financial openness complement each other in shaping industrial specialization across countries. More importantly, we find that financial openness co-exists with high degrees of specialization only if countries are sufficiently open to trade. These findings extend Imbs (2004) by offering additional insights in understanding trade and financial openness as joint determinants of specialization across countries. Moreover, we find some evidence that portfolio equity, FDI and debts are all effective instruments in complementing trade openness. Overall, our results are robust to a wide range of alternative measures and estimation strategies.

A main implication of our results is the importance of simultaneously deepening trade and financial integration. Countries that exploit integration along both lines can expect to benefit the most from integration, while insuring themselves against idiosyncratic shocks. However, both effects depend crucially on the degree to which trade is intra-industry and the level of development of the domestic financial system. On the one hand, countries with more intra-industry trade and a low level of financial development may not reap great benefits from specialization. On the other hand, countries with large inter-industry trade and a relatively high level of financial development stand to gain the most from increased trade and financial integration, as the former will allow them to reap the fruits of comparative advantage, whereas the latter may improve risk sharing. Finally, our analysis underlines the fact that in the presence of asymmetric shocks, there is still a need for better risk-sharing mechanisms, in particular in the presence of common policy objectives, such as is the case, for example, in the Eurozone.

A clear limitation of our study is the use of country-level data. While a country-level study offers us valuable insights into the relationship between openness and specialisation, in future research, this issue could be examined using industry-level and firm-level data.

A growing strand of theoretical and empirical studies on the effect of trade openness featuring firm heterogeneity has shown promising results (Melitz 2003; Pavcnik 2002; Trefler 2004; Bernard et al. 2006). This literature documents that the reduction of trade barriers has caused major restructuring across industries and countries. A substantial part of the effect of international trade is channeled through the reallocation of resources with the industry, which in turn shapes the industry aggregates. Bos and Zhang (2013) uncover that the true divers of the trade-specialization nexus are productive firms, who benefit from the increase in trade openness and can appropriate resources from less productive firms, thus causing the industry in which they operate to expand, at the expense of other industries, in which there is no room to make such moves. This finding suggests that firm-level dynamics are important in understanding industry-level outcomes and adds to our knowledge on trade-specialization nexus, beyond the lesson taught by country-level analysis.

Moreover, a number of studies have documented the role of trade, as a conduit of knowledge dissemination on output/productivity growth and innovation of the recipient country (Coe and Helpman 1995; Keller 2002a, b; Papageorgiou et al. 2007). In particular, Drivas et al. (2016) confirm that the trade of goods (i.e., embodied knowledge) constitutes an important channel for knowledge diffusion and local production of innovation in the USA. They further demonstrate that disembodied knowledge through citation and traded patent flows has a stronger positive effect on a state’s innovation activity. We expect that as trade openness deepens, structural changes may be further enhanced by the effects on knowledge accumulation and spillovers.

In all, the use of disagregated data opens up new avenues for identifying the precise mechanisms at work, for better tackling the heterogeneity issue, and applying novel techniques to deal with the endogeneity problems, therefore improve our understanding of the openness-specialization nexus.