1 Introduction

Despite the “Great Trade Collapse” of 2008 and the “Greater Trade Collapse” of 2020, global trade has experienced substantial changes through the integration of emerging economies into the global market, the international fragmentation of production processes and off-shoring pressures (Cigna et al. 2022; Baldwin and Evenett 2020; Tajoli and Felice 2018; Hanson 2012; Baldwin 2011; Baldone et al. 2001, 2002, 2007; Arndt and Kierzkowski 2001). These trends have affected the international flows of goods and services and the demand for skills and relative wages, bringing benefits and creating new policy challenges. It is well-known that trade can boost economic growth and foster aggregate welfare in several ways. It prompts a more efficient allocation of resources across sectors and enterprises, promotes competition, reduces x inefficiencies and stimulates innovation (e.g. OECD 2019; Aghion and Howitt 1998). Trade facilitates access to larger international markets, generating economies of scale and technological spillovers with positive implications for growth (e.g. OECD 2021, 2014; Dalum et al. 1999; Rivera-Batiz and Romer 1991). Trade enables countries to specialise in goods in which they have a comparative advantage and labour to cluster in a narrow range of tasks leading to higher productivity growth, for learning and scale effects (e.g. Andrews et al. 2018; Krugman 1980). However, the benefits of trade are not equally distributed across and within countries. For instance, countries that specialise in more dynamic and innovative production activities can more easily achieve sustained economic growth than others (Hausmann et al. 2007; Amable 2000; Grossman and Helpman 1991). The differences in relative factor endowments and technological capabilities of countries and the relative factor intensities and technological characteristics of production activities would shape international specialisation (Hanson 2012; OECD 2011; Feenstra 2010; Krugman 1998; Bowen et al. 1987; Hufbauer 1970; Ohlin 1933; Heckscher 1919). Besides, larger countries have a tendency to specialise in more differentiated products due to stronger home-market effects (Hanson and Xiang 2004; Davis and Weinstein 2003; Weder 2003; Drèze 1960). Likewise, countries with better institutions tend to have a comparative advantage in the activities whose costs are more sensitive to the quality of institutions (Nunn and Trefler 2014; Costinot 2009; Acemoglu et al. 2007; Levchenko 2007; Nunn 2007).

The competitive pressure of low-wage countries has eroded the comparative advantages of high-wage countries in some productions, and the international fragmentation of the production processes has generated large trade-flows in intermediate and unfinished goods (e.g. World Bank 2020; Timmer et al. 2013; Yi 2003; Baldone et al. 2001, 2002, 2007; Venables 1999). The shifts of productive activities towards lower-wage countries can have significant negative impacts on employment in high-wage countries. Some of these negative effects could shrink if changes in the patterns of comparative advantages could be anticipated to some extent.

In this context, the present study aims at analysing the changes in comparative advantages for a group of high-wage, mid-wage and low-wage countries, gaining a better understanding of trade developments and identifying similarities and differences across countries. At the same time, we try to account for the fragmentation of production across borders to encompass new developments in international trade (e.g. Limão and Xu 2021; Saygılı 2020; Tajoli and Felice 2018; Kimura et al. 2007; Baldone et al. 2007; Arndt and Kierzkowski 2001). In particular, we focus on a set of 42 countries and 91 classes of manufactured products for the years 2001 and 2019. The examination of final goods is complemented by an analysis regarding a group of parts and components (intermediates) that represent an increasingly large fraction of international trade (Johnson and Noguera 2017, 2012).

The topic is relevant given that comparative advantages provide an indication of where a Global Value ChainFootnote 1 (GVC) activity should be located when several countries can handle the whole or part of the production process (Borin et al. 2021; Sopranzetti 2018; Lu and Karpova 2011). A country can enhance its equilibrium level of wages by upgrading its comparative advantages towards more innovative activities.

Changes in specialisation patterns can also have implications for inequality by shifting the demand from one factor of production to another, leading to changes in relative wages across and within skill categories. As a result, public policies could influence the wage gap between skilled and unskilled workers at home and abroad. For instance, policies that heighten access to higher education for a wider group of individuals could mitigate rising wage gaps in an environment characterised by increasing demand for high-skilled workers. Such policies could also generate spillovers to foreign countries by affecting relative wages of skilled to unskilled and trade patterns across countries.

In what follows, we introduce a new index to measure trade specialisation and a novel methodology for detecting shifts in the patterns of comparative advantages by exploiting information on trade flows and human capital endowments of different countries. In a first step, we compute a set of specialisation indices for each product and then estimate the linkage between comparative advantages and three different measures of human capital or technology endowments: education attainment, per-capita patents and labour costs of different countries. A measure of the size of a country’s internal market is also included, primarily as a control variable. The theoretical framework combines different strands of trade literature encompassing the orthodox version of the product cycle model, the new trade theory and the fragmentation literature. In a second step, we recombine the obtained cross-sectional estimates into a “comparative advantages shift matrix” that consistently accounts for changes in the patterns of comparative advantages. The novel “comparative advantage shift matrix” allows us to single out movements in the structure of comparative advantages across low-wage, mid-wage and high-wage countries. We think that the possibility of distinguishing between high and low-technology products could have some interesting policy implications. Since higher rates of learning-by-doing externalities characterise high-technology products, policy measures should facilitate improvements in the human capital or technology endowment of a country.

The remainder of the study is organised as follows. Section 2 reviews the economic literature on comparative advantages and their shifts over time. Section 3 presents the analysis on comparative advantages and computes the indices entering the empirical exercise. Section 4 outlines the theoretical framework, estimates the econometric model and proposes a classification of the manufactured products. Section 5 concludes.

2 Literature Review

Robert Torrens (1815) was the first to enunciate, already in its ‘paradoxical’ version, the theory of ‘comparative advantage’. In his Essay on the External Corn Trade, Torrens pointed out that England could benefit from trade by importing corn from Poland in exchange for manufactures, even if corn was produced more efficiently in England than in Poland. Two years later, David Ricardo (1817) explained the same principle in the Principles of Political Economy and Taxation, Chapter VII. In Ricardo’s famous example, Portugal had an absolute advantage over England in cloth and wine but had a comparative advantage in wine and a comparative disadvantage in cloth. England had an absolute disadvantage in both productions, but a comparative advantage in cloth and a comparative disadvantage in wine. Torrens and Ricardo argued that in such a situation, trade could benefit both countries. The two economists demonstrated that the differences in relative (or comparative) costs between countries trigger the gains from trade. Nevertheless, they did not explain the possible determinants of inter-country differences in comparative costs.

More than one century later, Eli Heckscher (1919), while trying to assess the influence of international trade on the prices of the factors of production, presented a fundamental intuition of the sources of comparative advantages. This intuition anticipated the ‘skill version’ explanation of comparative advantages developed about fifty years later by Keesing (1966), Hufbauer (1970) and other researchers to clarify the Leontief paradox:

“Our primary purpose … is to discover the influence of foreign trade upon the prices of the factors of production.…this question leads to some fundamental assumptions in the theory of foreign trade. The first of these assumptions concerns the reasons for differences in comparative costs among countries.… With the same relative scarcity of factors of production … Both countries will have the same comparative costs for all goods… A difference in the relative scarcity of the factors of production between one country and another is thus a necessary condition for a difference in comparative costs ….A further indispensable condition is that the proportions in which the factors of production are combined shall not be the same for one commodity as for another … It must be stressed that the term “factor of production” does not refer simply to the broad categories of land, capital, and labour, but to the different qualities of each of these. International trade may be attributable to particularly fertile soil in one country, compared with another, or to a particularly skilled population, as well as to a disproportionate distribution of land or workers in general” (Heckscher 1919, in American Economic Association, 1950, pp. 278–279).

Heckscher’s argument was developed by his pupil Bertil Ohlin (1933). Ohlin analysed geographic districts or regions rather than nations, highlighting the importance of factor endowments, skills and scale economies on comparative advantages, so anticipating the analyses by “the new trade theories”:

“What are the causes of division of labour in general?…First of all, some individuals have a greater ability for certain tasks than others… Second, even if all individuals have the same natural abilities, it would still be advantageous to have specialization in one or a small number of occupations. In this way much greater skill can be acquired than if everyone produced everything for himself … This is one aspect of what is generally called the “economics of large scale production” … Turning from individuals to regions, one finds that the latter, like the former, is very differently endowed with facilities for the production of various articles. One reason is that they are differently supplied with productive factors. … each region is best equipped to produce the goods that require large proportions of the factors relatively abundant there … (pp. 6–7)…Countries with a large supply of labour having high technical skills make for superiority in industries requiring plenty of educated labour” (p. 50).

