Introduction

The world economy is increasing exponentially by between 3 and 4% per year (Ding et al., 2021). Consequently, there is a significant risk that environmental damage will worsen due to CO2 pollution resulting from the overuse of fossil energy, thus causing global warming (Bennett & James, 2017). With increased economic operations in both established and emerging economies over the last few years, trade and commerce have seen a significant increase in volume. For example, global trade increased by 62% between 2005 and 2015, and this is only one example. According to the World Bank’s 2019 study, the overall contribution of global trade as a proportion of gross domestic product (GDP) reached 58% in 2017, up from 23% in 1960. Indeed, while increased trade flow has generated a plethora of economic advantages, it has also resulted in irreversible environmental damage, such as increased CO2 pollution (Awosusi et al. 2022; Hasanov et al., 2018). From a scholarly perspective, there has been increased focus on the debate surrounding the relationship between trade flow and pollutants. Scholars are examining the trade flow-pollution linkage in the framework of the pollution haven hypothesis (PHH) and carbon leakages. Trade flow is characterized by the movement of contaminating sectors to nations with less strict ecological regulations. Certain wealthy countries have attempted to utilize international trade as a means of decreasing pollution, but this approach has failed as a result of the emissions from the imports and exchange of goods, also known as carbon leakage (Hasanov et al., 2018; Khan et al. 2020a, b, c; Miao et al. 2022b). Moreover, carbon leakages occur when greenhouse gas pollution in one economy increases due to a greenhouse gas output mitigation plan implemented by another economy that has strict environmental targets. As a result, governments worldwide are implementing various eco-innovation approaches, such as clean energy investment, to combat the deteriorating environment. In turn, these tactics help reduce pollution in the long term (Ding et al., 2021).

Meanwhile, SSA suffers from a scarcity of energy. With regard to energy availability, installed capacity, and overall usage, the region’s power industry is severely undeveloped compared to other parts of the world. Energy security in Sub-Saharan African households and commercial sectors make it challenging for countries in the region to continue economic growth. The consequences are severe. Furthermore, the willingness of authorities and investors to expand the continent’s immense energy resources is critical to the region.

Energy output measures the eco-measures achieved from each unit of energy utilized. It is calculated by dividing gross production or economic productivity (e.g., income or GDP) by the overall energy intake (e.g., kilowatt-hours of electricity or barrels of oil equivalent). The concept of energy output and energy intensity is distinct from each other. Essentially, the first is equivalent to GDP per unit of the primary energy mix. In contrast, the latter equals the energy required to produce one unit of output. Energy output contributes to improved ecological integrity by increasing energy performance and lowering the cost of energy (Huaman & Jun, 2014). A rise in energy efficiency results in a reasonably high level of economic activity at the expense of reducing overall energy usage. There are three mechanisms through which energy efficiency influences CO2 pollution. Firstly, a rise in energy productivity decreases the amount of energy utilized per output unit produced. Second, increased energy efficiency contributes to lower energy expenses. Third, increased energy production contributes to a decrease in oil imports, which reduces greenhouse gas pollution. As a result, increasing energy production remains a primary goal in attaining ecological expansion (Choi and Yu 2017). The assessment of energy output growth permits governments to evaluate the efficiency of their energy resource use. Internationally, policymakers’ attention is focused on energy utilization to analyze the prices and advantages of engaging in energy-connected technology. In the USA, policymakers are focusing on energy efficacy. As a result, focusing on energy utilization is critical in terms of recognizing the significance of energy consumption that is both efficient and effective (Bean, 2014).

Although analysis by Shahbaz (2013) as well as Yang et al. (2020) examined the impact of production or territory-based carbon pollution (PCO2), they did not consider the multi-national product development procedure. In this research, CCO2 emissions were not considered, even after accounting for trade flow (imports and exports). CCO2 and PCO2 are the two methods utilized to compute emissions. The usual metric of carbon emissions is PCO2, which does not consider imports and exports. A new CCO2 databank has been constructed, which is computed as the sum of PCO2 + imports minus exports plus other sources of pollution (Peters et al., 2011). Researchers have discovered that the results of analyses depend on two different carbon emissions methodologies for industrialized and emerging nations (Knight & Schor, 2014; Liddle 2018 and Khan et al., 2020a, b, c).

