1 Introduction

In recent years, several scholars have looked at how trade openness affects the environment [96, 106]. The theoretical literature has identified a variety of pathways via which trade openness can have an influence on the environment, even though the actual findings on the link between trade openness and the environment remain contradictory [63, 68, 70, 76, 77]. Antweiler et al. [6] present a theoretical framework in which the environmental impacts associated to trade openness are divided into scale, technique, and composition effects. This approach is inspired by the pioneering work of Grossman and Krueger [36, 38]. Extensive literature has resulted from the search for empirical evidence of these many environmental influences, with inconsistent and contradictory findings [79, 80, 82, 83, 85, 86, 90, 91, 107].

A growing number of people are now worried about climate change and global warming because of their detrimental consequences on people. A substantial study priority on the causes and effects of environmental deterioration has resulted from this [95]. It is not shocking that the environment is recognized by Beeson [20] as the defining public policy concern of the era. The policy of environmental protection has garnered the attention of several governments across the world. For instance, from 1980 to 2005, the total amount of CO2 emissions worldwide attributed to human activity on the African continent was little under 2.5% [106, 110,111,112]. More recently, the continent is responsible for 5.3% of the world's greenhouse gases (GHGs) from all non-land use sectors and 3.0% of the world's carbon from fossil fuels [1]. These figures support SADC's efforts to cut emissions in accordance with the UN Framework Convention on Climate Change. However, Southern Africa has contributed 31% of Africa’s deforested land since 1990, which is the greatest pace in the continent. 54% of the continent's biomass carbon losses result from deforestation in SADC member states. Deforestation and degradation together produce carbon emissions that are more than five times as great as all other sources combined. The region is a strong option for this case study since stopping deforestation and lowering CO2 emissions are the highest priorities for climate change mitigation in the area. The SADC region is a particularly interesting case because it has pushed for urgent measures to manage and conserve the region's forests sustainably, implemented laws to help people adapt to climate change, and taken part in campaigns to mitigate the effects of rising global temperatures and lessen their potential harm to the region.

Earlier research on the relationship between trade and CO2 emissions frequently assumes that the cointegrating relationship between the nonstationary stochastic regressors is symmetrically linear; as a result, they frequently fail to consider the possibility of a nonlinear relationship [2, 3, 5, 100, 101]. Thus, their findings imply that an increase in trade openness causes a proportionate increase in CO2 emissions, but a decrease in trade openness may cause a proportionate decrease in CO2 emissions. But how accurate is this statement? The existence of nonlinearity has received little to no attention in previous research since the cointegrating connection is frequently represented as linear.

There may be nonlinearity in the link between trade openness and CO2 emissions due to trade liberalization (such as a reduction in tariff barriers) and technology diffusion [7,8,9,10,11,12,13,14]. Reduced tariffs are expected to stimulate trade and have a positive effect on the environment. According to the theory supporting the existence of a nonlinear and/or asymmetric relationship between trade openness and CO2 emissions, trade liberalization policies can have a nonlinear impact on the relationship between trade openness and the environment when set against endogenous trade frameworks based on imperfect competition. For instance, nonlinearity is conceivable in the case when a minimal reduction in existing high trade barriers results in an improvement to the environment, while liberalization of low trade barriers results in an increase in welfare [7, 16, 19]. Furthermore, historical trade data reveal that international tariff levels have only slightly decreased despite multiple rounds of multilateral trade discussions at the WTO and GATT. Another significant potential source of nonlinearity in the link between trade openness and the environment is technological diffusion resulting from trade. Since the positive impacts of technology diffusion are susceptible to diminishing returns, it is predicted that increased commerce may have nonlinear consequences on the environment.

In addition, many macroeconomic variables and processes have long been known to have nonlinear interactions. For instance, Keynes [54] made a significant observation that had a lasting impact on the field: "The replacement of a downward for an upward propensity always occurs aggressively and unexpectedly; however, as a rule, there is an absence of such a sharp turning point when an upward for a downward inclination." Recent research in economics and behavioral finance have provided compelling evidence that supports nonlinearity and asymmetry, highlighting how these ideas are pervasive in the social sciences and, thus, essential to understanding human behavior.Footnote 1

Additionally, since the mid-1990s, a large body of literature has included the combined topics of non-stationarity and nonlinearity, which is heavily dominated by three regime-switching models: the threshold ECM of Balke and Fomby [17], the Markov-switching ECM developed by Psaradakis et al. [75], and the smooth transition regression ECM associated with Kapetanios et al. [51]. These works' development demonstrates that there is insufficient data in linear frameworks to draw sound conclusions or make accurate predictions. This research suggests that the presumption of a linear relationship is quite constrictive across a wide variety of economic phenomena, especially when it comes to the connection between trade openness and CO2 emissions. The literature mentioned above gives us reason to think that trade openness and CO2 emissions may have an asymmetric and nonlinear connection. If this were to occur, the implications for policy would be considerably different than when this connection is linear.

Additionally, earlier studies that looked at the dynamic interaction between trade and the environment, such as Hussain et al. [42], Hu et al. [41], Abbas et al. [1], Wen et al. [108], and Ali et al. [4], widely employed trade intensity (TI) as a proxy for trade openness. This measure of trade openness, which is often calculated as the total of imports and exports divided by GDP, exclusively considers a nation's trading performance in relation to its own internal economy. The TI-based proxy, which penalizes larger economies owing to their higher GDP by categorizing and portraying them as the closed economies, often overlooks a country's openness to international trade and is unable to represent the precise impact of trade openness on the environment [92]. Although this metric makes sense, it is unable to fully address the ambiguity surrounding the notion of actual trade openness and the methods used to quantify it. The main drawback of using the TI-based metric is that it only accurately reflects a country's portion of the income from international trade. The apparent inability of this proxy to account for the importance of a nation's trade in relation to global trade is another sign of its flaw. As a result, the TI-based proxy is unable to accurately reflect the benefits and drawbacks of dealing with other countries, failing to adequately convey the impact of trade openness on the environment.

Against this backdrop, our work makes two contributions: First, by using a flexible and straightforward nonlinear dynamic approach that can concurrently and clearly model the asymmetries between member countries of the SADC region in the effects of trade openness on CO2 emissions, the paper makes a contribution to the empirical literature. As far as we are aware, there has not been any work done to investigate and model the potential for nonlinearity in the trade-environment interaction for the SADC. Since the assumption of linearity has considerable policy consequences, this is a notable gap in the research. The present research that are based on the assumption of linearity should be reconsidered since their findings may be erroneous and deceptive if the connection between trade openness and CO2 emissions is genuinely nonlinear. By employing the methodology of Shin et al. [89]’s autoregressive distributed lags (NARDL) framework, this study closes a gap in the literature. By calculating both positive and negative partial sum decompositions of trade, short- and long-run nonlinearities are clearly checked for. Second, in contrast to other research, the current analysis develops and makes use of a novel proxy for trade openness proposed by Squalli and Wilson [92] that takes into consideration both the magnitude of trade relative to global trade in a particular year as well as SADC’s trade proportion to GDP. We are better able to capture the environmental consequences of trade openness using this proxy for trade openness than we are using the TI-based proxy, which sets our work apart from comparable studies in SADC and sub-Saharan countries.

The remainder of the work is organized as follows: The trade-environment nexus is covered in detail in Sect.  2 of the relevant literature. The framework for the methodology is covered in Sect.  3 Section 4 discusses the findings, and Sect.  5 ends with implications for policy.

2 Literature review

There are three parts to this section. In the first section, the theoretical literature is discussed. The empirical literature on the connection between trade and CO2 emissions is reviewed in the second section. The knowledge gaps in the extant literature on the relationship between trade and CO2 emissions are compiled in the last section.

2.1 Theoretical literature

The environmental Kuznets Curve (EKC) theory was the first to suggest a connection between trade openness and the environment, and it gained prominence in the early 1990s. Among the pioneers in the field, Grossman and Krueger [36,37,38] and Copeland and Taylor [24] investigated the relationship between trade and the environment. When the environmental effects of the North American Free Trade Agreement (NAFTA) were being researched, Grossman and Krueger [38] provided the fundamental theoretical framework for investigating the EKC hypothesis. However, after the 1992 Earth Summit in Rio de Janeiro, Brazil, literature on the growth-environment nexus began to appear. This was made possible by Shafik and Bandyopadhyay [84]'s monumental work, which served as a crucial background study for the World Development Report. It was stated that environmental improvement is essential for sustainable growth. Since then, there has been a significant body of work examining the link between development and environmental quality, but due to conflicting findings, there is now even less clarity on the true environmental effects of trade openness. Meanwhile, conflicting findings has prompted more research on the subject by a large number of scholars throughout the globe.