In the fifties, Wassily Leontief tested the prediction of the factor proportions theory for the United States with quite disappointing results: the capital/labour ratio turned out to be greater for the US imports than the US exports! Leontief’s results stimulated a remarkable number of works, mainly empirical, but some theoretical too. From the theoretical point of view, Linder (1961) and Drèze (1960) provided very stimulating contributions. Linder argued that a representative domestic demand for goods could fuel comparative advantages. Drèze suggested that countries with a larger home market have a comparative advantage in differentiated products, while smaller countries have a comparative advantage in homogeneous products. Rosenberg (1970) pointed to the role of technology in shaping international specialisation and the positive externalities generated by higher technology productions:

“…we accord a more prominent role to the effects of a dynamic technology comparative advantage …no longer based upon cost differences which are rooted in immutable forces of climate or geology. Rather it is the continually changing result of human ingenuity and inventiveness, reflecting the differential capacity of different countries to develop techniques … certain kinds of economic activities are more successful than others in contributing to the development of inventive abilities…Technological change is not, after all, something that has emerged in a random way from all sectors of the economy. It is the result of a problem-solving skill which, historically, has been heavily concentrated in specific sectors of the economy. In the early stages of industrialization, these skills were heavily concentrated in machine tools and engineering; later … this focus shifted to chemistry-based and more recently to electronic-based industries. … If one productive process involves a learning activity which leads to new techniques or products …these are externalities of the greatest importance” (in Vernon ed. 1970, pp. 70–72).

Feenstra and Rose (2000) showed a strong relationship between advanced export structures, high productivity levels and fast growth rates. Bensidoun et al. (2001) found that the growth effects of trade depend on the type of products in which countries specialise. Cuaresma and Wörz (2005) tested whether exports in technology-intensive industries have a higher potential for positive externalities, showing a significant effect in the case of developing countries.

The dynamics of factors requirements, and hence of comparative advantages, as products or industries grow older, was elucidated by Ronald Jones (1970, pp. 84–87):

“Vernon argues that advanced countries tend to have a comparative advantage in producing those commodities that are newly being developed. …Vernon suggests that high labour costs at home may nonetheless be outweighed by the advantage of having a location in which a variety of special kills is readily accessible. ….the input mix at the early stages of the development of the product is different from the input mix later, when production becomes standardized. …this suggests a three factors model: capital, “ordinary” labour, and a third factor that comprises a host of special skills on the part of labour… Advanced countries such as the United States, have a relative abundance of this third factor and hence a comparative advantage in producing new commodities at early stages of production. …It is at the early stages, where new products are being introduced, that relatively heavy use is made of resources in R&D”.

Specialisation patterns can be expected to change over time, mainly because of changes in relative factor intensities of products and relative factor endowments of countries, the introduction of new products, and the integration of new countries in international markets. Most studies examined some examples of changes in trade specialisation occurring for particular products and countries. Aquino (1981) proposed a simple methodology to investigate the degree, speed and timing of the shifts in comparative advantages for 25 manufactured products over 1962–1974. Balassa and Noland (1989) econometrically examined the changes in comparative advantages of Japan and the United States across 167 manufactured product categories between 1967 and 1983. In particular, comparative advantages have been related to inter-industry differences in factor intensities. Japan significantly changed its specialisation patterns, shifting from unskilled-labour intensive goods to human capital and R&D intensive products. The United States maintained their specialisation in physical capital, human capital and R&D intensive goods. Dalum et al. (1998) analysed the degree of stability in the export specialisation structure of 20 OECD countries from 1965 to 1992. Their results showed that the national specialisation patterns had been rather sticky, with a tendency to de-specialisation in the medium to long term. Hiley (1999) investigated the changes in revealed comparative advantages of Asian countries. The author unveiled a profound change in the manufacturing structure, involving the transition from simple consumer goods and resource‐based processing activities towards more sophisticated productions. Brasili et al. (2000) analysed the dynamics of trade patterns in six large industrialised countries and eight fast-growing Asian economies. The authors found that advanced countries had highly persistent trade patterns, whereas emerging countries experienced rapid changes. Despite the higher specialisation of emerging countries, both country groups showed a tendency towards a reduced polarization and a more symmetric distribution in their specialisation. De Benedictis (2005) examined the Italian export composition and its evolution over three decades starting from the 1970s. Using a non-parametric approach, he found that several sectors characterised by comparative disadvantages in the 1980s presented a comparative advantage by the end of the 1990s. The sectoral composition of Italian exports, examined at a high disaggregation level, was found not so similar to that of the newly industrialised countries exporting labour-intensive products. Hanson (2012) explored the changes in trade specialisation associated with the integration of low- and mid-income nations into the global economy. The author showed that specialisation takes place according to comparative advantages of resource-based or technology-based type. In addition, specialisation in low- and mid-income countries can change rapidly over time. Kim and Kim (2015) investigated the shifts in comparative advantages for the major ASEAN countries in the period 2000–2010: the export pattern of South Korea changed faster than that of Vietnam, Singapore, the Philippines, Thailand and Malaysia; the export structure of Indonesia remained instead quite stable. Whang (2017) documented that revealed comparative advantages in manufacturing were positively associated with the rate of decline in the labour share for agriculture. Quantitative experiments indicated that a slight difference in a country’s comparative advantage accounts for a large variation in the structural transformation of open economies. Stellian and Danna-Buitrago (2019) calculated comparative-advantage sustainability and comparative-disadvantage recurrences for Colombia in the Pacific Alliance for 2013–2017 and obtained results valuable for designing effective public policies. More recently, Liu et al. (2020) demonstrated that the development of financial and business services improved the revealed comparative advantage of manufacturing sectors that use these services intensively, but not that of other manufacturing sectors. The authors also proved that a country might partially overcome the drawback of underdeveloped domestic services by increasing imported services inputs. Hence, lower services trade barriers could promote manufacturing exports in developing countries.

A more recent branch of the literature focused on the increasing international fragmentation of production across borders that changed the nature of international competition and trade specialisation. In this context, several authors questioned whether traditional modelling of the determinants of international trade was still adequate to explain comparative advantages and international specialisation (Timmer et al. 2021; Sposi et al. 2021; Saygili 2020; Hamid and Aslam 2017; Cingolani et al. 2017; Timmer et al. 2013; Baldone et al. 2007; Kimura et al. 2007; De Simone 2008; Arndt 1997; Athukorala and Yamashita 2006; Jones et al. 2005; Amiti 2005; Grossman and Helpman 2005; Yi 2003; Jones 2000; Venables 1999; Jones and Kierzkowski 1990, 2001). These researchers contributed to the debate by developing new theoretical models or proposing new measures of competitiveness to take into account international production fragmentation, an important feature of the deepening structural interdependence of the globalised world economy.

It is worth mentioning that GVCs have existed for centuries. Up to the 1990s, they were characterised by exports of primary commodities from resource-rich countries to developed countries that produced final goods to be exported to third countries. GVCs flourished rapidly from 1990 to 2007—from about 40 to 52% of global trade (World Bank 2020, p. 2)—as technological advances in transportation, information, and communications, as well as lower trade barriers, encouraged manufacturers to expand production processes outside national borders. In that phase, GVCs consisted of worldwide fragmented productive processes involving high-technology products, characterised by some stages of labour-intensive productions. The more labour-intensive phases of high-technology products designed in technology-rich countries were outsourced to countries with a great abundance of very cheap labour, particularly East Asia (e.g. China, Vietnam, Cambodia) and Eastern Europe (e.g. Poland, Czech Republic, Slovakia, Romania). The fragmentation allowed developing and developed countries to benefit from specialisation in niche tasks. Most countries in East Asia, North America and Western Europe participated in complex GVCs, producing advanced manufactures (e.g. machinery and electronics) and services (e.g. transportation), and engaging in innovative activities. By contrast, several countries in Africa, Latin America, and Central Asia produced commodities for further processing in other countries.Footnote 2 After 2007, however, trade and GVC growth decelerated. One reason for this declining trend has been the drop in overall economic growth. Another reason has been the reversal in trade reforms and liberalisation initiatives. Furthermore, the fragmentation of production in the most dynamic regions and sectors has matured. China, in particular, has been upgrading and integrating at home more and more production stages, becoming the hub for numerous Asian smaller countries (“Factory Asia”). In the United States, a booming shale sector reduced oil imports by one-fourth between 2010 and 2015 and slightly reduced the incentives to outsource manufacturing production (World Bank 2020, p. 2). Other causes of the slowdown in GVCs have been the reductions of international differences in labour cost, and the development of automation, 3D printing, internet of things, and other characteristics of “Industry 4.0”, which stimulated the “re-shoring” in high-wage countries of some labour-intensive stages of production.