Moreover, the main purpose of this study is to investigate the influence of trade flow, energy intake, and natural resources on CCO2 for SSA counties in order to address ecological and economic difficulties as most developed nations have turned to energy productivity and renewable energies. Approximately 770,000 people die each year on the African continent alone as a result of air pollution, which includes carbon pollution. Furthermore, over 40,000 people die each year as a consequence of pollution caused by biomass gasification greenhouse gases, food yield leftovers, land gas, litter, and alcoholic beverages (Bauer et al. 2019). Since industrial activities account for more than 30% of the world’s energy consumption and produce 20% of global CO2 pollution that is harmful to human health, industrial economies are at risk of producing even more CO2 in the future (Sarpong and Bein, 2020). As African countries seek to modernize their economies, the continent’s ecosystems are likewise at risk of degrading in quality. Although global warming and its detrimental consequences on humans and nature have received considerable attention, a number of researchers have concentrated on measures to minimize these impacts.

Therefore, this study aims to examine the effect of trade flow, income, clean energy, natural resources, and urbanization on consumption-based carbon emissions (CCO2) for the Sub-Saharan African countries, which have gained minimal attention in the literature (Gyamfi 2021). Moreover, the causal connection between CCO2 emissions, trade flow, income, clean energy, natural resources, and urbanization is also examined. However, the moderating role of trade flow and income is examined in the income-CO2 emission relationship for the Sub-Saharan African countries. Again, the study employs a novel technique to access the relationship among the coefficients. The Pesaran (2015) LM test, the Pesaran (2007) CD test, and the Breusch and Pagan (1980) LM test are used to evaluate cross-sectional dependence, while the Pesaran (2007) panel root unit test is used to investigate the integration characteristics of the coefficients. Following that, the analysis uses the Westerlund (2007) test to examine the long-run stable connection between the factors that have been emphasized. To access the long-run connection among the variables, the CS-ARDL technique, which outperforms other techniques in many ways, is utilized. Firstly, it can be employed even if there is a problem with non-stationarity or a varied order of integration. Secondly, this technique takes into account cross-sectional dependence and heterogeneity issues.

The next section presents the summary of the literature. The “Theoretical underpinnings, data, and methodology” section presents the data and methodology. The “Findings and discussion” section presents findings and discussion. The last section presents conclusion and recommendations.

Literature review

Clean energy and CCO 2 emissions relationship

Clean energy is becoming more popular throughout the world due to issues of environmental degradation. As a result, Adebayo and Rjoub (2021) used Westerlund cointegration, cross-sectional augmented autoregressive distributed lag (CS-ARDL) and augmented mean group (AMG) tests to simulate the relationship between clean energy and CCO2 pollution from 1990 to 2017 in Mexico, Indonesia, Nigeria, and Turkey (MINT nations). The authors of this study argued that the usage of clean energy contributes to a decrease in CCO2 emissions. Using second-generation panel cointegration approaches, Khan et al. (2020a) analyzed the impact of clean energy on CCO2 emissions from 1990 to 2017. The results indicated that reducing CCO2 emissions can be accomplished by using clean energy sources. In a similar vein, Khan et al. (2020b) found that clean energy has a considerable impact on reducing CCO2 emissions. Econometric estimations were used to analyze the link between clean energy and CCO2 emissions using data from 1990 to 2017 in China. In contrast, the empirical findings using data of G7 countries from 1990 to 2018 revealed that clean energy is one of the primary factors that contribute to CCO2 emissions (Ding et al., 2021). Hanif (2018) also reported that clean energy has a positive impact on CCO2 emissions. Generalized method of moments (GMM) was used in the study to analyze a panel of 25 upper and lower-middle income countries from 1990 to 2015.

Kirikkaleli and Adebayo (2021) studied the effect of clean energy intake on CCO2 pollution from 1990 to 2015 in India. The findings showed that investments in clean energy reduce CCO2 emissions over the long term. Using data from E-7countries, Hussain et al. (2020) looked at the connection regarding clean energy intake and CCO2 pollution for the period of 1990–2016. The result from the study indicated that usage of clean energy simulates a reduction in CCO2 emissions. A similar outcome is reported in Kirikkaleli et al. (2021) study in Chile. Research showed that Chile’s CCO2 emissions may be reduced via the use of clean energy. Ali and Kirikkaleli (2021a, b) also found substantial correlations between clean energy and CCO2 emissions using data for Italy from 1970 to 2018. The findings showed that employing clean energy reduces CCO2 emissions which could contribute in attaining a greener future. Research by Zhang et al. (2020) examined the energy intake of BRI nations starting 1995–2015. According to the findings, clean energy decreases CO2 emissions in the 56 BRI nations.

Economic growth and CCO 2 relationship

Research on CCO2 emissions has taken into account the enormous impact of economic growth. He et al. (2021) analyzed the case of Mexico using a dataset covering the period from 1990 to 2018. The findings revealed that economic growth predicts CCO2 emissions which could be detrimental to the quality of the environment. Iqbal and Nosheen (2021) studied factors influencing CCO2 emissions in MINT nations from 1990 to 2018. Nonlinear ARDL technique was utilized to examine the relationships between the variables in the research. The examined results specified a correlation between economic growth and CCO2 in Africa. Using ARDL bounds, DOLS, and gradual shift causality tests, Adebayo, Adebayo and Kirikkaleli (2021) studied the impact of economic development on Brazil’s CCO2 emissions between the periods of 1990 to 2018. According to the findings, economic growth in Brazil increases CCO2 emissions giving rise to environmental degradation.