Examples are Udeagha and Ngepah [102, 103], who used the EKC hypothesis, and Kearsley and Riddel [52], who used the pollution haven hypothesis (PHH), neither of which were able to draw any firm conclusions on the environmental effects of trade openness. Grether and De Melo [35] discovered that trade openness directly causes environmental degradation due to inflows of trading activities from the affluent nations and indirectly promotes environmental degradation by boosting economic development in third world countries. Dinda [27] stated that because affluent countries' companies frequently confront strict environmental regulations, pollution is shifted to developing nations by their industries when they move to less developed nations with laxer regulations. The well-known pollution haven hypothesis (PHH) and its counterpart, the factor endowment hypothesis (FEH), are two examples of how this notion has acquired popularity. The final point relates to the exodus of polluting, capital-intensive businesses from relatively wealthy nations, which has led to a decline in the environmental quality of emerging nations. A country with a competitive advantage in producing filthy, capital-intensive commodities would constantly boost production to accommodate the expanding export market, which raises pollution levels, according to the argument that trade openness will increase carbon emissions in PHH and FEH [69].

The three trade impacts on environmental quality—scale, technique, and composition effects—were highlighted by Antweiler et al. [6], one of the first writers to present a thorough theoretical framework. The scale effect is the increase in environmental harm and depletion of natural resources brought on by an increase in economic activity and increased demand [37, 60]. The technique effect refers to the potential for enforcing stricter environmental regulations that result in a cleaner production process as income increases. Additionally, an increase in income further stimulates people's desire for a less carbon-intensive environment and better environmental practices [53]. The composition impact, on the other hand, illustrates how the structure of the industry and the composition of output influence the environment, which is primarily influenced by the degree of national openness together with comparative advantage [21]. The net effect of the composition effect due to trade openness might be favorable or negative depending on the relative magnitude of the capital-labor impact and the implications of environmental regulation [50].

2.2 Empirical literature

The trade-environment nexus literature is extensive on the empirical front. But the evidence provided by these investigations is generally contradictory or, at best, equivocal.Footnote 2 While some research found that trade openness improves environmental quality through a variety of routes [104], others claimed that trade openness worsens the state of the environment [106]. Contrarily, a different group of studies discovered solid proof that increased trade openness had no effect on the environment [94].

An empirical study by Pata et al. [72] discovered that, for the Association of Southeast Asian Nations (ASEAN) nations between 1995 and 2018, trade openness enhances environmental quality. Mahmood [61] came to the same findings, noting that from 1970 to 2019, trade in Latin America had a net positive environmental impact. Additionally, Ding et al. [114] demonstrated that greater trade openness helps G-7 economies’ environmental quality. They did this by using cross-sectional autoregressive distributed lag (CS-ARDL) and augmented mean group (AMG) methodologies. Additionally, Ibrahim and Ajide [115] discovered that trade openness slows down environmental deterioration using the common correlated effect mean group (CCEMG) and mean group (MG) in the instance of G-20 nations. Similar to this, Ibrahim and Ajide [116], who utilized trade facilitation (TF) as a measure of trade openness for 48 Sub-Saharan African nations for the period spanning 2005–2014, note that TF is ecologically friendly and supports environmental quality in the region. Khan et al. [117] provide evidence for the expanding importance of trade openness using the AMG and CCEMG techniques.

In contrast, Suhrab et al. [93], who used annual time series data from 1985 to 2018 to assess the impact of GDP, urbanization, trade openness, financial development, and renewable energy use on CO2 emissions in Pakistan, discovered evidence that trade openness worsens environmental quality. In a similar vein, Omri and Saadaoui [71] discovered that from 1980 to 2020, environmental deterioration in France was greatly exacerbated by trade openness. In a similar vein, Ibrahim [43] discovered that trade openness contributed significantly to environmental deterioration in G20 nations utilizing a system generalized method of moments (GMM), fully modified ordinary least squares (FM-OLS), and quantile regression estimators. Additionally, when trade openness is increased, environmental degradation is more severe in low middle-income countries than upper middle-income countries, according to Chhabra et al. who studied the impact of trade openness and innovation in reducing CO2 emissions in middle-income countries. Furthermore, Wenlong et al. [109] discovered that trade openness significantly impacted the decline of environmental quality in 10 Asian economies between 1995 and 2018. Similar to this, an empirical research by Khan et al. [118] shows that trade liberalization worsens Pakistan's environmental situation. Ibrahim and Ajide [119], who find that trade openness causes a rise in CO2 emissions in the G-7, also support this empirical evidence. Van Tran [120], who shows that trade openness affects the environmental state in 66 emerging economies during the period of 1971–2017, obtained similar results. Khan and Ozturk [121] conclude that trade openness increases CO2 emissions for 88 developing countries during the period of 2000–2014 using the difference and system generalized technique of moments. Additionally, according to Ali et al. [122], opening up the OICFootnote 3 nations' markets to foreign goods has a negative impact and significantly worsens their environmental circumstances. The analysis conducted by Aydin and Turan [123] for China and India between 1996 and 2016 lends more credence to this evidence.

2.3 Summarizing literature gaps

Despite the broad prominence of earlier research, a number of significant gaps remained, which are taken into account in this work. The significant gaps that were found are listed below: First, the analysis of the aforementioned empirical literature leads us to the conclusion that there is a wealth of evidence on the linear relationship between trade openness and CO2 emissions. The asymmetric impact of trade openness on CO2 emissions, particularly with reference to the SADC area, is not, however, well-examined in the literature. Prior research on the trade-environment interaction mostly neglected the potential of nonlinearity until Awokuse and Christopoulos [7] recently emphasized it. The existence of nonlinearities in the relationships between many macroeconomic variables has been amply supported by a large number of empirical works on related subjects, including GDP growth, oil prices, exchange rates, stock prices, and many others. It has also been shown that this idea is becoming more apparent in research on business cycles and exchange rate dynamics. It is reasonable to anticipate the possibility of nonlinearity in the link between trade and the environment if a business cycle, such as a change in GDP, is likely to display an expressively nonlinear tendency. Because of this, there is still a need for study on the nonlinear/asymmetric consequences of trade openness. Asymmetry and structural breaks are absent from most of the current studies, which is why our research makes a contribution by examining the asymmetric link between trade openness and CO2 emissions in the SADC area. Finally, a one-dimensional trade proxy that fails to fully reflect the environmental effects of trade openness has been criticized in studies that examined the relationship between trade openness and CO2 emissions. The trade share in GDP and the magnitude of the trade relative to global trade were two factors that earlier studies failed to consider since they did not use the composite trade intensity (CTI) developed by Squalli and Wilson [92].

3 Methodology and data

3.1 Methodology

The asymmetric link between trade openness and CO2 emissions among SADC area member nations is investigated in this study using the following methodology. The first stage is the introduction of the dynamic adjustment process, which is frequently utilized to mimic the dynamic interactions between I (1) variables utilizing an error-correction model-ECM [30]. In light of Pesaran et al. [73], the following is the ARDL specification without asymmetry in short- and long-run dynamics:

$$\Delta {InCO}_{2t}=\mu +\rho {InCO}_{2t-1}+\pi In{OPEN}_{t-1}+\sum_{i=1}^{p-1}{\alpha }_{i}\Delta {InCO}_{2t-1}+\sum_{i=0}^{q-1}{\beta }_{i}\Delta In{OPEN}_{t-1}+{\varepsilon }_{t}$$
(1)

where \(\Delta\) denotes the first difference operator and \({\varepsilon }_{t}\) represents the white noise term. The investigation deals with two-step procedures where Schwarz's Bayesian Information Criterion (SBIC) is used to select the optimal lag length and thereafter OLS is used to run the equation [74]. This procedure helps to fix the problems associated with endogeneity. More importantly, Eq. (1) is used to capture only the symmetric relationship between trade openness and CO2 emissions under the assumption that the fundamental cointegrating relationship is symmetrically linear. In addition, it is expected that the decomposed partial sum processes of positive and negative effects of trade openness are both the same.