Some studies have questioned whether the increasing trade in parts and components reduces the reliability of the traditional indicators of competitiveness based on gross exports. By linking production processes across borders, trading in intermediate inputs would create two distinct measurement problems. First, with fragmentation, trade data are double-counted because goods in process cross multiple national borders before getting embodied in the final product. This “double-counting” problem means that conventional data overstate the domestic (value-added) content of exports. Second, trade-shares calculated using reported data can lead to wrong inferences due to the relative importance of trade with the ‘region’ and the rest of the world (Athukorala and Yamashita 2006). The main “double-counting” and multi-country production chains would imply a hidden trade structure in value-added underlying gross trade flows. However, we believe that these problems are relevant when absolute values of exports and imports are used for calculating bilateral trade balances. They are negligible if we consider an index of comparative advantages equal to the difference between the normalised share of exports and the normalised share of imports as presented in Sect. 3. In addition, we consider a set of product categories that can securely be supposed to contain only intermediate inputs (reflected in the word “Parts of” or “Components” in the Standard International Trade Classification, SITC). In this way, comparative advantages can emerge not only in different sectors but also in different stages of production within sectors. By fragmenting complex products, GVCs allow countries to specialise in specific parts or tasks of production, avoiding domestic supply and demand constraints.

Baldone et al. (2001, 2002, 2007), De Benedictis and Tamberi (2000, 2004), De Benedictis and Tajoli (2004, 2007a, b, 2008), De Benedictis et al. (2009) and Finger and Kreinin (1979) devoted particular attention to inter-country comparisons of trade patterns. De Benedictis and Tajoli (2004, 2006, 2007a) tested four indexes of trade similarity: the Pearson coefficient of linear correlation, the Spearman coefficient of rank correlation, the Euclidean distance index and the Bray–Curtis metric, obtained as a standardisation of the Manhattan distance.Footnote 3 Based on the Bray–Curtis metric, considered the most appropriate by the authors, they analysed the similarity of the export structures toward the EU market between Poland, Hungary, Romania and Bulgaria and the pre-2004 European Union members, from 1989 to 2001. They showed that processed trade was crucial in explaining changes in the overall structure of exports of these four countries and greater economic integration in terms of trade flows and processing trade did not always lead to more export similarity between these countries and the EU15. Their main result was that similarity in export composition had a positive, significant and nonlinear impact on catching-up and seemed to be driven by the growth of the main export markets more than by other factors. For the Central-Eastern European Countries and the EU, a correlation between convergence in export patterns and income levels per capita were quite robust since 2004 (De Benedictis and Tajoli 2004). Moving from that result, De Benedictis and Tajoli (2007a, b, 2008) explored the mechanisms that might have given rise to it.

3 Trade Specialisation

To contribute to the existing literature and assess the changing patterns of comparative advantages, we first present and compute different specialisation indices and then we use them in the econometric analysis.

3.1 Measuring Comparative Advantages and Disadvantages

Balassa (1965) proposed a simple, but ingenious, measure of comparative advantages as “revealed” by trade flows: the ratio of a country's share in the world exports of a particular product to its share in the world exports of all goods, usually multiplied by 100. The index ranges from 0 to + ∞ with a demarcation value at 100 (or 1). The greater the value of the index (above 100), the stronger is the comparative advantage; the smaller the value (below 100), the stronger is the comparative disadvantage. Formally, the Balassa index (B) is given by:

$$ B_{ij} = \left( {{\raise0.7ex\hbox{${\frac{{\exp_{ij} }}{{\sum\nolimits_{i = 1}^{N} {\exp_{ij} } }}}$} \!\mathord{\left/ {\vphantom {{\frac{{\exp_{ij} }}{{\sum\nolimits_{i = 1}^{N} {\exp_{ij} } }}} {\frac{{\sum\nolimits_{j = 1}^{M} {\exp_{ij} } }}{{\sum\nolimits_{i = 1}^{N} {\sum\nolimits_{j = 1}^{M} {\exp_{ij} } } }}}}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{${\frac{{\sum\nolimits_{j = 1}^{M} {\exp_{ij} } }}{{\sum\nolimits_{i = 1}^{N} {\sum\nolimits_{j = 1}^{M} {\exp_{ij} } } }}}$}}} \right)*100 $$
(1)

where expji stands for country j’s exports of commodity i, with j = 1…M countries and i = 1… N products.

Due to its simplicity and intuitive interpretation, the Balassa index is widely used in the literature, despite some shortcomings. However, this index has an asymmetric distribution and, including only export flows, overlooks the international fragmentation of production processes (e.g. Yeats 1985; Bowen 1983). For these reasons, we have computed three further indices: the Revealed Symmetric Comparative Advantage (RSCA) index proposed by Dalum et al. (1998)Footnote 4 that adjusts for asymmetry, the Lafay index (1992) that corrects for international fragmentation of production stages and a new proposed index—called the Revealed Symmetric Augmented Comparative Advantage (RSACA)—that accounts for asymmetry, export and import flowsFootnote 5 and thus fragmentation.

The Symmetric Balassa index proposed by Dalum et al. (1998) is specified as:

$$ RSCA_{ij} = \frac{{B_{ij} - 1}}{{B_{ij} + 1}} = \frac{{\left( {{{\frac{{\exp_{ij} }}{{\sum\nolimits_{i = 1}^{N} {\exp_{ij} } }}} \mathord{\left/ {\vphantom {{\frac{{\exp_{ij} }}{{\sum\nolimits_{i = 1}^{N} {\exp_{ij} } }}} {\frac{{\sum\nolimits_{j = 1}^{M} {\exp_{ij} } }}{{\sum\nolimits_{i = 1}^{N} {\sum\nolimits_{j = 1}^{M} {\exp_{ij} } } }}}}} \right. \kern-\nulldelimiterspace} {\frac{{\sum\nolimits_{j = 1}^{M} {\exp_{ij} } }}{{\sum\nolimits_{i = 1}^{N} {\sum\nolimits_{j = 1}^{M} {\exp_{ij} } } }}}}} \right) - 1}}{{\left( {{{\frac{{\exp_{ij} }}{{\sum\nolimits_{i = 1}^{N} {\exp_{ij} } }}} \mathord{\left/ {\vphantom {{\frac{{\exp_{ij} }}{{\sum\nolimits_{i = 1}^{N} {\exp_{ij} } }}} {\frac{{\sum\nolimits_{j = 1}^{M} {\exp_{ij} } }}{{\sum\nolimits_{i = 1}^{N} {\sum\nolimits_{j = 1}^{M} {\exp_{ij} } } }}}}} \right. \kern-\nulldelimiterspace} {\frac{{\sum\nolimits_{j = 1}^{M} {\exp_{ij} } }}{{\sum\nolimits_{i = 1}^{N} {\sum\nolimits_{j = 1}^{M} {\exp_{ij} } } }}}}} \right) + 1}} $$
(2)

Its value ranges from − 1 to  1 (with a demarcation value at 0). A value larger than zero indicates that country j has a revealed comparative advantage in i. A value less than zero points to a comparative disadvantage in product i for country j.

The Lafay index (LFI), enclosing both exports and imports for a specific country, allows one to control for intra-industry trade and re-export flows generated by the processes of international fragmentation of production. For a given country, j, and for any given product, i, the Lafay index is defined as:

$$ LFI_{ij} = 100 \cdot \left( {\frac{{\exp_{ij} - imp_{ij} }}{{\exp_{ij} + imp_{ij} }} - \frac{{\sum\nolimits_{i = 1}^{N} {\left( {\exp_{ij} - imp_{ij} } \right)} }}{{\sum\nolimits_{i = 1}^{N} {\left( {\exp_{ij} + imp_{ij} } \right)} }}} \right) \cdot \frac{{\exp_{ij} + imp_{ij} }}{{\sum\nolimits_{i = 1}^{N} {\left( {\exp_{ij} + imp_{ij} } \right)} }} $$
(3)

The Lafay index weights each product’s contribution according to the respective importance in trade. A positive value of the Lafay index designates the existence of comparative advantages in a given product i. The larger is the value, the higher is the comparative advantage. Conversely, a negative value points to despecialisation. By construction, the following relation holds: \(\sum\nolimits_{i = 1}^{N} {LFI_{ij} } = 0\).

The proposed Revealed Symmetric Augmented Comparative Advantage (RSACA) has been computed as:

$$ \begin{aligned} RSACA_{ij} &= \frac{{B_{ij}^{\exp ort} - 1}}{{B_{ij}^{\exp ort} + 1}} - \frac{{B_{ij}^{import} - 1}}{{B_{ij}^{import} + 1}}\\ & = \frac{{\left( {{{\frac{{\exp_{ij} }}{{\sum\nolimits_{i = 1}^{N} {\exp_{ij} } }}} \mathord{\left/ {\vphantom {{\frac{{\exp_{ij} }}{{\sum\nolimits_{i = 1}^{N} {\exp_{ij} } }}} {\frac{{\sum\nolimits_{j = 1}^{M} {\exp_{ij} } }}{{\sum\nolimits_{i = 1}^{N} {\sum\nolimits_{j = 1}^{M} {\exp_{ij} } } }}}}} \right. \kern-\nulldelimiterspace} {\frac{{\sum\nolimits_{j = 1}^{M} {\exp_{ij} } }}{{\sum\nolimits_{i = 1}^{N} {\sum\nolimits_{j = 1}^{M} {\exp_{ij} } } }}}}} \right) - 1}}{{\left( {{{\frac{{\exp_{ij} }}{{\sum\nolimits_{i = 1}^{N} {\exp_{ij} } }}} \mathord{\left/ {\vphantom {{\frac{{\exp_{ij} }}{{\sum\nolimits_{i = 1}^{N} {\exp_{ij} } }}} {\frac{{\sum\nolimits_{j = 1}^{M} {\exp_{ij} } }}{{\sum\nolimits_{i = 1}^{N} {\sum\nolimits_{j = 1}^{M} {\exp_{ij} } } }}}}} \right. \kern-\nulldelimiterspace} {\frac{{\sum\nolimits_{j = 1}^{M} {\exp_{ij} } }}{{\sum\nolimits_{i = 1}^{N} {\sum\nolimits_{j = 1}^{M} {\exp_{ij} } } }}}}} \right) + 1}} - \frac{{\left( {{{\frac{{imp_{ij} }}{{\sum\nolimits_{i = 1}^{N} {imp_{ij} } }}} \mathord{\left/ {\vphantom {{\frac{{imp_{ij} }}{{\sum\nolimits_{i = 1}^{N} {imp_{ij} } }}} {\frac{{\sum\nolimits_{j = 1}^{M} {imp_{ij} } }}{{\sum\nolimits_{i = 1}^{N} {\sum\nolimits_{j = 1}^{M} {imp_{ij} } } }}}}} \right. \kern-\nulldelimiterspace} {\frac{{\sum\nolimits_{j = 1}^{M} {imp_{ij} } }}{{\sum\nolimits_{i = 1}^{N} {\sum\nolimits_{j = 1}^{M} {imp_{ij} } } }}}}} \right) - 1}}{{\left( {{{\frac{{imp_{ij} }}{{\sum\limits_{i = 1}^{N} {imp_{ij} } }}} \mathord{\left/ {\vphantom {{\frac{{imp_{ij} }}{{\sum\limits_{i = 1}^{N} {imp_{ij} } }}} {\frac{{\sum\limits_{j = 1}^{M} {imp_{ij} } }}{{\sum\limits_{i = 1}^{N} {\sum\limits_{j = 1}^{M} {imp_{ij} } } }}}}} \right. \kern-\nulldelimiterspace} {\frac{{\sum\nolimits_{j = 1}^{M} {imp_{ij} } }}{{\sum\nolimits_{i = 1}^{N} {\sum\nolimits_{j = 1}^{M} {imp_{ij} } } }}}}} \right) + 1}}\end{aligned} $$
(4)

This index is the difference between the symmetric Balassa index calculated for exports and the symmetric Balassa index for imports. It ranges between − 2 and 2 with a demarcation value at 0 and ostensibly provides an unbiased measure of the intensity in comparative advantages and, as mentioned in the literature review, would allow us to cope with the “double-counting” problem.Footnote 6 Similarly to the Lafay index, RSACA takes into account both exports and imports, and captures intra-trade and re-export flows. Differently from Lafay, it includes trade flows at the world level and, hence, can be considered as a “true” comparative advantage index. Moreover, the Lafay index appears to be excessively influenced by the industry size; and thus it would be more appropriate for a country-level analysis, than for a cross-section study.Footnote 7

Because of the international fragmentation of production, it would be more correct to obtain the indices of comparative advantages based on value-added trade flows rather than in terms of gross exports and imports. Unfortunately, the necessary data are not yet available for a sufficiently high number of products and recent years. However, for the significance of our analysis, this does not seem to be a major problem, since we found that for almost all the classes of manufactured products for which the OECD (2018) has estimated both gross exports and the value-added content of gross exports in 2015, the correlation between the Balassa index calculated considering the value-added content of gross exports and the values of the Balassa index calculated on the basis of gross exports is very high, as it appears from Table 1.

Table 1 Linear correlation (RQ) coefficient between the values of the Balassa index of comparative advantage in domestic value-added content of gross exports and the Balassa index of comparative advantage in gross exports, 2015;

3.2 Specialisation Indices Results

Based on the aforementioned indices (2), (3) and (4), we have computed the comparative advantages and disadvantages of 42 countries in 91 groups of intermediateFootnote 8 and final products for the years 2001 and 2019. The list of countries is reported in Table A1 in the Appendix. Detailed results on RSACA are presented in Tables S1–S2 in the Online Supplementary Material.

The values of the Revealed Symmetric Augmented Comparative Advantage (Tables S1–S2) reveal that China has registered significant changes in comparative advantages from 2001 to 2019. Declines in China’s comparative advantages have especially been recorded for lead and articles thereof (from 1.05 to − 0.48), articles of leather, saddlery, travel goods, handbags (from 1.58 to 0.80), explosives and pyrotechnic products (from 1.58 to 0.80), preparations of vegetables, fruits, nuts (from 1.06 to 0.57), footwear (from 1.38 to 0.87), preparations of meat, fish, molluscs (from 1.44 to 0.98), apparel and clothing accessories, both not knitted or crocheted (from 1.34 to 1.09) and knitted or crocheted (from 1.32 to 1.02), toys and games (from 1.43 to 1.25). In the same years, China experienced strong increases in comparative advantages in: knitted or crocheted fabrics (from − 0.1 to 0.98), glasses and glassware (from − 0.11 to 0.31), ships, boats and floating structures (from 0.18 to 0.86), machinery, both non-electrical (from − 0.15 to 0.28) and electrical (from − 0.08 to 0.06), furniture (from 1.19 to 1.23), articles of iron and steel (from 0.47 to 0.78), silk (from 0.62 to 1.07), miscellaneous articles of base metal (from 0.63 to 0.93), electronic integrated circuits (from 0.45 to 1.01). China’s comparative disadvantage disappeared for parts of motor vehicles (from − 0.27 to 0.02) and decreased significantly for parts of aircraft (from − 0.47 to − 0.13).

France strengthened its comparative advantage in perfumery, cosmetics and toilet preparations (from 0.49 to 0.51), other vegetable textile fibre manufactures (from 0.35 to 0.95), explosives and pyrotechnic products (from 0.26 to 0.42), articles of leather (from 0.19 to 0.25) and miscellaneous chemical products (from 0.11 to 0.24). France’s comparative advantages decreased in aircraft (from 0.38 to 0.24), rubbers and articles thereof (from 0.19 to 0.02), beverages (from 0.70 to 0.63), vehicles other than railways or tramways (from 0.27 to − 0.03), glasses and glassware (from 0.11 to 0.01).

Germany deepened its comparative advantages in optical, photographic, cinematographic, medical or surgical instruments (from 0.09 to 0.18), machinery, mechanical appliances, nuclear reactors, boilers, parts thereof (from 0.09 to 0.14). The country lessened its specialisation in railway or tramway locomotives, railway or tramway track (from 0.13 to − 0.16), man-made staple fibres (from 0.15 to − 0.28), knitted or crocheted fabrics (from 0.19 to 0.03), wadding, felt and nonwovens (from 0.32 to 0.1), miscellaneous articles of base metal (from 0.24 to 0.11), vehicles other than railway or tramway rolling stock (from 0.32 to 0.17), printed books (from 0.23 to 0.12). Germany shifted from a significant comparative disadvantage in ‘parts of’ aircraft and spacecraft (− 0.41) to a slight advantage (0.06).

In 2001, Italy had a substantial comparative advantage in furniture, ceramic products, articles of stone and clothing accessories. However, in 2019, the country experienced a decline in comparative advantages in all these product categories: furniture (from 0.88 to 0.49), ceramic products (from 0.79 to 0.56), articles of stone (from 0.65 to 0.3), and miscellaneous articles of base metal (from 0.61 to 0.26). Further drops have been detected for apparels and clothing accessories, both knitted or crocheted (from 0.34 to − 0.03) and not knitted or crocheted (from 0.35 to 0.11), headgears and parts thereof (from 0.52 to 0.12), footwear (from 0.41 to 0.16). Relatively large increases have been registered for ships, boats and floating structures (from 0.13 to 0.34), machinery and mechanical appliances (from 0.25 to 0.32), aircraft, spacecraft, and parts thereof (from − 0.23 to 0.05). Italy registered significant changes in comparative advantages or disadvantages for three out of five intermediate products connected to the “new” international fragmentation: from − 0.26 to 0.04 for electronic integrated circuits and parts thereof; from 0.04 to − 0.73 for parts of aircraft and spacecraft; from 0.16 to − 0.16 for parts of telephone sets, telephones and cellular networks.

Spain retained its comparative advantages in railway locomotives, explosives and pyrotechnic products while registering a marked increase in zinc (from 0.77 to 1.23), beverages, spirits and vinegar (from 0.32 to 0.47), essential oils, perfumery and cosmetics (from 0.03 to 0.21), salt, sulphur, earth and stone, lime and cement (from 0.12 to 0.39), aircraft and spacecraft (from − 0.07 to 0.21). On the contrary, the country lowered its comparative advantages in sugars and sugar confectionery (from 0.20 to − 0.07), animal or vegetable fats and oils (from 0.74 to 0.29), preparations of meat, fish, molluscs (from 0.44 to 0.11), soap, washing preparations, waxes, candles (from 0.44 to 0.14), furskins and artificial fur (from 0.63 to 0.33), lac, gums, resins (from 0.59 to 0.36), cork (from 0.26 to 0.14).

The UK increased its comparative advantages in parts of aircraft and spacecraft (from 0.00 to 0.54), beverages, spirits and vinegar (from 0.06 to 0.24), raw hides and skins and leather (from 0.18 to 0.43), iron and steel (from 0.13 to 0.23), organic chemicals (from 0.2 to 0.32), printed books and newspapers (from 0.27 to 0.33), while decreased its comparative advantages in electronic integrated circuits and parts thereof (from 0.89 to 0.12); salt, sulphur, earths and stone (from 0.31 to 0.02), mineral fuels and oils (from 0.29 to 0.08), inorganic chemicals (from 0.23 to 0.07), pharmaceutical products (from 0.27 to 0.18). In 2019, the country moved from a comparative advantage to a disadvantage in photographic or cinematographic goods (from 0.18 to − 0.29), tobacco (from 0.39 to − 0.43), articles of stone, plaster, cement (from 0.13 to − 0.16), albuminoidal substances (from 0.12 to − 0.07).

From 2001 to 2019, the US experienced a decline of comparative advantages in tobacco (from 0.77 to 0.11), fertilisers (from 0.36 to 0.03), salt, sulphur, earths and stone (from 0.2 to 0.04), essential oils, perfumery, cosmetics (from 0.39 to 0.18), miscellaneous edible preparations (from 0.55 to 0.26), explosives, pyrotechnic products (from 0.25 to 0.11), plastics (from 0.38 to 0.25). The US comparative advantages soared in ores (from 0.14 to 0.36), railway or tramway locomotives, railway or tramway track (from 0.14 to 0.33), cotton (from 0.52 to 1), photographic or cinematographic goods (from 0.28 to 0.34), pulp of wood or of other fibrous cellulosic material (from 0.46 to 0.67). For parts of aircraft and spacecraft, the US shifted from a comparative advantage (0.57) to a comparative disadvantage (− 0.31).

The results of the traditional symmetric Balassa index and the Lafay index for 2001 and 2019 are reported in Tables S3–S4 and Tables S5–S6, respectively (Online Supplementary Material).

3.3 Similarity in the Structure of Comparative Advantages

Several studies have compared different classes of indices to measure trade similarity. De Benedictis and Tamberi (2000) carried out a comparison of the Italian pattern of comparative advantages in manufactures with the patterns of three high-wage countries (Japan, USA, and France) and three low-wage countries (Taiwan, Romania, and Thailand) in 1986 and 1996. At the 2-digit level of disaggregation (35 sectors), the Spearman correlation of Italian comparative advantages turned out to be significantly positive compared to Taiwan, Romania and Thailand, but significantly negative compared to Japan, USA and France. However, at the 4-digit level (538 sectors) most of the values of the Spearman coefficient turned out to be not significantly different from zero, except that with the US, which remained significantly negative, but with half the values at the 2-digit level of disaggregation.

De Benedictis and Tamberi (2004), applying kernel density estimation, concentration and Markov stationarity methods, showed that the Japanese structure of comparative advantages was characterised by a concentration on a few sectors, while Italy, Germany and France had a more diversified pattern of comparative advantages. De Benedictis and Tajoli (2004, 2007a, b, 2008) performed some very interesting comparative analyses on the patterns of manufactured exports of the Central-Eastern European Countries (CEECs) with respect to the pre-2004 European Union members (EU15). Some of the works concerned mainly the dynamics of manufactured exports of some of the CEECs (in particular Poland, Hungary, Romania and Bulgaria) and the EU15 over the period from 1989 to 2001. The second strand of analysis concerned the empirical relationship over the period from 1993 to 2002 of the convergence of the CEECs countries to the EU15 in terms of exports structures and income per capita. In this latter analysis, all the 10 CEECs countries were considered.

De Benedictis and Tajoli (2004, 2007a), in particular, examined how the export composition of Poland, Hungary, Romania and Bulgaria changed over time and how their export pattern changed with respect to the EU15 export composition. They analysed the dynamics of both the self-similarity (how the export composition of each country changed with respect to the beginning of the transition process) and EU-similarity (how the export pattern of each CEEC country changed with respect to the EU15 export pattern).

Poland, Hungary, Romania and Bulgaria changed their exports patterns towards the EU, but changes were different for every country according to their involvement in international production networks, through processing trade. Plotting the Pearson correlation coefficient rxy and the Bray–Curtis similarity index sxyFootnote 9, changes in the CEECs export structure relative to their initial situation and the EU15 were more readily evident. These indices confirmed that many changes occurred in the pattern of export shares of the CEECs from 1989 to 2001, but important changes took place by the end of the 1990s. Both rxy and sxy showed that Poland moved away from its initial specialisation. The change in the Hungarian pattern of trade was even sharper, while the dynamics were different for Romania and Bulgaria. Romania changed more than Hungary and Poland, but most of the changes took place before 1992. Something similar occurred to Bulgaria, which changed especially at the beginning of the transition and, after a period of stability in the mid-1990s, moved again in 1999–2001; the extent of the change for Romania was stronger with rxy than with sxy. As the transition process went on, substantial differences emerged among the CEECs: Romanian and Bulgarian exports were concentrated in textiles, apparel and footwear, while Poland’s and Hungary’s exports grew in auto vehicles and machinery, despite the very large initial gap with the EU in these sectors. In this catching-up process, foreign capital and technological cooperation with EU firms played an important role.

De Benedictis and Tajoli (2004, 2007a) also examined whether the observed change in the CEECs export structures brought these countries closer to the EU structure. They found evidence that Romania presented a fluctuating path until 1995 and some convergence toward the EU export structure after 1997. Bulgaria’s export structure had been diverging from that of the EU, as it appeared from both rxy and sxy. Contrary to the other three cases, for Hungary, rxy and sxy were monotonically related only up to 1995. In terms of rxy, Hungary approached the EU and got even closer than Poland in 2001; but according to sxy, after a period of fast reduction in the distance from the EU, from 1995 onward Hungary reversed its trajectory.

The second strand of research examined the convergence in terms of exports structures and income per capita between the CEECs countries and the EU15 over 1993–2002. In this context, De Benedictis and Tajoli (2004, 2007b, 2008) compared the export patterns of the CEECs to those of the EU15, focusing on specialisation as suppliers for the EU market. Their main result was that similarity in export composition had a positive, significant and nonlinear impact on catching-up, and seemed to be driven by the growth of the main export market more than by other factors. Results were robust to controlling for openness and country size and investment, schooling, and the quality of institutions.

For this analysis, all the ten countries candidates for EU membership in the 1990s were considered: Bulgaria, Czech Republic, Estonia, Hungary, Latvia, Lithuania, Poland, Romania, Slovak Republic, and Slovenia. The average annual rate of catch-up in purchasing power standards showed large differences between these countries, not directly correlated with the starting point. Slovenia (one of the CEECs with the highest GDP per capita in 1993) and Estonia (one of the CEECs with the lowest GDP per capita in 1993) both showed a relatively high catch-up rate across the entire period. The Czech Republic, with an income level close to the EU average in 1993, had a low catch-up rate. The performance was also different across time. Bulgaria and Romania, ranking at the bottom of the group in 1993, showed a positive trend toward the EU average income only from 1998 onward.

For the CEECs and the EU, a correlation between convergence in export patterns and income levels per capita was quite robust since 2004 (De Benedictis and Tajoli 2004). De Benedictis and Tajoli (2007b, 2008) explored the mechanisms that might have given rise to it. The first channel between export patterns and income convergence links similarity in trade structure with productivity improvements since technological spillovers are more likely to occur within technologically similar industries. The second channel enhances the positive demand-side effects, which rely on trade volumes to exploit the scale effects built-in endogenous growth models. A third channel considers export diversification as a form of insurance against industry-specific adverse shocks. De Benedictis and Tajoli (2007b, 2008) documented that similarity in trade structure permits a reduction in income gaps and that higher similarity magnifies income convergence.

To evaluate the degree of similarity in the patterns of comparative advantages across countries, we have computed the Pearson correlation matrixFootnote 10 of the Revealed Symmetric Augmented Comparative Advantage indices for 2001 and 2019 (Table 2).

Table 2 Correlation among RSACA Indices, selected countries;

The country pairs with the highest degree of similarity (Table 2) in comparative advantages are: (1) Korea and Taiwan with a correlation coefficient of 0.69 in 2001 and 0.52 in 2019; (2) Indonesia and Vietnam with a correlation coefficient of 0.69 in 2001 and 0.50 in 2019; (3) Germany and Japan with a correlation coefficient of 0.67 in 2001 and 0.60 in 2019; (4) the US and the UK with a correlation coefficient of 0.46 in 2001 and 0.56 in 2019. It is interesting to notice that the correlation coefficient between Romania and Bulgaria has significantly decreased from 0.65 in 2001 to 0.24 in 2019.

The correlation coefficient between Italy and Taiwan has dropped from 0.52 in 2001 to 0.29 in 2019. Likewise, the correlation coefficients between China and Thailand, China and the Philippines, and China and Pakistan have significantly fallen from values equal to or above 0.50 in 2001 to values less than 0.18 in 2019. This result implies that the export structure between these pairs of countries was somewhat overlapping in 2001, but it has significantly changed in 2019. Conversely, Japan and Korea have experienced a surge in similarity over time. Detailed information on the whole sample is presented in Tables S8 and S9 (Online Supplementary Material).

The US display a specialisation pattern more similar to Germany, Switzerland and the UK, but dissimilar from China, Indonesia and Bangladesh. Within the Euro Area, Germany registers a trade structure more similar to Japan, the UK and the US in 2001 and a stable trade structure with respect to Japan and the US in 2019. In 2001, Italy shows an export–import structure comparable to that one of Spain, Korea and Taiwan. In 2019, the Italian export–import structure is more alike to that of Turkey, Germany and Spain (Table 3).

Table 3 Top similar and dissimilar export structures, selected countries;

The patterns of China’s comparative advantages are dissimilar from those of the US, the UK, Sweden, Switzerland and Norway (Table 3). The Netherlands and Belgium have strengthened their trade structure correlation between 2001 and 2019. Similarly, Finland and Norway have increased their similarity in trade specialisation during the considered years (Tables S8-S9, Online Supplementary Material).

To complete the preliminary analysis, we have calculated, for each specific country, the correlation coefficients between the RSACA indices in 2001 and the RSACA indices in 2019. In this way, it is possible to assess to which extent a country’s trade structure has changed between the two years (Table 4).

Table 4 Correlation (ρ) in the specialisation structure (RSACA) between 2001 and 2019;

Hong Kong is the country that has undergone the largest structural trade shift: its trade pattern has changed radically (ρ =  − 0.14). Romania, Hungary, Singapore and Poland follow soon after. Japan, Germany, the US, Chile, Italy and Norway instead show a quite stable trade structure with correlation values equal to or larger than 0.85 (Table 4).

4 Comparative Advantage Shifts

This section presents the theoretical model and the econometric analysis with the purpose to evaluate the patterns of comparative advantages for our sample of countries and products. Most empirical research in international trade had the objective to test whether the patterns of comparative advantages were in accordance with trade theories and, in particular, with the factor proportions theory. The methodology here adopted, instead, infers some commodity characteristics from the patterns of comparative advantage as revealed by trade flows and relative human capital or technology endowments of countries, considering as sufficiently proved empirically the correctness of the factor proportions theory in terms of human capital or technology variables. More specifically, our empirical analysis allows us to test if human capital and technology variables can be useful to distinguish between manufactures whose comparative advantages are positively associated with human capital and technology endowments of countries, manufactures whose comparative advantages are negatively related to human capital and technology endowments, and manufactures whose comparative advantages are not significantly associated with human capital and technology endowments. This assessment, at different points in time, enables us to detect any possible changes in the specialisation structure and the relative human capital or technology intensity of products.

4.1 The Model

Using j subscripts to identify the country, i subscripts to identify the product and t subscripts to indicate the year, the specialisation equation takes the form:

$${S}_{jit}={\beta }_{0}+{\beta }_{1}{LC}_{jt}+{\beta }_{2}{Edu}_{jt}+{\beta }_{3}{Pat}_{jt}+{\beta }_{4}{Size}_{jt}+{\varepsilon }_{jt}$$
(5)

where S is the specialisation index and the explanatory variables LC, Edu, Pat and Size, indicate country j’s labour cost, education, patents per capita and home market size, respectively. Here, β0, β1, β2, β3 and β4 are the parameters to be estimated, and \({\varepsilon }_{jt}\) is the classical error term. t = 2001, 2009.

The theoretical framework of model (5) draws on the sizable number of theoretical and empirical analyses that, starting from the late 1950s, have proved the great importance of various components of human capital for the pattern of international specialisation in manufactures (e.g. Levchenko and Zhang 2016; Baldwin and Lopez-Gonzalez 2015; Mora 2002; Krugman 1998; Flam and Helpman 1987; Vollrath 1991; Hirsch 1974, 1965, 1967; Freeman 1963; Keesing 1966, 1971; most of the works included in Vernon 1970; Hufbauer 1970, 1966; Posner 1961; Hoffmeyer 1958).

Labour cost, the level of education of the labour force and patents per capita can be considered different indicators of a country’s human capital relative endowment. The number of patents per capita and the level of formal education are direct measures of human capital. In particular, the level of education is a measure of the resources devoted to improving the quality of workers, while the number of patents per capita is a measure of the success of a country in pursuing innovations.Footnote 11 The price of labour can be considered as an indirect indicator of human capital or technological ability. A more educated and creative labour force can reach a higher equilibrium price in a competitive world environment. According to the factor proportions theory, countries with a relatively higher human capital or technology endowment would have a comparative advantage in human capital or technology-intensive products. Given the chief importance of learning by doing in these products (Cuaresma and Wörz 2005; Bensidoun et al. 2001; Feenstra and Rose 2000; Rosenberg 1970), countries specialised in these productions would raise their technological capabilities and the quality of exports. A possible explanation of the changes in the pattern of comparative advantages is the orthodox version of the product cycle model, which identifies the decline over time in the technological sophistication of products as the main source of specialisation changes (Aquino 1981; Vernon 1966; Hoffmeyer 1958). This explanation is also in line with the role of technology and innovation as an engine of comparative advantages (Rodrik 2018; Amendola et al. 1998; Posner 1961). New products are technology-intensive and on average high-income countries tend to have a comparative advantage in their production. As products grow older their technological sophistication decreases and comparative advantages tend to switch towards countries relatively well-endowed with factors other than highly qualified labour, i.e. low-wage countries. In the meanwhile, human capital rich countries can strengthen their comparative advantages in technology-intensive products. Put differently, the type of economies is often linked to the technology endowment. High-wage countries tend to have higher technological endowments and products will be characterised by higher-technology content (quality competitiveness), i.e. goods will be produced by workers paid with higher wages. Conversely, lower-wage countries have on average lower technology or human capital endowments and have a comparative advantage in goods produced by workers paid with lower wages (cost competitiveness).

Furthermore, model 5 includes home market size to account for scale economies as already emphasized by Adam Smith (1776) in his example of the British pin factory and afterwards by Ohlin (1933), Drèze (1960) and the new strand of trade theory (Feenstra 2018; Helpman 1981; Krugman 1979). It finally accounts for the fragmentation of the production activities by including a group of parts and components. With fragmentation, comparative advantages rise in finer stages of production and specialisation occurs in niche tasks.

4.2 Data and Empirical Analysis

Our analysis focuses on 42 countries and 91 groups of tradable products in 2001 and 2019 so to detect possible changes in the first two decades of this century. The choice of our selected sample has been determined by geographical coverage, data availability and data reliability (Tables A1-A2, Appendix).

To estimate the parameters of model (5), we use, as a dependent variable, the indices of revealed comparative advantages, presented in Sect. 3.1. In what follows, we only present the results for the RSACA indices that, as mentioned in Sect. 3, capture specialisation fairly well. The explanatory variables comprise: (i) a wage variable proxied by country j’s labour costs per working hour (constant 2017 international $); (ii) a variable reflecting the education attainment, namely the percentage of the population aged 25–64 years having completed at least an upper secondary level of education; (iii) a variable somehow related to the theory of vertical differentiation and quality ladder, viz. per capita patents, or patents application normalised by country’s population and (iv) the size of country j’s home market measured by the real GDP evaluated at PPP (constant 2017 international $). The first three variables seize different traits of human capital. Indeed, following a tradition of empirical analysis (e.g. Amendola et al. 1998; Amable and Verspagen 1995; Pavitt 1988; Soete 1987), we assume that the technological activities of each country can be measured by their patenting activities that are an outcome of the human capital activity. From this perspective, patenting can be considered an indicator of the innovative capacities of a country, strongly linked to the quality of exports.Footnote 12

All data have been extracted from the World Bank database, except for labour costs and trade flows that have been taken from ILO and UN COMTRADE, respectively.

To sum up, the cost of labour coefficient β1, the level of formal education coefficient β2, and the patents per capita coefficient β3 provide different measures of the impact of a country’s human capital and/or technology endowment on comparative advantages in the considered product. On the basis of their sign and statistical significance, products can be classified as high-technology (significantly positive coefficients) or low-technology (significantly negative coefficients). Statistically not significant coefficients can indicate either medium-technology products (AquinoFootnote 131981; BalassaFootnote 141979) or heterogeneous classes of products (MoraFootnote 152002), comprising both high-technology and low-technology products.

Changes over time in the statistical significance of at least one human capital or technology coefficient point to a shift in comparative advantages and offer a rough signal of the value chain dynamics for each product. For example, a decline in the statistical significance of the labour cost coefficient from a significantly positive to a significantly negative value could reflect a shift of comparative advantages towards countries with lower labour costs. This suggests that specific activities, production stages and/or the entire productions have moved from high-wage to low-wage countries, reflecting most likely a reduction in the human capital-intensity or technology-intensity of the product.

As regards the scale-coefficient β4, a significantly positive value identifies products in which countries with a larger home market have a comparative advantage. Conversely, a significantly negative value characterises products in which countries with a smaller domestic market have a comparative advantage. A not significant β4 could identify products in which countries with a mid-size home market have a comparative advantage, or classes of products heterogeneous from the scale-economy point of view.

The descriptive statistics of the explanatory variables are sketched in Table 5.

Table 5 Descriptive statistics

A useful first impression of the relationships among our variables can be gleaned from the correlation matrix (Table 6). It emerges that our three human capital proxies are rather weakly correlated. Those measures, thus, capture empirically different aspects of the complex dimension of human capital.

Table 6 Correlation matrix

4.3 Estimation Results

Tables 7 and 8 report the cross-sectional estimations of model (5) for 2001 and 2019. Table 9 explicitly focuses on the class of intermediate products. We present the results for the RSACA indices used as the dependent variable.

Table 7 2SLS estimates for trade specialisation 2001
Table 8 2SLS estimates for trade specialisation 2019
Table 9 2SLS estimates for trade specialisation in the main intermediate products of Machinery and equipment (b84), Electrical machinery (b85), Motor vehicles (b87), and Aircraft (b88)

To deal with the potential endogeneity problem due to reverse causality, omitted variables and/or measurement errors, we use the instrumental variables two-stage least squares (2SLS) method. Standard OLS estimations, indeed, could lead to inconsistent estimates of the coefficients and the inference could be biased. To test the endogeneity of the regressors, we apply the post-estimation “estat endogenous” Stata command that implements the Durbin-Wu-Hausman test. The results lead to the rejection of the null hypothesis that labour costs, home market size and quality of exports are exogenous; hence they are endogenous and need some instrumental variables. On the contrary, we find education to be exogenous.

Relying on economic theory and data availability, we instrument the variable LC with the mobile cellular subscriptions (per 100 people), the variable home market size with population and terms of trade, and patents with R&D expenditure as a percentage of GDP.

Mobile cellular telephone subscriptions are subscriptions to a public mobile telephone service that provide access to the PSTN using cellular technology. The indicator, which includes the number of post-paid subscriptions and active prepaid accounts offering voice communications, has a strong correlation with labour costs.Footnote 16 The terms of trade index, used along with population to instrument home market size, is calculated as the percentage ratio of the export unit value indexes to the import unit value indexes, measured relative to the base year 2000. Unit value indexes are based on data reported by countries that demonstrate consistency under UNCTAD quality controls, estimated and calculated by the UNCTAD as unit value indexes at the country level using the current year’s trade values as weights. Finally, the considered instrumental variable for patents is R&D expenditures, namely the gross domestic expenditures on research and development (R&D) expressed as a percentage of GDP. R&D covers basic research, applied research, and experimental development. All data for instruments have been collected from the World Bank.

Two types of information can be extracted from the estimations: (i) the human capital or technology intensity of each class of products and the localization of the production in 2001 and 2019, as revealed by the pattern of comparative advantages and the human capital or technology endowments of countries; (ii) the changes in these characteristics between 2001 and 2019.

Regarding the product characteristics, we propose to classify products into three main groups as outlined in Tables 10 and 11. The two tables report in brackets the explanatory variables with a coefficient significantly different from zero, together with the sign of the coefficient and the level of statistical significance indicated by the p-value*100.

Table 10 Classification of products, 2019
Table 11 Classification of products, 2001

In 2019, comparative advantages in 31 classes of products turned out to be positively associatedFootnote 17 with at least one measure of a country’s human capital or technology endowment (high technology products); comparative advantages in 34 classes of products proved to be negatively related to at least one measure of human capital or technology endowment (low technology products). This result is consistent with the Heckscher-Ohlin theorem and other literature (e.g. Cali et al. 2016; Miroudot and Squicciarini 2015) that documents how skills are a key factor for countries to raise domestic value content in their exports. It is also in line with the studies by Mora (2002), Harrigan (1997) and Dollar (1993) that indicate technological differences and complementary technical labour as a source of comparative advantage and international specialisation. Comparative advantages in 21 products did not result in any statistically significant association with human capital or technology endowment (medium-technology or heterogeneous classes of products). Contrasting statistically significant coefficients were obtained for 5 products (Table 10).

In 2001, comparative advantages in 25 classes of products have been positively associated withFootnote 18 at least one measure of human capital or technology endowment (high technology products); comparative advantages in 35 products exhibited a negative association with at least one measure of human capital or technology endowment (low technology products). Comparative advantages in 26 products have not been found significantly related to any measure of human capital or technology endowments (medium-technology or heterogeneous classes of products). Contrasting statistically significant coefficients were registered for 5 products (Table 11).

In particular, high-human capital intensive products – identified by significantly positive estimates of at least one human capital-coefficient in both 2001 and 2019 – are organic chemicals; tanning, paints and varnishes; albuminoidal substances; soaps; plastics and articles thereof; paper, paperboard and articles thereof; man-made filaments; copper and articles thereof; machinery, mechanical appliances, nuclear reactors, boilers; electrical machinery; vehicles rather than railways and tramways; ships and boats. This means that the production of these goods is located mainly in countries with a relatively higher human capital or technology endowment, most likely because they are intensive of human or technological capital (Tables 7 and 8).

Low-technology or human capital products—identified by significantly negative estimates of at least one of the human capital or technology endowment coefficient in 2001 and 2019—include products of animal origin; lac, gums; vegetable plaiting materials; preparations of meat, fish; preparations of cocoa; vegetable preparations; miscellaneous edible products; residues food industries; furskins; prepared feathers; umbrella; clocks and watches; works of art. This suggests that the production of these goods can be found in countries with a relatively lower human capital or technology endowment since they have a low-human capital or technology intensity (Tables 7 and 8). This result is consistent with the analysis by the World Bank (2016) that showed that recent trade dynamics generate an adverse impact on the comparative advantages of developing countries. Global value chains, in fact, demand skills and capabilities that are in short supply in developing countries and weaken their traditional comparative advantage in unskilled labour (Rodrick 2018).

Medium-human capital intensive or heterogeneous products—identified by statistically not significant coefficients in 2001 and 2019—embrace photographic goods; raw hides, skins and leather; glass and glassware; lead; base metals; railways and tramways; aircraft and parts thereof; musical instruments (Tables 7 and 8).

With reference to intermediate products (Table 9), electronic integrated circuits, parts and accessories for motor vehicles, parts of aircraft and spacecraft, and parts of telephone sets or other wireless networks turned out to be technology-intensive both in 2001 and in 2019.

To evaluate more specifically the shifts in comparative advantages revealed by the human capital coefficient behaviour, we construct the comparative advantage shift-matrix (Fig. 1).

Fig. 1
figure 1

The comparative advantage shift-matrix

This matrix emphasises the movements in manufacturing sectors across countries over time. The matrix of Fig. 2 shows 3 × 3 possible situations that can be encountered when analysing the combinations of the product content, the statistical significance and the sign of at least one human capital or technology coefficient of the model. The first positions (in red) in each cell refer to year 1, in our case 2001; the second positions (in blue) refer to year 2, i.e. 2019. The signs of the human capital coefficients can be negative and significant (-*) implying a low-human capital and/or low technology product and country when there is at least one significantly negative coefficient; positive and significant (+ *) implying a high-human capital and/or high technology product and country when there is at least one significant positive coefficient; not significant (− or +) implying a mid-human capital, mid-technology product and country or heterogeneous products and countryFootnote 19 when there are not significant coefficients. When the sign of significant coefficients diverges we consider the prevailing sign among the three coefficients. Few cases remained undetermined. Figure 2 reports the detailed results.

Fig. 2
figure 2

The comparative advantage shift-matrix 2001-2019

The empirical evidence suggests an increasing statistical significance of human capital-coefficients for some products and a decreasing statistical significance of human capital-coefficients for other products between 2001 and 2019 (Fig. 2).

An increase over time of the statistical significance of human capital or technology coefficients points to a shift of comparative advantage towards countries with higher human capital or technology endowments. A decline over time of the human capital or technology coefficients suggests a shift of comparative advantage towards countries with lower human capital or technology endowments. In particular, products above the bisector of the matrix show a shift towards a higher human capital or technology intensity and their production would be localized in countries with higher human and technological capital. Products below the bisector highlight movements towards a lower human capital or technology intensity and thus a production localized in countries with lower human and technological capital endowments.

Between 2001 and 2019, the estimates reveal a shift from the class of mid-technology or heterogeneous products to the class of high-technology products for fertilizers; rubber; silk; articles of iron, articles of steel; articles of zinc; tools and cutlery and miscellaneous manufactures.

While in 2001 the human capital or technology coefficients were significantly negative for a set of products (i.e. beverages; preparation of cereals; tobacco; inorganic chemicals; explosives and pyrotechnic products; pulp of wood; vegetable textile fibres; arms and ammunitions), they turned out to be not significant in 2019.

The human capital or technology intensity has decreased from high to mid-level for pharmaceutical products; printing industry; miscellaneous articles of base metals; optical, photographic, cinematographic, medical or surgical instruments.

The human capital or technology intensity has dropped from mid to low-level for animal or vegetable fats and oils; sugars; ores; other made-up textile articles; ceramics; nickel; tin and related products; toys, games, sport equipment.

All products along the main diagonal (bold italic cells) of the matrix have not registered any shift in their human capital or technology intensity between 2001 and 2019. Such a finding would lend support to the analysis by Krugman (1987) in which the patterns of specialisation, once established, tend to persist and extend over time. Thus, for instance, vehicles other than tramways and railways, ships and boats; machinery, mechanical appliances, miscellaneous chemicals and the majority of the considered intermediates enter this category.

Regarding the scale-coefficients, a significantly positive value identifies products in which countries with a larger home market have a comparative advantage (Weder 2003; Davis and Weinstein 2003). This is the case, for instance, of railway or tramway locomotives, rolling stock, miscellaneous chemicals, tools and cutlery, articles of leathers, soap and explosives both in 2001 and 2019. Economies of scales have become less relevant for aircraft, spacecraft and part thereof; vehicles rather than railways and optical products in 2019. They have become more relevant for iron, aluminium and steel; ships, boats and floating structures and machinery, man-made filaments, paperboard and electronic integrated circuits. The scale-coefficient is significantly negative for copper, pulp of wood, cultured pearls in 2019, indicating that countries with a larger home market have a comparative disadvantage in these products.

According to Hufbauer (1970) and Katrak (1973), a significantly positive scale-coefficient would identify a product characterised by relatively larger scale economies. According to Drèze (1960), instead, this would identify a product which not only has relatively larger scale economies but is also characterised by a relatively low degree of standardisation of international demand, i.e. a product for which only the countries with a larger home market can take the full benefits of scale economies.

5 Conclusions

The present study has examined the patterns of comparative advantages in manufactures for 91 (final and intermediate) products and 42 countries in 2001 and 2019. As a measure of comparative advantages, we have adopted the difference between the symmetric Balassa index for exports minus the symmetric Balassa index for imports, whose values range from – 2 to 2. For each product, this index of comparative advantages has been related to three measures of a country’s human capital endowment—the cost of labour, the level of formal education and the number of patents per capita—and a measure of home market size, mainly added as a control variable. The cross-sectional estimates show that comparative advantages in most of the manufactures are significantly associated with inter-country differences in human capital endowments and/or innovative performance of countries, as well as a country’s home-market size.

In 2019, comparative advantages in 65 products are related to the human capital or technology endowment. Specifically, comparative advantages in 31 products turned out to be positively and significantly associated with at least one of the three indicators of a country’s human capital endowment or technology. Comparative advantages in 34 products were negatively and significantly associated with at least one indicator of the human capital or technology endowment. For five products, one of the human capital coefficients was significantly positive, but another one was significantly negative; for 21 products, none of the human capital or technology coefficients turned out to be significantly different from zero. These results provide additional evidence of the importance of human capital or technology for international specialisation in manufactures. From 2001 to 2019, 33 products shifted from one to another class, 51 products presented no shifts, while 7 products remained undetermined. Delving more deeply into the parts and components of final goods, we find that fragmentation seems to be related to a magnification of comparative advantages as countries tend to specialise in activities that require more skilled workers.

The possibility of distinguishing between high and low-technology products could have some interesting policy implications, since high-technology products seem to create a higher rate of learning by doing externalities, and hence contribute more to the upgrade of the human capital or technology endowment of a country.

Despite the usual caveat related to the hypotheses of the model, the results regarding the behaviour of the labour cost, level of education and patents coefficients have been rather interesting. For 17 classes of products, the results point to shifts of some of the human capital coefficients from significantly negative or non-significantly different from zero values to significantly positive values, suggesting a shift over time of comparative advantages towards higher-technology countries. A reverse pattern has been registered for 15 classes of products that shifted towards lower-technology countries. This stems primarily from the fact that innovation and technological capital entail progressive improvements in the quality of products and the fragmentation of production across borders generates a finer international division of labour and greater specialisation in tasks.

The main implication of these results is that the shifts of productive activities towards low-wage countries are less pervasive and disruptive than one would expect under the product-life cycle model. The reason is due to the characteristics of the current international specialisation that takes place more and more at the level of different productive phases of increasingly complex products and production processes rather than at the final-product level. Hence, public policy should be directed to support firms to upgrade the quality of existing products and foster the level of education and training. In general, the satisfactory international performance of most high wage countries is quite clear by comparing the trade dynamics and current account balances of high wage and low wage countries.

According to the OECD estimates (Economic Outlook, May 2021), in 2019 (the most recent normal year before the Covid pandemic) the greatest surpluses in current account balances as a percentage of GDP have been registered by high-wage countries such as the Netherlands (9.9%), Switzerland (6.7%), Ireland (9.1%), Norway (8.1%), Germany (7.24%), Denmark (8.9%), Korea (3.6%), Japan (3.45%). Italy has registered on average in 2019 a current account surplus of 3.3% of GDP, but if we consider only the northern regions, the surplus would have been more than 8% of GDP. Among high-wage countries, a significantly negative current account balance has been registered in 2019 only by the US (− 2.2%) and the UK (− 3.1%). On the other side, most low-wage countries have registered in 2019 a negative or near to zero current account balance: Argentina − 0.75%, Turkey − 3.1%, Greece − 1.5%, India − 0.8%, Slovak republic − 2.7%, Poland 0.5%, Portugal − 0.4%, China 0.73%. These data are dramatically inconsistent with the impression of a large scale delocation process from high-wage towards low-wage countries!