Safi et al. (2021) used second- and third-generation panel cointegration methodologies to examine the effect of economic growth on CCO2 emission of E-7 countries from 1995 to 2018. The findings indicated that economic growth increases CO2 in the short and long run. Zhang et al. (2014) utilized a multi-regional input–output model to examine the differences in CCO2 emissions from China provinces between 2002 and 2007. According to the study’s findings, China’s CCO2 emissions increased as a consequence of economic expansion in several Chinese regions. A similar outcome is attained from Hasanov et al. (2018) study which examined the impact of economic development on CCO2 emissions in nine oil exporting countries during 1995–2013, utilizing a cointegration and error correction model.

Natural resources and CCO 2 relationship

Environmental sustainability is impossible without prudent use of natural resources, and more environmental damage is imminent with an increase in CC02 emissions (Zhang et al., 2018). Kwakwa et al. (2020) investigated the long-run and short-run effects of natural resource exploitation on CCO2 emissions in Ghana. According to the findings, CC02 emissions are influenced by the country’s natural resources.

The relationship between the volatility of carbon emissions and the usage of NR is examined by Yu-Ke et al. (2021). The paper delves at panel data from the G-20 nations between 1995 and 2018. The study argued that G-20 nations’ carbon emissions were reduced significantly by the rents on mineral resources, oil resources, and forest resources. Results found that NR had a significant influence on CO2 emissions and that the large extraction of oil, gas, minerals, and forest resources is not only boosting CO2 pollution but also depleting and destroying the natural environment.

Baloch et al. (2019) examined the impact of natural resources on CC02 emissions in BRICS nations using yearly panel data covering 1990–2015. By using the augmented mean group (AMG) panel method, result found the diverse influence of natural resources on CCO2 emissions across the BRICS nations. According to the findings, natural resources reduce CCO2 emissions in Russia but add to pollution in South Africa. However, natural resource endowment had a considerable impact on CCO2 emissions in host countries (Li et al. 2019). An empirical finding using the Granger causality analysis found evidence that the G7 nations’ consumption of fossil fuels had a significant impact on CCO2 emissions (Gyamfi et al., 2021a, b). This confirms the arguments that natural resource revenues are mostly used to expand production, which increases environmental damage.

Trade flow and CCO 2 relationship

It is assumed that trade flow has a connection to environmental degradation. In the host country, trade is a significant contributor to the emission of CC02. There has been a slew of research looking at the link between trade and carbon dioxide emissions. For example, Ali and Kirikkaleli (2021a, 2021b) used the Gregory–Hansen model to examine the asymmetric influence of trade flow on CCO2 emissions in Italy. Results showed that increased trade flow has a significant impact on CCO2 emissions, indicating that rising trade flow is linked to a decrease in CC02 emissions. Similar findings were discovered in Shekhawat et al. (2021) study on the determinants of consumption-based CCO2 emissions in SAARC countries from 1990 to 2018. The research, in particular, investigates the connection between CCO2 emissions and trade by utilizing traditional and second-generation panel cointegration approaches. The findings show that trade flow decreases CCO2 emissions over the long term. The analysis rejects the “pollution-haven theory” for the SAARC area based on the conclusion of trade flow.

Hassan et al. (2021) and Khan et al. (2020a, b, c) found that trade flow is a significant source of CCO2 emission. A study by Tsagkari et al. (2018) showed that trade flow decreases CC02 emissions. On the other hand, Liddle (2018a) estimate the environmental benefits of trade flow on CC02 emissions. Nonetheless, Liddle (2018b) demonstrated that trade flow is correlated with increased CC02 emissions in 20 Asian countries. Adebayo et al. (2021b) examined the asymmetric effect of trade on CCO2 in MINT countries between 1990 and 2018. The findings of the study show that CCO2 emissions are predicted by trade.

This study adds to the expanding body of knowledge on environmental degradation in a variety of ways: The first distinction of this research is that it employs the newly generated consumption-based carbon emissions (CCO2 emissions) metric, which estimates emissions based on trade flow, clean energy, natural resources, and economic growth. An effective strategy for combating pollution and climate change requires appropriate findings on CCO2. The second unique aspect of this research is that it considers the impact of clean energy consumption on CCO2 emissions in Sub-Saharan African countries. Moreover, to the best of the author’s understanding, this point indicates that this is the first attempt to investigate the influence of trade flow on CCO2 emissions for the SSA group of nations over the period 1990–2018. Furthermore, this study employs sophisticated econometric approaches to examine the unit root test, cointegration, and short- and long-run estimates. For instance, the CS-ARDL model is employed in this work to determine the short- and long-run connection between the variables.