However, this approach may provide misleading results and flawed policy conclusions. To fix this problem, the study adopts the nonlinear autoregressive distributed lags (NARDL) modelling strategy proposed by Shin et al. [89] to capture the nonlinearity and asymmetries in the trade-CO2 emissions nexus. Because of its effectiveness in the presence of mix order of integration, the NARDL methodology is considered more appropriate which follows the lower and upper bound F-values. By considering the first differenced stationary variables i.e. I(1), the upper bound values are provided, whereas by assuming level stationary variables i.e. I(0), the lower bound values are given. Many economic variables are either I(0) or I(1). Also, using this framework permits to test for the asymmetric effects of \({InOPEN}_{t}^{+}\) and \({InOPEN}_{t}^{-}\) on CO2 emissions for SADC region. Consequently, it enables us to examine the effect of a decrease in trade openness on CO2 emissions in relation to the effect of a rise in trade openness on CO2 emissions. This analysis becomes crucial because the size of the effect of a negative change differs from that of a positive change in the absolute terms. Remarkably, this methodology has been fruitfully adopted to model short- and long-run asymmetric cointegrating associations between exchange rates, stock returns and other financial variables for the industrialised and other emerging economies [15, 25, 39, 40, 44,45,46,47].

In addition, the NARDL framework can be used to get a unified model that is able to combine nonlinearities in the long-run association and the error correction mechanism coherently unlike other nonlinear frameworks such as the smooth transition regression ECM developed by Kapetanios et al. [51], the Markov-switching ECM of Psaradakis et al. [75] and the threshold ECM associated with Balke and Fomby [17]. Meanwhile, it may be non-trivialFootnote 4 in practice to select the regime-switching variables and the transition functional forms (Shin et al. Thus, developing an operational model of this kind may be extremely challenging [55,56,57,58, 81]. Given this, in this paper, we use a nonlinear modelling framework based on the ARDL approach that offers a simple and flexible vehicle for the investigation of joint long- and short-run asymmetries. To this end, for instance, a negative shock is likely to have a more absolute impact in the short-run, whereas a positive shock is likely to have a bigger absolute impact in the long-run (or vice-versa). The simple and flexible nature of NARDL methodology makes it an ideal framework used to capture such a complex phenomenon. Thus, it includes a regime-switching cointegrating relationship where regime transitions are controlled by the sign of change in the explanatory variable \({(\Delta x}_{t})\). Hence, reasoning from this direction suggests that equilibrium does not need to be unique in a universally linear sense.

So, following Shin et al. [89], changes of trade openness variable are decomposed into partial sum processes of positive and negative components to capture their asymmetric impacts on CO2 emissions. The two components constructed to capture these effects are as follows:

$${InOPEN}_{t}^{+}=\sum_{j=1}^{t}\Delta {InOPEN}_{j}^{+}=\sum_{j=1}^{t}max\left(\Delta {InOPEN}_{j}, 0\right)$$
(2)
$${InOPEN}_{t}^{-}=\sum_{j=1}^{t}\Delta {InOPEN}_{j}^{-}=\sum_{j=1}^{t}min\left(\Delta {InOPEN}_{j}, 0\right)$$
(3)

where \(\Delta\) denotes the first difference operator; \({InOPEN}_{t}^{+}\) and \({InOPEN}_{t}^{-}\) represent respectively the partial sum processes of positive (increases) and negative(decreases) changes in trade policy in the period t. A more general cointegrating methodology is obtained by extending the ARDL approach in Eq. (1) and replacing the \(In{OPEN}_{t}\) variable with \({InOPEN}_{t}^{+}\) and \({InOPEN}_{t}^{-}\) to introduce the combined short- and long-run dynamics:

$$\Delta {InCO}_{2t}=\mu +\rho {InCO}_{2t-1}+{\pi }^{+}{InOPEN}_{t-1}^{+}+{\pi }^{-}{InOPEN}_{t-1}^{-}+\sum_{i=1}^{p-1}{\alpha }_{i}\Delta {InCO}_{2t-1}+\sum_{i=0}^{q-1}\left({\beta }_{i}^{+}\Delta {InOPEN}_{t-1}^{+}+{\beta }_{i}^{-}\Delta {InOPEN}_{t-1}^{-}\right) +{\varepsilon }_{t}$$
(4)

By applying a similar procedure associated with Eq. (1), Shin et al. [89] demonstrate that Eq. (4) can be run and the nonlinearity is thus added into the model by the partial sum decompositions of trade policy variable. The superscripts ( − ) and ( +) respectively represent the negative and positive partial sum decompositions of lagged levels. The short-run adjustments of trade openness to CO2 emissions are captured by the coefficients \({\beta }_{i}^{+}\) and \({\beta }_{i}^{-}\). The paper uses the Schwarz’s Bayesian Information Criterion (SBIC) to select the optimal lag length specification of the models.

We follow Banerjee et al. [18] t-test, testing \(\rho =0, against \rho <0\) in Eq. (4). Next, the pragmatic bounds-testing procedure is applied following Pesaran et al. [73]. Thus, using an F-statistic, the joint null hypothesis (\({H}_{0}:\rho ={\pi }^{+}={\pi }^{-}=0\)) is tested against the alternative hypothesis (\({H}_{1}:\rho \ne {\pi }^{+}\ne {\pi }^{-}\ne 0\)). This modelling methodology is advantageous because of its validity ‘regardless of whether the basic regressors are I(0), or I(1) or mutually cointegrated’. The two tests highlighted above are respectively denoted by \({t}_{BDM}\) and \({F}_{PSS}\). Shin et al. [89] demonstrate that the bounds-testing procedure can equally be applied to Eq. (4). Hence, the \({InOPEN}_{t}^{+}\) and \({InOPEN}_{t}^{-}\) variables are seen as one variableFootnote 5 in which the same critical values for the F-test used in Eq. (1) are employed, even though Eq. (4) has one additional variable. In general, the appropriate critical value bounds for the \({F}_{PSS}\) test is dependent on the number of regressors which enter the long-run relationship [89]. The values of k are 1, 2, 2 and 1 for symmetric ARDL, NARDL with combined short- and long-run asymmetry, NARDL with long-run asymmetry and NARDL with short-run asymmetry respectively.

Once the cointegrating relationship is established between the two variables, we subsequently obtain information about three aspects of asymmetric effects following the estimation of Eq. (4). First, we obtain the short-run asymmetry adjustment if \(\Delta {InOPEN}_{t-1}^{+}\) contains several lags which are different from \(\Delta {InOPEN}_{t-1}^{-}\). Second, if \(\sum_{i=0}^{q-1}{\beta }_{i}^{+}\ne \sum_{i=0}^{q-1}{\beta }_{i}^{-}\), the short-run asymmetry becomes valid. Lastly, there will be present of the long-run asymmetry if the coefficient on \({InOPEN}_{t-1}^{+}\) is different from \({InOPEN}_{t-1}^{-}\). Using the Wald test, we test the null hypothesis that \({\theta }^{+}={\theta }^{-}, where\, {\theta }^{+}=\frac{{\pi }^{+}}{-\rho }\,and\, {\theta }^{-}=\frac{{\pi }^{-}}{-\rho }\) in Eq. (4) to draw a conclusion whether asymmetry exits. The model of Eq. (4) will be transformed into the traditional ARDL framework (i.e. Equation (1)) suppose the null hypothesis is accepted, i.e. if symmetry exists in the relationship between trade openness and CO2 emissions. But, suppose the null hypothesis is rejected, the model is then reduced to the cointegrating NARDL, with short- and long-run asymmetries presented respectively in Eqs. (5), (6) below:

$$\Delta {InCO}_{2t}=\mu +\rho {InCO}_{2t-1}+\pi {InOPEN}_{t-1}+\sum_{i=1}^{p-1}{\alpha }_{i}\Delta {InCO}_{2t-1}+\sum_{i=0}^{q-1}\left({\beta }_{i}^{+}\Delta {InOPEN}_{t-1}^{+}+{\beta }_{i}^{-}\Delta {InOPEN}_{t-1}^{-}\right) +{\varepsilon }_{t}$$
(5)
$$\Delta {InCO}_{2t}=\mu +\rho {InCO}_{2t-1}+{\pi }^{+}{InOPEN}_{t-1}^{+}+{\pi }^{-}{InOPEN}_{t-1}^{-}+\sum_{i=1}^{p-1}{\alpha }_{i}\Delta {InCO}_{2t-1}+\sum_{i=0}^{q-1}{\beta }_{i}\Delta InOPE{N}_{t-1} +{\varepsilon }_{t}$$
(6)

The responses of CO2 emissions to increases and decreases in trade openness can be quantified through the asymmetric dynamic multipliers as follows:

$${m}_{h}^{t}={\sum }_{j=0}^{h}\left(\frac{{\partial InCO}_{2t+j}}{\partial {InOPEN}_{t}^{+}}\right)\mathrm{and }{m}_{h}^{-}={\sum }_{j=0}^{h}\left(\frac{{\partial InCO}_{2t+j}}{\partial {InOPEN}_{t}^{-}}\right),\mathrm{h}=0, 1, 2,\dots$$

By construction, when \(h\to \infty , {m}_{h}^{t}\to {\theta }^{+}, and {m}_{h}^{-}\to {\theta }^{-}\), then \({\theta }^{+}and {\theta }^{-}\) are the asymmetric long-run coefficients as shown above. We can see, through the estimated multipliers, the direction from the old to the new equilibrium arising from a negative or positive shock and the corresponding period of the temporary disequilibria in the short run.

3.2 Data

The paper uses annual data covering the period 1960–2020. In this paper, CO2 emissions (kg per 2010 US$ of GDP) represents environmental quality is treated as the dependent variable. The trade openness variable is proxied using the composite trade intensity (CTI) as suggested by Squalli and Wilson [92] and it is demonstrated below. Both variables are sourced from the World Bank World Development Indicators (WDI).

Table 1 presents the descriptive statistics and stochastic properties of both variables together with the results of the normality and unit root tests. Based on top five countries in SADC region, CO2 emissions have an average value of 1.313 (kg per 2010 US$ of GDP), 1.102, 0.978, 0.471 and 0.385 in South Africa, Lesotho, Zimbabwe, Mozambique and Botswana respectively reach a peak of 1.611 (kg per 2010 US$ of GDP), 1.361, 1.333, 1.421 and 0.592 respectively over the period 1960 to 2020. For Angola, Comoros, DRC, Lesotho, Madagascar, Malawi, Mauritius, Seychelles, Tanzania, Zambia and Zimbabwe, CO2 emissions follow the normal distribution while the opposite is the case for Botswana, Mozambique, Namibia and South Africa. Over the same period, trade openness has an average value of 97.016, 62.439, 55.715, 47.161 and 46.815 in South Africa, Angola, Mauritius, Botswana and Namibia respectively and reaches a peak of 135.622, 89.685, 67.987, 75.129 and 70.388 respectively. Table 1 further shows that both variables, after first differencing, become stationary using the Zivot and Andrews [113] unit root test which is robust to structural breaks.

Table 1 Descriptive statistics

3.3 Measuring trade openness

The measure of trade openness, which is used in this paper is called the composite trade intensity (CTI). The CTI-based proxy was originally introduced by Squalli and Wilson [92] to address the problems with the traditional trade intensity (TI) which has been widely used in the previous literature. The CTI contains more crucial information that shows the contribution of a country to the world economy and its impact on the global economy. Intuitively, CTI represents TI adjusted by the share of a country’s trade level in relation to average international trade. The novelty of using the CTI-based proxy is that it captures two dimensions of a country’s ties with the rest of the world. The CTI is presented as:

$$CTI =\frac{{(X+M)}_{i}}{\frac{1}{n}{\sum }_{j=1}^{n}{(X+M)}_{j}} \frac{{(X+M)}_{i}}{{GDP}_{i}}$$
(7)

where: i denotes SADC in this case; j represents its trading partners; the first part of the Eq. (6) captures world trade intensity (WTI) while the second part represents SADC’s trade intensity.

As highlighted by Squalli and Wilson [92], the CTI-based measure of trade openness is advantageous over traditional TI as follows: (i) CTI takes into consideration not only the trade share of a country’s GDP but also the relative size of trade in relation to world trade in a given period; (ii) it is considered a better measure since it is more precise to capture the impact of trade openness on the environment; (iii) because it accounts for both TI and WTI, the adjustment is not always extreme; (iv) it considers two aspects of openness (i.e. TI and WTI) that capture the correct trade openness (the first dimension looks at the proportion of total income of SADC related to its international trade, whereas the second aspect highlights the comparative importance of SADC’s contribution in world trade); (v) it considers real trade flows instead of potential trade flows as emphasized by lax or liberal trade policies as well as other important socioeconomic, geographic and demographic factors; (vi) it captures the gains derived from trading quite rigorously with the rest of the world; (vii) as established by Squalli and Wilson [92], using the TI-based proxies penalises bigger countries by seeing them as closed economies because their trade share of total economic activities are considerably small by world standards, therefore closed to trade benefits. However, using CTI, the world’s largest trading economies such as China, Japan, USA, Germany, etc. are now seen to be open rather than closed economies. So, the proxy classifies more completely the degree of trade openness that countries enjoy.

4 Results and discussion

4.1 Asymmetric effects of trade openness on CO2 emissions

Firstly, trade openness and CO2 emissions are tested for cointegration. The bounds of the critical values of \({t}_{BDM}\) and \({F}_{PSS}\) are reported in Table 2.

Table 2 Critical values of the cointegration tests

To analyse the asymmetric effects of trade openness on CO2 emissions, this study uses the NARDL approach. The general to specific approach is used to select the proper model specification associated with the appropriate equations capturing the symmetric ARDL and NARDL models. The approach involves starting with max p = max q = 12 and dropping all insignificant variables (i.e. stepwise regression). The Huber-White covariance methodology has been applied for the diminution of heteroscedasticity and the estimation of results for SADC member countries are individually reported and analysed below.

4.1.1 Angola

In the case of Angola (Table 3), the cointegration tests \({t}_{BDM}\) and \({F}_{PSS}\) in the restricted symmetric model are − 3.635 and 5.710, respectively. This evidence leads to rejection of the null hypothesis of no long-run relationship at the 10% significance level. However, at the 5% significance level, there is no solid inference to be drawn. Similarly, in the NARDL model with short-run asymmetry, the null hypothesis is rejected even at the 5% significance level. On the other hand, no evidence of cointegrating relationship between trade openness and CO2 emissions is detected when long-run asymmetries are examined.

Table 3 Full-information estimates of both symmetric ARDL and nonlinear ARDL (NARDL) models in Angola

Evidence from the Wald tests suggests absence of asymmetric behaviour for both short- and long-runs in the specific pair-wise relationship in both cases under review. Therefore, CO2 emissions in Angola appear to respond similarly to trade openness increases and decreases. Given this evidence, the symmetric ARDL specification is thus investigated henceforth. The long-run coefficient \({L}_{InOpen}\) is negative (− 0.395) and highly statistically significant, suggesting that a 1% increase (decrease) in trade openness brings about improvement (deterioration) in the environmental quality by 0.395% in the long-run, holding other things constant. Our findings are in line with those of Pata et al. [72], who found that, between 1995 and 2018, trade openness improved environmental quality for countries in the Association of Southeast Asian Nations (ASEAN). Similar conclusions were reached by Mahmood [61], who noted that trade in Latin America had a net beneficial environmental impact between 1970 and 2019. Additionally, Ding et al. [114] showed that improved trade openness benefits the environmental quality of G-7 countries. In their study of the effects of economic growth (EG), capital formation (CF), and consumption of renewable and non-renewable energy (NRE) on CO2 emissions and ecological footprint (EF) of 17 OECD countries spanning data from 1970 to 2016, Mujtaba et al. [65] found that economic growth and gross capital formation dampen environmental quality in the OECD region over the sampled period. The bottom part of Table 3 reports the results of diagnostic tests which show that all the models are well fitted having passed all the diagnostic tests. The tests show absence of misspecification in both symmetric ARDL and NARDL models, absence of serial correlation in all the models and residuals follow normal distribution based on the Jarque–Bera statistic.

4.1.2 Botswana

The estimation results of the four specifications for the relationship between trade openness and CO2 emissions in Botswana are reported in Table 4.

Table 4 Full-information estimates of both symmetric ARDL and nonlinear ARDL (NARDL) models in Botswana

The cointegration tests \({t}_{BDM} and {F}_{PSS}\) in the symmetric ARDL model are − 4.614 and 6.251 respectively. Since the \({t}_{BDM} and {F}_{PSS}\) cointegration tests are higher than the bounds critical values at both 5% and 10% significance levels, the null hypothesis of no cointegration is thus rejected. This evidence suggests presence of long-run relationship between trade openness and CO2 emissions in Botswana. The last-mentioned is also applicable to the NARDL model with long-run asymmetry, whereas there is no evidence of cointegrating relationship between these two variables under review in the case of NARDL model with short-run asymmetry.

Evidence from the Wald tests shows that there is a strong asymmetric behaviour in the long-run responses of CO2 emissions to trade openness variations. Nevertheless, in the short-run, CO2 emissions in Botswana seem to respond similarly to trade openness increases and decreases. Therefore, the most suitable framework to analyse this is the NARDL model with long-run asymmetry. Given the fact that there is ample evidence of long-run relationship between the two variables under review, the long-run coefficients \({L}_{{InOpen}^{+}}\) and \({L}_{{InOpen}^{-}}\) being highly statistically significant are negative (− 0.299) and positive (0.426) respectively. The results therefore suggest that a 1% increase in trade openness leads to a fall in CO2 emissions by 0.299%, whereas a 1% decrease in trade openness results in deterioration of the environmental condition by 0.426% in the long-run, ceteris paribus. Also, the particular NARDL model shows evidence of no general misspecification, absence of serial correlation and presence of normality in residuals. Our findings are in line with those made by Pata et al. [72], who found that, for the countries of the Association of Southeast Asian Nations (ASEAN), between 1995 and 2018, trade openness improves environmental quality. Similar conclusions were reached by Mahmood [61], who noted that from 1970 to 2019, commerce in Latin America had a net beneficial environmental impact. Additionally, Ding et al. [114] showed that improved environmental quality benefits from higher economic openness among the G-7 nations. In their study of the effects of economic growth (EG), capital formation (CF), and consumption of renewable and non-renewable energy (NRE) on CO2 emissions and ecological footprint (EF) of 17 OECD countries spanning data from 1970 to 2016, Mujtaba et al. [65] found that economic growth and gross capital formation dampen environmental quality in the OECD region over the sampled period.

4.1.3 Comoros

In the case of Comoros (Table 5), there is a statistically robust long-run relationship between trade openness and CO2 emissions, where the null hypothesis of no long-run relationship is rejected across all four specifications (symmetric, SR and LR asymmetry, LR asymmetry and SR asymmetry) at the 5% significance level. This evidence implies that the two variables share a historical cointegrating relationship.

Table 5 Full-information estimates of both symmetric ARDL and nonlinear ARDL (NARDL) models in Comoros

The next step involves conducting a test to determine the possible short- or long-run asymmetries using the Wald test. The null of symmetry is rejected by both tests suggesting a different response of CO2 emissions to trade openness deviations both in the short- and long-runs. Following this evidence, the right methodology for hypothesis testing is the NARDL model where both short- and long-term asymmetries are incorporated. The long-run coefficients \({L}_{{InOpen}^{+}}\) and \({L}_{{InOpen}^{-}}\) are statistically significant at 1% and affect CO2 emissions in a negative and positive manner respectively. A 1% increase in trade openness results in a decrease in CO2 emissions by 0.040%, while a corresponding drop gives rise to a 0.467% increase. Finally, the precise NARDL model shows evidence of no general misspecification, absence of serial correlation and presence of normality in residuals. Our findings support those of Pata et al. [72], who found that trade openness improves environmental quality for the Association of Southeast Asian Nations (ASEAN) countries between 1995 and 2018. Mahmood [61] reached a similar conclusion and noted that trade in Latin America had a net beneficial environmental impact between 1970 and 2019. Increased trade openness also improves the environmental quality of G-7 economies, as shown by Ding et al. in [114]. In their study of the effects of economic growth (EG), capital formation (CF), and consumption of renewable and non-renewable energy (NRE) on CO2 emissions and ecological footprint (EF) of 17 OECD countries spanning data from 1970 to 2016, Mujtaba et al. [65] found that economic growth and gross capital formation dampen environmental quality in the OECD region over the sampled period.

4.1.4 Democratic Republic of Congo (DRC)

The results for the asymmetric effect of trade openness on CO2 emissions in DRC are reported in Table 6. The cointegration statistics of the restricted model \({t}_{BDM} and {F}_{PSS}\) are equal to − 5.671 and 10.215, respectively. This evidence shows that the null hypothesis is rejected even at the 5% significance level, indicating a clear cointegrating relationship between the two variables. Similarly, when an asymmetric behaviour is examined, evidence of this long-run relationship is also found.

Table 6 Full-information estimates of both symmetric ARDL and nonlinear ARDL (NARDL) models in Democratic Republic of Congo

Evidence from the Wald tests suggests absence of asymmetric behaviour for both short- and long-runs in the specific pair-wise relationship in both cases under review. Therefore, CO2 emissions in DRC appear to respond similarly to trade openness increases and decreases. Given this evidence, the symmetric ARDL specification is thus investigated henceforth. The long-run coefficient \({L}_{InOpen}\) is negative (− 1.589) and highly statistically significant, suggesting that a 1% increase (decrease) in trade openness results in improvement (deterioration) in the environmental quality by 1.589% in the long run, ceteris paribus. Our findings are in line with those of Pata et al. [72], who found that, for the Association of Southeast Asian Nations (ASEAN) countries between 1995 and 2018, trade openness improves environmental quality. Mahmood [61] also reached the similar conclusions, indicating that from 1970 to 2019, trade in Latin America had a net beneficial environmental impact. Furthermore, Ding et al. [114] showed that improved trade openness benefits the environmental quality of G-7 countries. In their study of the effects of economic growth (EG), capital formation (CF), and consumption of renewable and non-renewable energy (NRE) on CO2 emissions and ecological footprint (EF) of 17 OECD countries spanning data from 1970 to 2016, Mujtaba et al. [65] found that economic growth and gross capital formation dampen environmental quality in the OECD region over the sampled period. In relevance to the diagnostic tests of the symmetric specification, the model is well fitted since it passes all the diagnostic tests. The tests suggest that the model does not suffer either from serial correlation or from some form of general misspecification. The Jarque–Bera statistic suggests that the residuals follow normal distribution.

4.1.5 Lesotho

Table 7 reports the estimated results of the four models specified for the trade-CO2 emissions relationship in Lesotho. The cointegration tests show evidence of long-run relationship between the two variables when the symmetric ARDL is examined. The null is rejected at 10% significance level, although there is no explicit conclusion to be drawn at 5%. By contrast, when asymmetries are considered, the null hypothesis of no cointegration fails to be rejected.

Table 7 Full-information estimates of both symmetric ARDL and nonlinear ARDL (NARDL) models in Lesotho

The Wald tests, when implemented, show that there is no evidence of asymmetric behaviour because both short- and long-run asymmetry cannot be observed, at least not a statistically significant one and, therefore, the symmetric ARDL is under review. The long-run coefficient \({L}_{InOpen}\) is highly statistically significant and equal to 0.517, suggesting that a 1% increase (decrease) in trade openness makes CO2 emissions rise (fall) by 0.517% in the long-run. Evidence from the diagnostic tests shows absence of serial correlation and the model does not suffer from some form of general misspecification, although there is non-normality in residuals. Our findings are in line with those of Pata et al. [72], who found that, for the Association of Southeast Asian Nations (ASEAN) countries between 1995 and 2018, trade openness improves environmental quality. Mahmood [61] also reached the similar conclusions, indicating that from 1970 to 2019, trade in Latin America had a net beneficial environmental impact. Furthermore, Ding et al. [114] showed that improved trade openness benefits the environmental quality of G-7 countries. In their study of the effects of economic growth (EG), capital formation (CF), and consumption of renewable and non-renewable energy (NRE) on CO2 emissions and ecological footprint (EF) of 17 OECD countries spanning data from 1970 to 2016, Mujtaba et al. [65] found that economic growth and gross capital formation dampen environmental quality in the OECD region over the sampled period.

4.1.6 Madagascar

The estimated coefficients of the four specifications for the relationship between trade openness and CO2 emissions in Madagascar are presented in Table 8.

Table 8 Full-information estimates of both symmetric ARDL and nonlinear ARDL (NARDL) models in Madagascar

The cointegration tests \({t}_{BDM} and {F}_{PSS}\) in the symmetric ARDL model are − 6.169 and 7.610 respectively. Since the \({t}_{BDM} and {F}_{PSS}\) cointegration tests are higher than the bounds critical values at both 5% and 10% significance levels, the null is rejected, suggesting presence of cointegrating relationship between trade openness and CO2 emissions in Madagascar. When the three NARDL models are examined, the evidence shows that the null hypothesis is rejected even at the 5% significance level, indicating a clear cointegrating relationship between the two variables.

Evidence from the Wald tests reveals the presence of a strong asymmetric behaviour in the long-run responses of CO2 emissions to trade openness variations. Nevertheless, in the short-run, CO2 emissions in Madagascar appear to respond similarly to trade openness increases and decreases. Hence, the most suitable framework to analyse this is the NARDL model with long-run asymmetry. Given the fact that there is ample evidence of long-run relationship between the two variables under review, the long-run coefficients \({L}_{{InOpen}^{+}}\) and \({L}_{{InOpen}^{-}}\) being highly statistically significant are negative (-0.246) and positive (0.112) respectively. The results therefore suggest that a 1% increase in trade openness leads to a fall in CO2 emissions by 0.246%, whereas a 1% decrease in trade openness results in deterioration of the environmental condition by 0.112% in the long-run, ceteris paribus. Also, the precise asymmetric specification passes all the tests for general misspecification and serial correlation. However, the residuals are not normally distributed. Our results are consistent with Pata et al. (2022), who discovered that, for the Association of Southeast Asian Nations (ASEAN) nations between 1995 and 2018, trade openness enhances environmental quality. Similarly, Mahmood (2022) came to the same findings, noting that from 1970 to 2019, trade in Latin America had a net positive environmental impact. Additionally, Ding et al. (2021) demonstrated that greater trade openness helps G-7 economies’ environmental quality. In their study of the effects of economic growth (EG), capital formation (CF), and consumption of renewable and non-renewable energy (NRE) on CO2 emissions and ecological footprint (EF) of 17 OECD countries spanning data from 1970 to 2016, Mujtaba et al. (2022) found that economic growth and gross capital formation dampen environmental quality in the OECD region over the sampled period.

4.1.7 Malawi

In the case of Malawi (Table 9), the cointegration tests \({t}_{BDM}\) and \({F}_{PSS}\) in the restricted symmetric model are − 3.681 and 5.920, respectively. This evidence leads to rejection of the null hypothesis of no long-run relationship at both 5% and 10% significance levels. On the other hand, in all three NARDL models, there is no long-run relationship between trade openness and CO2 emissions as shown when short-and long-run asymmetries are examined.

Table 9 Full-information estimates of both symmetric ARDL and nonlinear ARDL (NARDL) models in Malawi

Evidence from the Wald tests suggests the absence of asymmetric behaviour for both short- and long-runs in the specific pair-wise relationship in both cases under review. Therefore, CO2 emissions in Malawi appear to respond similarly to trade openness increases and decreases. Given this evidence, the symmetric ARDL specification is thus investigated henceforth. The long-run coefficient \({L}_{InOpen}\) is positive (0.910) and highly statistically significant, suggesting that a 1% increase (decrease) in trade openness brings about deterioration (improvement) in the environmental quality by 0.910% in the long-run. The bottom part of Table 9 reports the results of diagnostic tests which show that the symmetric ARDL model is well fitted since it passes all the diagnostic tests. The tests suggest that the model does not suffer from the general misspecification and serial correlation. Also, the Jarque–Bera statistic shows evidence that the residuals follow normal distribution. Our results are consistent with Pata et al. [72], who discovered that, for the Association of Southeast Asian Nations (ASEAN) nations between 1995 and 2018, trade openness enhances environmental quality. Similarly, Mahmood [61] came to the same findings, noting that from 1970 to 2019, trade in Latin America had a net positive environmental impact. Additionally, Ding et al. [114] demonstrated that greater trade openness helps G-7 economies’ environmental quality. In their study of the effects of economic growth (EG), capital formation (CF), and consumption of renewable and non-renewable energy (NRE) on CO2 emissions and ecological footprint (EF) of 17 OECD countries spanning data from 1970 to 2016, Mujtaba et al. [65] found that economic growth and gross capital formation dampen environmental quality in the OECD region over the sampled period.

4.1.8 Mauritius

The results for the asymmetric effect of trade openness on CO2 emissions in Mauritius are demonstrated in Table 10. The cointegration test results of the restricted model \({t}_{BDM} and {F}_{PSS}\) are equal to − 4.961 and 6.364, respectively. This evidence shows that the null hypothesis is rejected even at the 5% significance level, indicating a clear cointegrating relationship between the two variables. Similarly, when an asymmetric behaviour is examined, evidence of this long-run relationship is also detected.

Table 10 Full-information estimates of both symmetric ARDL and nonlinear ARDL (NARDL) models in Mauritius

The Wald tests for short- and long-run symmetry show that the asymmetric behaviour is not present in the particular pair-wise relationship in neither of the cases under review. Therefore, CO2 emissions in Mauritius seem to respond similarly to trade openness increases and decreases. Given this evidence, the symmetric ARDL specification is thus investigated henceforth. The long-run coefficient \({L}_{InOpen}\) is positive (0.691) and highly statistically significant, suggesting that a 1% increase (decrease) in trade openness brings about deterioration (improvement) in the environmental quality by 0.691% in the long run. In relevance to the diagnostic tests of the symmetric specification, the model is well fitted since it passes all the diagnostic tests. The tests suggest that the residuals follow normal distribution and the model suffers from neither some form of general misspecification nor serial correlation. Our findings are in line with those of Pata et al. [72], who found that, between 1995 and 2018, trade openness improved environmental quality for countries in the ASEAN. Similar conclusions were reached by Mahmood [61], who noted that trade in Latin America had a net beneficial environmental impact between 1970 and 2019. Additionally, Ding et al. [114] showed that improved trade openness benefits the environmental quality of G-7 countries. In their study of the effects of economic growth (EG), capital formation (CF), and consumption of renewable and non-renewable energy (NRE) on CO2 emissions and ecological footprint (EF) of 17 OECD countries spanning data from 1970 to 2016, Mujtaba et al. [65] found that economic growth and gross capital formation dampen environmental quality in the OECD region over the sampled period.

4.1.9 Mozambique

The estimation results of the four specifications for the relationship between trade openness and CO2 emissions in Mozambique are reported in Table 11.

Table 11 Full-information estimates of both symmetric ARDL and nonlinear ARDL (NARDL) models in Mozambique

The cointegration tests \({t}_{BDM} and {F}_{PSS}\) in the symmetric ARDL model are − 4.814 and 5.948 respectively. Since the \({t}_{BDM} and {F}_{PSS}\) cointegration tests are higher than the bounds critical values at both 5% and 10% significance levels, the null is rejected. This rejection suggests that there is ample evidence of long-run relationship between trade openness and CO2 emissions in Mozambique. The last-mentioned applies to all versions of the NARDL model and, consequently, there is evidence of cointegrating relationship between these two variables under review.

Evidence from the Wald tests shows that there is a strong asymmetric behaviour in the long-run responses of CO2 emissions to trade openness variations. Nevertheless, in the short-run, CO2 emissions in Mozambique seem to respond similarly to trade openness increases and decreases. To this end, the appropriate specification for hypothesis testing is the NARDL model with long-run asymmetry. Given the fact that there is ample evidence of long-run relationship between the two variables under review, the long-run coefficients \({L}_{{InOpen}^{+}}\) and \({L}_{{InOpen}^{-}}\) being highly statistically significant at 1% are both positive 1.659 and 0.259 respectively. The results therefore suggest that a 1% increase in trade openness leads to a rise in CO2 emissions by 1.659%, whilst a corresponding drop gives rise to a 0.259% decrease in the long-run, ceteris paribus. Moreover, the specific NARDL model passes all the tests. The tests suggest that the residuals follow normal distribution and the model suffers from neither some form of general misspecification nor serial correlation. Our findings concur with those of Suhrab et al. [93], who discovered that trade openness deteriorates Pakistan's environmental quality. In a similar vein, Omri and Saadaoui [71] found that trade openness significantly aggravated environmental degradation in France between 1980 and 2020. Similar to this, Ibrahim [43] found that trade openness greatly accelerated environmental degradation. Furthermore, Chhabra et al. [22] discovered that environmental degradation is worse in low middle-income nations than higher middle-income countries when trade openness is raised. Furthermore, Wenlong et al. [109] found that, between 1995 and 2018, the degradation of environmental quality in 10 Asian economies was considerably influenced by trade openness. In their study of the effects of economic growth (EG), capital formation (CF), and consumption of renewable and non-renewable energy (NRE) on CO2 emissions and ecological footprint (EF) of 17 OECD countries spanning data from 1970 to 2016, Mujtaba et al. [66] found that economic growth and gross capital formation dampen environmental quality in the OECD region over the sampled period.

4.1.10 Namibia

In the case of Namibia (Table 12), there is a statistically robust long-run relationship between trade openness and CO2 emissions, where the null hypothesis of no long-run relationship is rejected across all four specifications (symmetric, SR and LR asymmetry, LR asymmetry and SR asymmetry) at the 5% significance level. This evidence implies that the two variables share a historical cointegrating relationship.

Table 12 Full-information estimates of both symmetric ARDL and nonlinear ARDL (NARDL) models in Namibia

The next step involves conducting a test to determine the potential short- or long-run asymmetries using the Wald test. The null of symmetry is rejected by both tests suggesting a different response of CO2 emissions to trade openness deviations, not only in the short-, but also in the long-run. Following this evidence, both short- and long-term asymmetries are properly accommodated by the suitable NARDL specification for hypothesis testing. The long-run coefficients \({L}_{{InOpen}^{+}}\) and \({L}_{{InOpen}^{-}}\) are both statistically significant at 1% and affect CO2 emissions in a positive manner. A 1% increase in trade openness results in a rise in CO2 emissions by 0.943%, while a corresponding drop gives rise to a 0.345% decrease. In addition, the asymmetric model passes the tests for serial correlation and general misspecification, although the residuals do not follow the normal distribution. Our findings concur with those of Suhrab et al. [93], who discovered that increased trade openness in Pakistan leads to a decline in environmental quality. In a similar line, Omri and Saadaoui [71] found that, between 1980 and 2020, commercial openness significantly aggravated environmental degradation in France. Similar to this, Ibrahim [43] found that increased trade openness greatly accelerated environmental degradation. Furthermore, Chhabra et al. [22] discovered that lower middle-income nations experience more severe environmental degradation than higher middle-income countries when trade openness is raised. Furthermore, Wenlong et al. [109] found that between 1995 and 2018, environmental quality declined dramatically in 10 Asian nations. They attribute this reduction in part to trade openness. In their study of the effects of economic growth (EG), capital formation (CF), and consumption of renewable and non-renewable energy (NRE) on CO2 emissions and ecological footprint (EF) of 17 OECD countries spanning data from 1970 to 2016, Mujtaba et al. [66] found that economic growth and gross capital formation dampen environmental quality in the OECD region over the sampled period.

4.1.11 Seychelles

Table 13 reports the results of all four models specified for the trade openness-CO2 emissions relationship in Seychelles. The two tests for cointegration display that there is a long-run relationship between the two variables when the symmetric ARDL is examined. The null is rejected at both 10% and 5% significance levels. Similarly, when asymmetries are considered, the null hypothesis of no cointegration is rejected even at 5% significance level.

Table 13 Full-information estimates of both symmetric ARDL and nonlinear ARDL (NARDL) models in South Africa

The Wald tests, when implemented, indicates that there is no evidence of asymmetric behaviour since neither short- nor long-run asymmetry can be detected, at least not a statistically significant one and, hence, the symmetric ARDL is under review. The long-run coefficient \({L}_{InOpen}\) is highly statistically significant and equal to 0.280, suggesting that a 1% increase (decrease) in trade openness makes CO2 emissions rise (fall) by 0.280% in the long-run, ceteris paribus. The diagnostic tests show that the ARDL specification does not have problems of any general misspecification and serial correlation, although the residuals are not normally distributed. Our findings are in line with those of Pata et al. [72], who found that, between 1995 and 2018, trade openness improved environmental quality for countries in the ASEAN. Similar conclusions were reached by Mahmood [61], who noted that trade in Latin America had a net beneficial environmental impact between 1970 and 2019. Additionally, Ding et al. [114] showed that improved trade openness benefits the environmental quality of G-7 countries. In their study of the effects of economic growth (EG), capital formation (CF), and consumption of renewable and non-renewable energy (NRE) on CO2 emissions and ecological footprint (EF) of 17 OECD countries spanning data from 1970 to 2016, Mujtaba et al. [65] found that economic growth and gross capital formation dampen environmental quality in the OECD region over the sampled period.

4.1.12 South Africa

In the case of South Africa (Table 14), there is a statistically robust long-run relationship between trade openness and CO2 emissions, where the null hypothesis of no long-run relationship is rejected across all four specifications (symmetric, SR and LR asymmetry, LR asymmetry and SR asymmetry) at the 5% significance level. This evidence implies that the two variables share a historical cointegrating relationship.

Table 14 Full-information estimates of both symmetric ARDL and nonlinear ARDL (NARDL) models in Seychelles

The next step involves conducting a test to determine the potential short- or long-run asymmetries using the Wald test. In this light, the null of symmetry is rejected by both tests suggesting a different response of CO2 emissions to trade openness deviations, not only in the short-, but also in the long-run. Following this evidence, the right methodology for hypothesis testing is the NARDL model where both short- and long-term asymmetries are incorporated. The long-run coefficients \({L}_{{InOpen}^{+}}\) and \({L}_{{InOpen}^{-}}\) are statistically significant at 1% and affect CO2 emissions in a negative and positive manner respectively. A 1% increase in trade openness results in a decrease in CO2 emissions by 0.532%, while a corresponding drop gives rise to a 0.244% increase. Moreover, the diagnostic tests show, while the residuals are normally distributed, the precise NARDL specification does not suffer from either general misspecification or serial correlation. Our findings are in line with those made by Pata et al. [72], who found that, for the countries of the ASEAN, between 1995 and 2018, trade openness improves environmental quality. Similar conclusions were reached by Mahmood [61], who noted that from 1970 to 2019, trade in Latin America had a net beneficial environmental impact. Additionally, Ding et al. [114] showed that improved environmental quality benefits from higher economic openness among the G-7 nations.

4.1.13 Tanzania

The estimation results of the four specifications for the relationship between trade openness and CO2 emissions in Tanzania are reported in Table 15. The cointegration tests \({t}_{BDM} and {F}_{PSS}\) in the symmetric ARDL model are − 5.915 and 6.568 respectively. Since the \({t}_{BDM} and {F}_{PSS}\) cointegration tests are greater than the bounds critical values at both 5% and 10% significance levels, we reject the null hypothesis of no cointegration. This implies that there is ample evidence of long-run relationship between trade openness and CO2 emissions in Tanzania. When the three versions of NARDL model are examined, the evidence shows that the null hypothesis is rejected even at the 5% significance level, indicating a clear cointegrating relationship between the two variables.

Table 15 Full-information estimates of both symmetric ARDL and nonlinear ARDL (NARDL) models in Tanzania

Evidence from the Wald tests shows that there is a strong asymmetric behaviour in the long-run responses of CO2 emissions to trade openness variations. Nevertheless, in the short-run, CO2 emissions in Tanzania seem to respond similarly to trade openness increases and decreases. Therefore, the most suitable framework to analyse this is the NARDL model with long-run asymmetry. Given the fact that there is ample evidence of long-run relationship between the two variables under review, the long-run coefficients \({L}_{{InOpen}^{+}}\) and \({L}_{{InOpen}^{-}}\) are statistically significant at 1% and affect CO2 emissions in a negative manner. The results therefore suggest that a 1% increase in trade openness leads to a fall in CO2 emissions by 0.381%, whereas a 1% corresponding decrease in trade openness results in decrease in CO2 emissions by 0.927% in the long-run, ceteris paribus. Additionally, the specific NARDL model passes all the tests for serial correlation and general misspecification, although the residuals do not follow the normal distribution. Our findings support those of Pata et al. [72], who found that trade openness improves environmental quality for the ASEAN countries between 1995 and 2018. Mahmood [61] reached a similar conclusion and noted that trade in Latin America had a net beneficial environmental impact between 1970 and 2019. More free trade also improves the environmental quality of G-7 economies, as shown by Ding et al. [114].

4.1.14 Zambia

Table 16 illustrates the estimated coefficients of all four specifications for the trade-CO2 emissions relationship in Zambia. The two tests for cointegration display that there is a long-run relationship between the two variables when the symmetric ARDL is examined. The null is rejected at 10% significance level, although there is no explicit conclusion to be drawn at 5%. By contrast, when asymmetries are considered, the null hypothesis of no cointegration fails to be rejected.

Table 16 Full-information estimates of both symmetric ARDL and nonlinear ARDL (NARDL) models in Zambia

The implementation of the Wald tests documents that there is no evidence of asymmetric behaviour since neither short- nor long-run asymmetry can be detected, at least not a statistically significant one and, hence, the symmetric ARDL is under review. The long-run coefficient \({L}_{InOpen}\) is highly statistically significant and equal to − 0.559, suggesting that a 1% increase (decrease) in trade openness makes CO2 emissions fall (rise) by 0.559% in the long-run. The diagnostic tests show that the residuals do not follow the normal distribution, while there is no evidence of serial correlation or any general misspecification. Our findings are in line with those of Pata et al. [72], who found that, for the ASEAN countries between 1995 and 2018, trade openness improves environmental quality. Mahmood [61] also reached the similar conclusions, indicating that from 1970 to 2019, trade in Latin America had a net beneficial environmental impact. Furthermore, Ding et al. [114] showed that improved trade openness benefits the environmental quality of G-7 countries.

4.1.15 Zimbabwe

In the case of Zimbabwe (Table 17), the cointegration tests \({t}_{BDM}\) and \({F}_{PSS}\) in the restricted symmetric model are − 4.813 and 6.754, respectively. This evidence leads to rejection of the null hypothesis of no long-run relationship at both 5% and 10% significance levels. On the other hand, in all three versions of the NARDL model, no evidence of cointegrating relationship between trade openness and CO2 emissions is detected when short-and long-run asymmetries are examined.

Table 17 Full-information estimates of both symmetric ARDL and nonlinear ARDL (NARDL) models in Zimbabwe

The Wald tests for short- and long-run symmetry show that the asymmetric behaviour is not present in the particular pair-wise relationship in neither of the cases under review. Therefore, CO2 emissions in Zimbabwe seem to respond similarly to trade openness increases and decreases. Given this evidence, the symmetric ARDL specification is thus investigated henceforth. The long-run coefficient \({L}_{InOpen}\) is negative (− 0.381) and highly statistically significant, suggesting that a 1% increase (decrease) in trade openness brings about improvement (deterioration) in the environmental quality by 0.381% in the long-run. The bottom part of Table 17 reports the results of diagnostic tests which show that the symmetric ARDL model is well fitted since it passes all the diagnostic tests. The tests suggest that the model does not suffer from the general misspecification and serial correlation. Also, the Jarque–Bera statistic shows evidence that the residuals are normally distributed. Our findings are in line with those of Pata et al. [72], who found that, between 1995 and 2018, trade openness improved environmental quality for countries in ASEAN. Similar conclusions were reached by Mahmood [61], who noted that commerce in Latin America had a net beneficial environmental impact between 1970 and 2019. Additionally, Ding et al. [114] showed that improved trade openness benefits the environmental quality of G-7 countries.

4.2 Robustness check

We implemented a testing technique that can account for two structural breaks in the model because the traditional unit root tests were unable to detect the presence of structural breaks in the variables. Following Mujtaba and Jena [64], Jena et al. [48] and Mujtaba et al. [65], the study employs the Clemente-Montanes-Reyes (1998) detrended unit root test, and the findings are shown in Table 18 (see Appendix). The variables exhibit two structural breaks in distinct years, as seen in Table 18. Consequently, for robustness check, two dummy variables (D1993 and D2008) are created for the break years of 1993 and 2008 respectively to account for the possibility of structural breaks in the variables. While the 1993 break year was a result of structural economic changes in the region, the 2008 break year was a result of the 2008 global financial crisis, which had a substantial effect on the region. The results, which are shown in Table 19 and are available in the Appendix, imply that structural breaks are not statistically significant. This finding thus suggests that the structural breaks in our model have no impact.

4.3 Implication for sustainability

The Sustainable Development Goals (SDGs) of the United Nations provide a suitable framework for addressing developmental challenges in order to realize a sustainable future free from social, economic, and environmental inequalities and thereby guarantee a greener and healthier planet for future generations. The region's impressive performance across all five goals—Clean Water and Sanitation, Affordable and Clean Energy, Industry, Innovation and Infrastructure, Life on Land and Peace, Justice and Social Institutions, and Climate Action—is substantially responsible for the target’s forward movement. The results of this study strongly relate to the thirteenth goal of the United Nations (Climate Action); in order to realize this goal, the results implore the policymakers and stakeholders of the sampled region to promote the growth of international trade in order to lessen trade protectionism, particularly in terms of technology and the effective use of renewable and non-renewable energy sources. Additionally, it is important to promote the interchange of environmental products and services since they can aid in the fight against climate change. When attempting to better its environment and encourage environmental sustainability, the SADC region should successfully boost its trade policies. Due to the various beneficial effects of international trade on the region's economy, the long-term harmful effects of trade openness on the environment do not warrant serious measures to close the borders. Instead, appropriate action must be taken to guarantee that global trade makes a constructive contribution to reducing the rising level of emissions and achieving regional environmental sustainability. To ensure efficiency in the industrial processes, regional officials should step up their use of eco-friendly technology to transition away from non-renewable energy sources and toward renewable or less carbon-intensive ones. Meanwhile, switching from non-renewable energy sources to alternatives like solar power will significantly lower CO2 emissions in the area. Additionally, in order to address the growing transboundary environmental deterioration and other associated spillover effects, global cooperation to reduce carbon emissions is very essential. To guarantee strong ties with the rest of the world to exchange technologies that might reduce pollution, the SADC region should work toward this goal. To enable a transition to cleaner sectors and a low-carbon economy, governments should, more crucially, include thorough environmental chapters in their trade agreement rules. This will encourage the creation of green goods and services. Additionally, trade policy might be complemented by additional measures to encourage long-term GHG emission reductions and continuously assist the development of innovative technologies that enhance regional environmental conditions and protect the environment globally.

5 Conclusions and policy implications

5.1 Conclusion

Using the Squalli and Wilson (SQ) measure of trade openness, this study examined the asymmetric impact of trade openness on CO2 emissions among Southern African Development Community (SADC) member nations within a NARDL framework. The SQ proxy takes into consideration a country's trade share of its GDP as well as the proportion of its trade volume to the average global trade volume during a certain time period. The research tested for short- and long-run asymmetries and evaluated the impact of negative and positive trade openness on CO2 emissions during the period of 1960–2020 using this approach to gauge trade openness.

The results were different for each country. More specifically, there was evidence of short- and long-run symmetry in Angola, the Democratic Republic of Congo (DRC), Lesotho, Malawi, Mauritius, Seychelles, Zambia and Zimbabwe. This result is in accordance with those reached by Twerefou et al. [94] and Ling et al. [59]. In contrast, long-run asymmetry was present in Botswana, Madagascar, Mozambique and Tanzania, while strong evidence of short- and long-run asymmetry was found in Comoros, Namibia and South Africa, supporting the results reached by Mahmood et al. [62] for the case of Tunisia, Munir and Riaz [67] for Australia, China and USA and Rahmana et al. [78] for Pakistan.

5.2 Policy implications

These findings have important policy ramifications since they suggest that SADC members with both short- and long-term asymmetric connections should work to enhance and change their trade policies in order to cut back on carbon emissions. In this approach, environmental policies that can encourage the manufacturing and trading of eco-friendly items should be strengthened and modified by policymakers [95, 97, 98]. A "tax or subsidy" policy, for instance, might be used to penalize the trade in ecologically hazardous goods while encouraging the trade in eco-friendly ones. Along with offsetting the damaging effects of trade on the environment, adoption of this strategy can speed up the transfer of green technology to SADC member nations.

Furthermore, the area should develop stronger policies to guarantee that trade openness helps to improve their environmental quality because there are many advantages to being open to international goods markets [68, 69]. Therefore, governments should step up their efforts to encourage foreign investors to use modern, environmentally friendly, and cleaner technology. In the end, this will make it possible for the area to switch from non-renewable energy sources to renewable or less carbon-intensive ones, all while maintaining industrial process excellence. The environmental condition of the area will also be significantly improved by substituting solar electricity for non-renewable energy sources.

Additionally, it is crucial to work together globally to reduce the expanding transboundary environmental deterioration as well as numerous spillover consequences. Considering this, regional leaders and governments should work effectively to share technologies that can lower carbon emissions with the rest of the globe [69, 98]. In order to make the transition to cleaner sectors and a low-carbon economy simpler, the SADC member nations should incorporate comprehensive environmental chapters into their trade agreement regulations. In the end, this will support the creation of eco-friendly products and services. Last but not least, other developmental policies could be implemented in conjunction with trade policy reforms in order to promote long-term value for reducing GHG emissions and continuously support the development of new technologies that enhance regional environmental quality and safeguard the environment globally.

5.3 Limitations and potential future study directions

In the instance of the SADC area, the current analysis produced strong empirical results, although it has a number of shortcomings that might be taken into account in further research. The limited availability of the data outside of the sample period, which limits the breadth of the time series analysis used, is one of the investigation's major limitations. Future research utilizing other econometric methods or micro-disaggregated pertinent data may focus on other emerging economies. Additional growth-related elements that were not taken into account in this study, such as institutional quality and natural resources, can be examined in future research. However, CO2 emissions were utilized in this study as an indicator of the state of the environment. Additional research is required to determine whether consumption-based carbon emissions are a reliable indicator of ecological harm, or whether other metrics of carbon footprints, such as ground-level gaseous pollutants, sulfur compounds, volatile organic compounds, hydrocarbons, and unburned hydrocarbons, are more appropriate. The current study uses CO2 emissions as a reflection of environmental deterioration even though they are not the primary cause of ecological pollution. Future research for the SADC area should investigate this connection by taking into account additional ecological contamination factors, such as water pollution and hazardous contaminants. By combining time series data with panel estimate techniques, further research may compare country-specific results to generic panel outputs using far more complicated methodology. This can assist illuminate the existing evidence by providing a comparison analysis with the findings of this inquiry. Last but not least, the investigation's partial consideration of one area is a grave shortcoming. Therefore, for a more comprehensive view, future research should concentrate on examining the moderating influence of trade openness on environmental quality through economic growth, energy consumption, and foreign direct investment in the African panel setting and other regions of the world.