Theoretical underpinning, data, and methodology

Theoretical underpinning and data

Recently, studies on analyzing drivers of environmental deterioration are rising (Li et al. 2020; An et al. 2019; Wang and Lu 2022; Miao et al. 2022a). In this empirical analysis, we aim to assess the effect of trade liberalization as well as clean energy on CCO2 emissions for the case of the SSA nations. Furthermore, we incorporate other determinants of CCO2 emissions such as urbanization and natural resources into the model. The dependent coefficient is CCO2 emissions, while the regressors are trade liberalization, clean energy, economic growth, natural resources, and urbanization. The dataset for CCO2 is gathered from Friedlingstein et al. (2019), and it is measured as metric tons per capita. Economic growth is calculated as GDP per capita, urbanization is calculated as urban population (% of population), clean energy is calculated as % of total final energy consumption, economic globalization is measured as the economic globalization index, trade liberalization is measured as imports plus exports, and natural resource is measured as resource rent % of GDP. Moreover, economic growth, natural resource, and urbanization are sourced from the World Bank database, while clean energy is obtained from the British Petroleum database. Table 1 presents the sources and units of the variables’ measurements. Furthermore, the current research transforms all the variables of investigation into log form to ensure they align with normal distribution (Oladipupo et al. 2021; Adebayo & Kirikkaleli 2021).

Table 1 Description of variables

The current research follows the research conducted by Kirikkaleli and Adebayo (2021) in India. However, the current research compliment their research by adding economic globalization and trade liberalization into the model. The study’s economic function is present in Eq. 1 as follows:

$${CCO}_{2i,t}={\beta }_{0}+{\beta }_{1}{Y}_{i,t}+{\beta }_{2}{CE}_{i,t}+{\beta }_{3}{NR}_{i,t}+{\beta }_{4}{TRL}_{i,t}+{\beta }_{5}{UB}_{i,t}+{\varepsilon }_{i,t}$$
(1)

where CCO2, Y, EG, CE, NR, TRL, and UB stands for CCO2 emissions, income, economic globalization, natural resource, trade liberalization, and urbanization, respectively. Furthermore, \(t\), \(i\), and \(\varepsilon\) represent timeframe, cross-section, i.e. sub-Sahara nations, and error term, respectively. Furthermore, we assess the joint effect of trade liberalization and income on CCO2 emissions. This idea is illustrated in Eq. 2 as follows:

$${CCO}_{2i,t}={\beta }_{0}+{\beta }_{1}{Y}_{i,t}+{\beta }_{2}{CE}_{i,t}+{\beta }_{3}{NR}_{i,t}+{\beta }_{4}{TRL}_{i,t}+{\beta }_{5}{UB}_{i,t}+{\beta }_{6}{Y*TRL}_{i,t}+{\varepsilon }_{i,t}$$
(2)

where the interaction term is denoted by \(\mathrm{Y}*\mathrm{TRL}\). The remaining indicators are the same as Eq. 1.

The rationale of using the variables discussed above in this empirical research is indicated below. Countless studies on these relationships have been undertaken over the years (Akadiri et al. 2021; Usman et al. 2021; Arshian et al. 2021; Shahbaz et al. 2018; Alola et al. 2021). Unfortunately, none of these researchers consider CCO2 emissions in their research. CCO2 emissions is critical, according to Güngör et al. (2021), since it not only considers the world’s supply chain, but also adds to the establishment of pollutants and separates regarding pollutants generated in one nation and pollutants consumed in another. We incorporate Y into the research framework in line with the works of Gyamfi et al. (2021a, b) and Bekun et al. (2021). The current paper uses Sub-Saharan African nations as a case study which are developing nations. It is well established in empirical studies that developing nations favor constant growth over environmental safety. Therefore, Y and CCO2 are projected to have a positive interrelationship. This shows an increment in GDP would degrade environmental quality, i.e., \(\left({\beta }_{1}=\frac{{\theta CCO}_{2}}{\theta Y}>0\right)\). Furthermore, we incorporate economic globalization into the framework in line with Kirikkaleli et al. (2021) and He et al. (2021) studies. Likewise, CE is introduced into the model following the studies of Sarkodie et al. (2021) and Gyamfi et al. (2021a, b). Renewable energy use is anticipated to lessen CCO2 emissions as a result; the interconnection between CE and CCO2 is expected to be negative, i.e., \(\left({\beta }_{2}=\frac{{\theta CCO}_{2}}{\theta CE}<0\right)\). Following the works of Akadiri et al. (2021) and Tufail et al. (2021), NR was inputted into the model and the association with CCO2 emissions is expected to be positive, i.e., \(\left({\beta }_{3}=\frac{{\theta CCO}_{2}}{\theta NR}>0\right)\). Trade liberation effect on CCO2 mixed. For instance, the effect of TRL is expected to be positive, i.e., \(\left({\beta }_{4}=\frac{{\theta CCO}_{2}}{\theta TRL}>0\right)\) if the nations are still at the effect stage, while the effect is expected to be negative, i.e., \(\left({\beta }_{4}=\frac{{\theta CCO}_{2}}{\theta TRL}<0\right)\) if the nations are at the technique and composite stages. Moreover, we incorporate urbanization into the framework following Zhang et al. (2021) and Odugbesan et al. (2021) studies. The UB effect on CCO2 in the sub-Sahara nations is anticipated to be positive, i.e., \(\left({\beta }_{5}=\frac{{\theta CCO}_{2}}{\theta UB}>0\right)\). Lastly, we assessed the joint effect of Y*TRL on CCO2 emissions. The effect is anticipated to be negative, i.e., \(\left({\beta }_{6}=\frac{{\theta CCO}_{2}}{\theta Y*TRL}<0\right)\) if it is ecofriendly and \(\left({\beta }_{6}=\frac{{\theta CCO}_{2}}{\theta Y*TRL}>0\right)\) if not ecofriendly.

Methodology

Cross-sectional dependence and slope heterogeneity tests

With more worldwide globalization and less trade restrictions, cross-sectional dependency (CD) in panel regression is more probable to appear in the contemporary period. Ignoring the CD dilemma and asserting CD can result to estimates that are erroneous, biased, and incorrect. The Pesaran (2015) test is used to determine CD in this research. Similarly, assuming a homogeneous slope coefficient without evaluating for heterogeneity might result in misleading estimator results. As a consequence, Pesaran and Yamagata (2008) developed an improved version of Swamy’s (1970) slope heterogeneity test (SH). It is crucial to check for the presence of CD and SH before obtaining the stationarity properties of variables. The following are the SH test equations:

$${\stackrel{\sim }{\Delta }}_{SH}={\left(N\right)}^\frac{1}{2}{\left(2k\right)}^{-\frac{1}{2}}\left(\frac{1}{N}\tilde{S }-k\right)$$
(3)
$${\stackrel{\sim }{\Delta }}_{ASH}={\left(N\right)}^\frac{1}{2}{\left(\frac{2k(T-k-1}{T+1}\right)}^{-\frac{1}{2}}\left(\frac{1}{N}\tilde{S }-2k\right)$$
(4)

where delta tilde and adjusted delta tilde are shown by \({\stackrel{\sim }{\Delta }}_{SH}\) and \({\stackrel{\sim }{\Delta }}_{ASH}\).

Panel unit root tests

The next stage, we assess the unit root properties of the variables. Therefore, the current paper relies on Pesaran (2007)’s cross-sectional augmented IPS and ADF tests, which are also known as the CADF and CIPS tests. The CADF test equation looks like this;

$${\Delta Y}_{i,t}={\gamma }_{i}+{\gamma }_{i}{Y}_{i,t-1}+{\gamma }_{i}{\overline{X} }_{t-1}+\sum_{l=0}^{p}{\gamma }_{il}\Delta \overline{{Y }_{t-l}}+\sum_{l=1}^{p}{\gamma }_{il}\Delta {Y}_{i,t-l}+{\varepsilon }_{it}$$
(5)

where \(\Delta \overline{{Y }_{t-l}}\) and \({\overline{Y} }_{t-1}\) represent the first differences and lagged averages. Equation 6 also displays the CIPS test statistic calculated by averaging each CADF.

$$\widehat{\mathrm{CIPS}}= \frac{1}{\mathrm{N}}\sum_{\mathrm{i}=1}^{\mathrm{n}}{\mathrm{CADF}}_{\mathrm{i}}$$
(6)

Equation 6 produces the CIPS, which is derived from Eq. 5. Since the 1st-generation unit root tests generate inconsistent results, especially when there is CD in the data, these 2nd-generation unit root tests have lately been employed.

Panel cointegration test

The current paper uses the Westerlund (2007) cointegration test to capture the long-run interconnectedness between CCO2 emissions and the independent variables. Unlike the first-generation cointegration, this technique takes into account CD and slope heterogeneity. The test is depicted as follows:

$$\alpha i\left(L\right)\Delta {y}_{it}={y2}_{it}+{\beta }_{i}\left({y}_{it}-1-{\alpha }_{i}{\mathrm{x}}_{\mathrm{it}}\right)+{\uplambda }_{\mathrm{i}}\left(\mathrm{L}\right){\mathrm{v}}_{\mathrm{it}}+{\upeta }_{\mathrm{i}}$$
(7)

where \({\delta }_{1i}={\beta }_{i}\left(1\right){\widehat{\vartheta }}_{21}-{\beta }_{i}{\lambda }_{1i}+ {\beta }_{i}{\widehat{\vartheta }2}_{i}\mathrm{and}{y2}_{i}= -{\beta }_{i}{\lambda 2}_{i}\)

The following are the test statistics for the Westerlund cointegration:

$$G_t=\frac1N\sum\limits_{i-1}^N\frac{\acute{\alpha}_i}{SE(\alpha_i)}$$
(8)
$${G}_{\alpha }= \frac{1}{N}\sum_{i-1}^{N}\frac{T{\alpha }_{i}}{{\alpha }_{i}(1)}$$
(9)
$${P}_{T}= \frac{\mathrm{\alpha }}{SE(\mathrm{\alpha })}$$
(10)
$${P}_{\alpha }= \mathrm{T\alpha }$$
(11)

The group means statistics, comprising \({G}_{a}\) and \({G}_{t}\), are shown in Eqs. 7 and 8. Panel statistics, comprising \({P}_{a}\) and \({P}_{t}\), are represented by Eqs. 9 and 10.

Cross-section augmented auto-regressive distributed lags (CS-ARDL) test

The CS-ARDL test, introduced by Chudik and Pesaran (2016), is utilized in this work for both long- and short-run evaluations. This test is more efficient and robust than other procedures such as mean group (MG), pooled mean group (PMG), common correlated effect mean group (CCMG), and augmented mean group (AMG) (Wang et al. 2021). The problems of unobserved common components, SH, CD, non-stationarity (mixed order integration), and endogeneity are all addressed by this technique. This is because ignoring unobserved common components will result in erroneous estimation results. The following Equation is a representation of the CS-ARDL:

$${Y}_{it}=\sum_{i=1}^{py}{\pi }_{it}{Y}_{i,t}+\sum_{i=0}^{pz}{\theta }_{i1}^{\iota }{Z}_{i,t-1}+ \sum_{i=0}^{pT}{\phi }_{i1}^{\iota }{Z}_{i,t-1}+{e}_{it}$$
(12)

where \({X}_{t-1}^{-}=\left({Y}_{t-1}^{-},{Z}_{t-{1}^{\iota }}^{-}\right)\iota ,\) average cross-sections are illustrated by \(\overline{{Y }_{t}}\) and \(\overline{{Z }_{t}}\). Moreover, \({X}_{t-1}^{-}\) stand for the averages of both regressors and dependent variable. The coefficients of the mean group and long-run are illustrated as follows in Eqs. 13 and 14.:

$${\widehat{\vartheta }}_{\mathrm{CS}-\mathrm{ARDL},i}=\frac{\sum_{i=0}^{pz}{\widehat{\theta }}_{iI}^{\iota }}{1-\sum_{I=1}^{py}{\widehat{\pi }}_{iI}}$$
(13)
$${\widehat{\vartheta }}_{\mathrm{meangroup}(\mathrm{MG})}=\frac{1}{N}\sum_{i=1}^{N}{\widehat{\vartheta }}_{i}$$
(14)

The current paper also utilizes the FMOLS, DOL, and the AMG approaches as a robustness check for the CS-ARDL long-run association. Furthermore, we utilized the Dumitrescu and Hurlin (2012) causality technique to identify the causal interrelationship among CCO2 emission sand regressors.

Findings and discussion

Preliminary tests outcomes

This section addresses the outcome of the analysis along with a discussion of the study. From the descriptive analysis presented in Table 2, it can be observed that all the coefficients are skewed negatively except for energy CCO2 and income, which have positive skewness. Moreover, the correlation matrix revealed a positive significant connection from all the coefficients except for clean energy, which has a negative significant connection with the dependent variable consumption-based carbon emissions.

Table 2 Descriptive statistics and correlation matrix analysis.

Again, individual time series are examined first for cross-sectional dependence utilizing the Breusch-Pagan LM test, the Pesaran scaled LM test, and the Pesaran CD test, the results of which are shown in Table 3. It is demonstrated by the cross-sectional association analysis that the null assumption of no cross-sectional connection is rejected for all three procedures tested at the 1% level of significance. Furthermore, the Pesaran and Yamagata (2008) SH test is also significant at 1%. This means that in each of the Sub-Saharan African countries, a shock appears to be conveyed to other states within the panel. The results continue to prove the absence of multicollinearity as well as serial autocorrelation among the dataset. Hence, the CADF and CIPS unit root tests of Pesaran (2007) are reported (in Table 4) to support this conclusion for the variables in the study, and the panel cointegration report is shown in Table 5. The unit root results with regard to CIPS and CADF in Table 4 affirm that the factors are stationary at first difference.

Table 3 Cross-sectional dependency (CD) and slope homogeneity (SH) examinations
Table 4 Panel IPS and CIPS unit root test
Table 5 Westerlund cointegration test

Cointegration outcomes

Furthermore, the results of the Westerlund (2007) cointegration evaluation, as shown in Table 4, indicate that there is a long-term connection between the variables of investigation. Affirmation for this conclusion was provided by evidence rejecting the null assumption, which was established by examining the significance of both the group statistics and the panel statistics found. As a result, the relevant panel approaches were used to obtain the long-run cointegrating factors.

CS-ARDL outcomes

Table 6 shows both the long- and short-run outcomes based on the second-generational CS-ARDL technique employed for this analysis. The analysis shows that clean energy and urbanization have a negative effect on consumption-based carbon, while trade flow, income, natural resources, trade flow and income also increase consumption-based carbon emissions in the long run.

Table 6 CS-ARDL technique

To be specific, the outcomes from the analysis presented in Table 6 reveal that a percentage rise in trade flow reduces CCO2 by an average of 0.22% in the long run. The flow of trade has resulted in increased CCO2 pollution in the economies of Sub-Saharan Africa. This has largely happened as result of a rise in the importation of services and goods into the housing and food industries. These consumption habits are frequently related to the acidification of the oceans, climate change, and the extinction of wildlife species. This supports the findings from the World Integrated Trade Solution (WITS) that about 37.49% of imported goods and services into the bloc are consumption goods.Footnote 1 However, according to Wiedmann et al. (2007) and Wiedmann (2009), pollutants associated with imported commodities are frequently moved (exported) from advanced markets to emerging markets for consumption in the home country. Davis and Caldeira (2010) discovered that trade was responsible for approximately 23% of all CO2 emissions globally, based on an analysis of CO2 emissions and trade statistics (2004). Moreover, the outcomes of this study affirmed the findings of Adebayo et al. (2021), Khan et al (2020a, b, c), Safi et al (2021), and Ding et al (2021).

However, the outcomes show that income increases emissions from CCO2 in the long run for the Sub-Saharan African countries. Expansion in economic activity results in an average 0.81% rise in consumption-based carbon pollution over the long term. The positive impact is responsible for the rise in economic activity, which puts stress on energy needs and contributes to a rise in energy usage, thus increasing emissions. Furthermore, a rapid escalation in economic activity has resulted in a sudden expansion in the volume greenhouse gases, posing a threat to the long-term viability of life on the planet. As a result, as economic expansion accelerates, CCO2 pollution rises in tandem. These results are also confirmed by the conclusions of Zhang and Da (2015), Umar et al. (2020), and Dong et al. (2020).

Again, a percentage rise in clean energy decreases CCO2 pollution by 0.127% in the long run. This outcome affirms the findings of Khan et al (2020a, b, c). Given that clean energy technology makes use of the purest and greenest forms of energy that are both durable and meet the demands of both the present and the future, it is an effective means of reducing CCO2.

Nevertheless, natural rent has a positive impact on CCO2 for the SSA nations. This outcome affirms those of Gyamfi (2021) and Ahmad et al. (2020). It can be seen that these countries have a significant level of income that may be used for both export and domestic consumption. This outcome, on the other hand, confirms the notion that the exploitation of natural resources within such countries has never been profitable. Excessive reliance on natural resources results in the degradation of bio-capacity, which is a consequence of the fact that resources cannot be replenished. Some countries also use their natural resources (coal, petroleum, and natural gas) to meet their energy needs, which is a positive development. It has been claimed that the allocation of funds could help a nation to become more self-sufficient by reducing the need for foreign energy imports and increasing the reliance on domestic energy generation with lesser emissions (Ahmed et al. 2020).

Urbanization, on the other hand, also has a positive connection with CCO2 in the long run for the SSA nations. This supports the findings of Salahuddin et al. (2019) and Gyamfi et al (2021a, b). Urbanization helps to stimulate the economy by increasing the population of municipalities that have limited resources. Nevertheless, urbanization increases the demand for transportation, lodging, household equipment, and other necessities of daily life (Lin and Du 2015). Lastly, the interaction between trade flow and income also has a positive connection with CCO2, implying that a percentage rise in the interaction between trade flow and income increases consumption-based carbon emissions by 0.0253% in the long run. This shows that if the Sub-Saharan African countries want to decrease emissions, they should pay significant attention to factors that enhance their economic growth in the long run.

The outcomes for ECM (− 1) are shown in Table 6, which shows that rate of change approaching equilibrium is − 0.3188 for CS-ARDL. In the case of ECM (− 1), the findings indicate that for every year, roughly 31.88% of the imbalance is rectified. Moreover, the variables for the long-run relationships are greater than those for the short-run relationships, due to the fact that the nations of Sub-Saharan Africa are beginning to emerge, and their industrial growth is still in development, which has a positive impact on carbon dioxide pollution (Khan et al 2020a, b, c). However, the short-run analysis shows that clean energy has a negative significant connection with consumption-based carbon emissions, while income has a positive significant connection with consumption-based carbon emissions. Furthermore, the outcomes of AMG, FMOLS, and DOLS all corroborated the CS-ARDL outcomes (Fig. 1).

DH Granger causality outcomes

According to the results of the Dumitrescu and Hurlin (2012) Granger causality test shown in Table 7, it can be seen that there is a feedback connection between the dependent variable CCO2 and other coefficients such as income, clean energy, and urbanization, while natural resources rent has a uni-directional connection with the dependent variable CCO2. However, both trade flow and the interaction between trade flow and income have no connection with the dependent variable CCO2 (Table 8) .

Table 7 Sensitivity check with AMG, FMOLS, and DOLS
Table 8 Dumitrescu and Hurlin (2012) causality Outcomes.

Conclusion and policy direction

Conclusion

Increasing economic activities in emerging countries such as Sub-Saharan African nations raises the demand for energy, which is mostly derived from traditional sources. More traditional energy usage will have a significantly detrimental influence on the environment. As a result, policymakers’ focus has recently shifted to promoting renewable energy generation and consumption across economic activities in order to secure a low-carbon economy. Given this knowledge, we aimed to assess the effect of trade liberalization as well as clean energy on consumption-based carbon emissions (CCO2) for the case of the Sub-Saharan African nations. Furthermore, we incorporated other determinants of CCO2 emissions such as urbanization and natural resource into the model. In addition, the joint effect of income and trade liberalization on CCO2 is examined. To the best of the investigator’s knowledge, this is the first research to assess the joint effect of trade liberation and income on CCO2 emissions. Therefore, the gap in the existing literature is filled. The research utilized a dataset stretching between 1990 and 2018 and second-generation approaches such as CIPS and CADF, Westerlund cointegration, slope heterogeneity, CD, CS-ARDL, and Dumitrescu and Hurlin (2012) causality. The outcomes of the CS and heterogeneity tests supported the utilization of 2nd-generation techniques. Furthermore, the Westerlund cointegration outcomes disclosed evidence of a long-run interconnectedness between CCO2 and the regressors. The outcomes of the CS-ARDL revealed that trade liberalization, income, economic globalization, and urbanization trigger CCO2 emissions, while clean energy mitigates CCO2 emissions. In addition, the joint effect of income and trade liberalization contributes to an increase in CCO2 emissions. Furthermore, the outcomes of the panel causality unveiled that income, trade liberalization, economic globalization, and natural resource can all predict CCO2 emissions significantly. Therefore, any policy recommendations directed towards all the regressors will impact CCO2 emissions.

Policy directions

According to the findings of this study, in order to minimize CCO2 emissions in Sub-Saharan Africa, policymakers should implement a variety of reforms to restrict the use of nonrenewable energy and raise the percentage of renewable energy. Furthermore, public–private partnerships in renewable energy should be fostered in order to develop greener processes of manufacturing. Furthermore, a circular economy for all sectors should be built, with the recycling of waste and industrial products being actively supported. Because of the economic benefits, policymakers in Sub-Saharan Africa should recognize the need to develop innovation, environmental legislation, and green technology in order to effectively reduce ecological deterioration. Growing emissions from expansion and industrialization will represent a threat to ecological protection if this situation continues. As a result, establishing a pervasive forum to boost R&D collaboration, improve publication as well as readiness, augment cooperative measures for green novelty, promote individual interactions, permit the transfer of clean technology, and generate a fully working linkage and enforce research and enterprise-focused projects is urgently needed.

Redesigning applicable regulations on the imports of goods produced by low-energy-intensive sectors and requiring low energy usage is a significant policy instrument that must be adopted and vigorously implemented. Firstly, this will minimize the volume of embodied carbon imported to Sub-Saharan African countries. Second, decreased energy usage means that less non-renewables will be imported for energy production. Emerging economies, such as those in Sub-Saharan Africa, must keep a close eye on carbon emissions to identify if and when they decouple from economic expansion. If they do not, they will have to build models to solve the problem; otherwise, as the pressure of climate change grows, decarbonization will be at the price of their economic expansion.

Fig. 1
figure 1

Graphical outcomes of FMOLS, DOLS, AMG, and CS-ARDL