Introduction

Since sustainable development is a priority issue for policy makers both globally and locally, countries have started to take very serious steps in terms of socio-economic sustainability through a healthy environment. However, an important problem arises here. Because the world economy depends on fossil fuels to a very important ratio in meeting the energy demand, unfortunately, fossil fuels are the most important cause of greenhouse gas emissions (Yu et al. 2022). CO2 emissions are inevitably directly related to the consumption of fossil energy fuels. For this reason, other macroeconomic variables that cause economic progress and economic growth of countries appear as a factor that also increases CO2 emissions. Environmental pollution and CO2 emissions (127%) emerge as a cost of high-income levels (516%, as seen Table 1), especially in upper middle-income countries (UMICs). Better environmental quality and sustainable development have become the main focus of these country groups in the current decade. As it can be seen from Table 1, when we examine the GDP and energy data in 5-year periods, we observe that the per capita income grew by 516% in the 1990–2015 period; it is observed that CO2 emissions have also increased by 127%. It is observed that renewable energy consumption (% of total final energy consumption) decreased by 30%.

Table 1 Upper-middle income countries

As can be seen from Table 1, increased macroeconomic activities in UMICs cause serious damage to human health, ecological disaster, and environmental deficits. The extent of these damages is analyzed by Sarkodie (2018), Shahbaz and Sinha (2019), Akadiri et al. (2019), and Usman et al. (2020) studies. Especially, the European Union countries have set themselves the primary goal of achieving sustainable development goals with effective policies. For this reason, it is essential to know the factors behind this environmental problem and to produce a policy by taking into account the effects of these factors.

There is a consensus in the literature that financial development directly or indirectly helps and positively affects economic growth through different macroeconomic channels, especially through export growth. If a country has a well-functioning financial sector, it can have a positive effect on exports in addition to its effect on output growth. Therefore, it is very important to have a well-developed large financial system in order to have higher export shares in world trade competition. (Shahbaz and Rahman 2014; Hur and Riyanto, 2006; Gokmenoglu et al. 2015). In addition to these effects of financial development, its relationship with environmental pollution is an important research topic. From a theoretical point of view, it is stated that an advanced financial structure can reduce financial costs, which can lead companies to benefit from economies of scale by investing in new production areas and heavy machinery display. However, this situation can lead to environmental pollution. On the other hand, the financial sector has a function that can improve environmental quality due to its promotion of investments in environmentally sensitive and clean technologies. Although the relationship between financial development and CO2 emissions has been discussed for a long time in empirical literature, it is seen that there is no consensus on empirical findings (Shahbaz et al. 2016; Ahmad et al. 2018; Zhao and Yang 2020). As a matter of fact, these findings are quite complex and inconsistent due to different periods, different methodologies, and country groups.

In light of the above assessments, the following research questions are raised: (1) What are the underlying factors of environmental degradation in UMIC countries? (2) What kind of policies can be developed in UMIC countries that can reduce environmental pollution? (3) Can measures to be taken in the context of the development of the financial sector be used as a policy tool in reducing environmental pollution? (4) What kind of energy resources can improve environmental pollution in these countries? (5) Can the economic growth of these countries have an impact on increasing environmental pollution? (6) Can other variables (such as urbanization and commercial openness) be used in the determination of environmental pollution reduction policies in accordance with the environmental pollution literature?

With these research questions, this article, which examines the factors affecting environmental degradation in upper middle income country group by using the variables used that there is no consensus about the results, contributes to the literature through 4 different channels. This article focuses on the link between financial development and CO2 emissions. In general, in the literature, either G7 countries within the scope of developed country groups, EU countries or less developed countries regionally are discussed. The first contribution is to address the upper middle-income countries, which both shape the world economy and are an important source of environmental degradation. The second contribution is related to an important econometric problem in panel studies. The econometrics literature is now moving towards a consensus that it can lead to unreliable results, especially when cross-sectional dependence, which is an important problem in panel data methodology, is not taken into account. Third, since the augmented mean group (AMG) estimator based on the approach suggested by Eberhardt and Bond (2009) and Eberhardt and Teal (2010) is robust to parameter heterogeneity and cross-sectional dependence, AMG approach is employed. Fourth, by including individual results for each country instead of just panel results, we also avoided the problem aggregation bias. Fifth, Dumitrescu-Hurlin panel bootstrap causality approach is used for causal links between variables. Finally, the study presents robust empirical findings that alleviate CO2 emissions. The main finding is that financial development decreases CO2 emissions.

In the light of the contributions mentioned above, the following sections of the study are organized as follows: The second section includes the literature review, while the third section includes econometric methods, model and data. The fourth section dwells on empirical results and discussion. Our last section covers the conclusions and policy recommendations.

A critical review of the literature

Financial development andCO2emissions

Financial development can positively or negatively affect CO2 emissions. Shahbaz et al. (2013b) examines the impact of economic growth and energy consumption and financial development on CO2 emissions for Malaysia in the 1971–2011 period with the ARDL bounds testing approach and shows that economic growth, energy consumption, and foreign direct investments retards environmental quality. The findings also show that financial development decreases CO2 emissions. This result means that financial development has an important role in tackling environmental pollution in the country, because more financial sector development can be interpreted as facilitating more financing at lower costs and indirectly impacting environmental degradation. For India, Boutabba (2014) investigates the determinants of CO2 emissions with ARDL model. According to ARDL results, it is found that financial development is positively linked with CO2 emissions in the long run. In addition, it is found that there is a one-way causal linkage from financial development to CO2 emissions and energy use in the long run. Focusing on the Chinese economy, Ahmad et al. (2018) examine the causes of CO2 emissions for the period 1980–2014, taking into account the effects of economic growth and financial development. They conclude that there is a long-term and positive relationship between financial development, economic growth, energy use, and CO2 emissions. Charfeddine and Kahia (2019) examine the effect of renewable energy consumption and financial development on CO2 emissions and economic growth using the PVAR technique for MENA countries in the period 1980–2015. The results show that both renewable energy consumption and financial development have a slight effect on CO2 emissions. Zhao and Yang (2020) examine the effect of financial development on CO2 emissions in China’s provinces by using the between-dimension, group-mean FMOLS and DOLS estimators, PECM Granger causality test, and PVAR model based on the data during 20012015. The two-way causal relationship between financial development and CO2 emissions in the long term is determined. Financial development delays the inhibitory effect on provincial CO2 emissions. Gok (2020) examines the role of financial development on CO2 emissions with the meta-regression method based on 72 primary studies and 275 estimations, and it is determined that financial development causes environmental degradation.

Acheampong et al. (2020) investigate the impact of financial market development on CO2 emissions intensity for 83 countries, covering the period 1980–2015, taking into account the various stages of financial development between countries. In the study, it is found that general financial market development and its sub-measures such as financial market depth and efficiency reduce CO2 emissions. Moreover, the nonlinear and regulatory effects of financial market development on CO2 emissions intensity are found to differ between countries at different stages of financial development. Khan and Ozturk (2021) examine the relationship between financial development and air quality for a large sample of 88 developing countries over the period 2000–2014. Estimated results based on five different financial development indicators confirm the pollution prevention role of financial development for selected countries. In addition, the results of indirect channels show that financial development also reduces the negative effects of income, trade openness and foreign direct investment on pollution emissions. They conclude that the direct effects of financial development on CO2 emissions are negative, indicating the fact that more financial development will lead to better environmental quality.

Renewable energy consumption and CO2emissions

One of the main determinants of CO2 emissions is renewable energy consumption. In a study for the USA as a developed country, Menyah and Wolde-Rufael (2010) find a unidirectional causality running from CO2 emissions to renewable energy consumption from 1960 to 2007. Shafiei and Salim (2014) examine the determinants of CO2 emissions for OECD countries covering the period 1980–2011. The results of the study show that non-renewable energy consumption increases CO2 emissions, while renewable energy consumption reduces CO2 emissions. In another study for OECD countries, Bilgili et al. (2016) examine the 1977–2010 period for 17 OECD countries and investigate the validity of the environmental Kuznets curve (EKC) hypothesis for CO2 emissions within the framework of renewable energy consumption and emphasize the necessity of renewable consumption to improve environmental quality. Taking a large group of countries, Dong et al. (2020) analyze based on four different income groups to examine the link between renewable energy consumption and CO2 emissions. The findings reveal that renewable energy consumption is negatively correlated with CO2 emissions. But this is not statistically significant. For the BRIICTS countries, Wolde-Rufael and Weldemeskel (2020) indicate that there is a negative link between renewable energy consumption and CO2 emissions by using the PMG-ARDL models over the period 1993–2014. Adebayo et al. (2022) investigate the link between trade openness, renewable energy use, GDP, and CO2 emissions in Sweden for the period 1965–2019. With the new quantitative-over-quantile regression (QQ) approach used in the study, the combination of renewable energy consumption and CO2 emissions in lower and higher quantities (0.1–0.90) shows that the effect of renewable energy consumption on CO2 emissions is negative and most of the quantities are economic. The effect of growth on CO2 emissions is also found to be negative. Usman et al. (2022a, b) analyze financially rich countries for the period 1990–2018. As a result of the study, bidirectional causality is determined between financial development, non-renewable energy, renewable energy, and ecological footprint. Inspired by energy consumption and CO2 studies, many studies have been carried out recently to test the impact of renewable energy consumption on CO2 emissions. Most of the scientists investigating this interaction between variables with different models have pointed out that there is a negative correlation between the variables.

Trade and CO2emissions

The different dynamics of the relationship between trade and CO2 emissions (technological, scale, and compositional effect) are explained in the literature as follows: The increase in trade volume with the technological effect includes not only the transfer of goods but also the transfer of information, reducing environmental damage with technological progress. On the other hand, the scale effect is the negative effect of more production on environmental quality, as more production is produced in the producing country for the purpose of more income, with the increasing trade relationship between countries. Lastly, the composition effect suggests that most underdeveloped countries attract pollution-intensive productions, which then aids in environmental degradation. In other words, while the negative effect of trade on CO2 may occur with scale and composition effect from three possible effects, it simply means that the technological-technical impact has a direct positive effect on CO2 emissions (Jahanger et al. 2021; Usman et al. 2022a, 2022b).

Sánchez-Chóliz and Duarte (2004) examine the Spanish economy’s exports and imports in terms of direct and indirect CO2 emissions (CO2 embodied) produced in Spain and abroad. The results show some export behavior in the Spanish economy, which nevertheless hides significant pollution changes. In addition, they find that the shipping materials, mining and energy, non-metallic industries, chemicals, and metals sectors are the most relevant exporters of CO2 emissions, and other services, construction, shipping materials, and food are the largest importers of CO2 emissions. Yunfeng and Laike (2010) find that 10.03–26.54% of the CO2 emissions of China, which is called a world factory, is produced during export production. However, CO2 emissions from China’s imports account for only 4.40–9.05% of that. According to the results of the study, the rate of CO2 emissions from China’s net exports is large and significant. Jayanthakumaran et al. (2012) compare the world’s two largest transition countries and growing economies, China and India, using the ARDL methodology to test the long- and short-term relationships between growth, trade, energy use, and CO2 emissions. It is concluded that international trade will tend to reduce CO2 emissions (in China in the short term). For Indonesia, Shahbaz et al. (2013a) examine the impact of economic growth, energy consumption, financial development, and trade openness on CO2 emissions by taking the period 1975Q1–2011Q4. They find that trade openness is inversely related to CO2 emissions in Indonesia. Hasanov et al. (2018) explore the effects of exports and imports on CO2 emissions in a panel of nine oil exporting countries. They find that exports and imports play important roles in the formation of consumption-based CO2 emissions in both the long and short run. The magnitudes of the effects of both trade variables on consumption-based CO2 emissions are greater in the long run than in the short run. Muhammad et al. (2020) examine the effects of urbanization and foreign trade on CO2 emissions in 65 BRI countries by using panel quantile regression method, taking the period 2000–2016. As a result of the study, the findings confirm that exports reduce CO2 emissions in low- and high-income countries, while increasing them in lower middle countries. Imports increase CO2 emissions in low-income countries and decrease them in middle- and high-income countries. Zeng et al. (2021), using spatial econometric techniques, examine the relationship between energy trade and CO2 emissions in the period 2000–2014, taking into account a sample of 98 countries. As a result of the study, the magnitude of the contribution of the spatial interaction between developed and developing countries or developed and developing countries through fossil fuel energy trade to global CO2 emissions has fluctuated over time. Dauda et al. (2021) examines the nonlinear link between innovation, CO2 emissions, and trade in 9 African countries from 1990 to 2016, at both the panel and individual country level. They find that trade openness increases CO2 emissions across the panel and reduces CO2 emissions in some countries at the country level. The study confirms the pollution haven hypothesis (PHH) and the pollution halo effect.

Urbanization andCO2emissions

The development of the economy and the emergence of environmental problems are a major challenge facing the world. The environmental Kuznets curve (EKC) examines the dynamic relationship between environmental quality and economic development. The EKC hypothesis proposes that environmental quality first declines, then gradually increases with economic growth, showing an inverted U-shape. There is a broad consensus in the literature that social factors should be added to support this hypothesis. At the beginning of these social factors, urbanization comes as a good proxy variable (Yao et al. 2021; Wang et al. 2022).

Both “ecological modernization” and “urban environmental transition” theories argue that urbanization can have positive and negative effects on the natural environment, and the net effect is difficult to predict in advance. If urbanization is found to have a statistically insignificant effect on CO2 emissions, urbanization will not have a significant effect on CO2 emissions. It is about the positive and negative effects of urbanization on CO2 emissions canceling out (Sadorsky 2014).

Zarzoso and Maruotti (2011) examine the urbanization-CO2 emissions link in developing countries, covering the period 1975–2003, taking into account the dynamics and the presence of heterogeneity in the country sample. As a result of the study, an inverted U-shaped relationship is found between urbanization and CO2 emissions. Zhu et al. (2012) explores the urbanization-CO2 emissions linkage within the framework of STIRPAT using a semi-parametric panel data model with fixed effects in a sample of 20 developing countries over the period 1992–2008. They show a nonlinear relationship between urbanization and CO2 emissions. On the other hand, they confirm an inverted U relationship between urbanization and CO2 emissions which means that the Kuznets hypothesis is not confirmed. Ali et al. (2019) examine the effect of urbanization on CO2 emissions in Pakistan for the period 1972–2014 using the ARDL bounds test. As a result of the study, urbanization increases CO2 emissions and it is concluded that one percent increase in urbanization is associated with a 0.84% increase in CO2 emissions. Also, there is unidirectional short-term causality from urbanization to CO2 emissions. Zhang et al. (2021) use panel data from 25 provinces in China for the years 2008–2017 to empirically estimate the effects of urbanization on CO2 emissions from the construction industry with the STIRPAT model. It is concluded that there is an inverted U-shaped relationship between CO2 emissions and urban economic growth, and the rate of urbanization is negatively related to CO2 emissions. Cheng and Hu (2022) focus on the STIRPAT model to analyze the effects of China’s urbanization and urban sprawl on CO2 emissions from 1997 to 2018. They conclude that both urbanization and urban sprawl increase CO2 emissions.

Econometric methods, model, and data

Econometric methods

Cross-sectional dependency (CSD) is estimated. Failure to take CSD into account may result in spurious and bias regression results (Chudik et al. 2011). For this purpose, CD test developed by Pesaran (2004) is applied in the study. Here, null hypothesis of no CSD is tested against the alternative hypothesis that there is dependence between cross-section units. This test can be expressed as follows:

$$CD=\sqrt{\frac{2T}{N(N-1)}}\left(\sum_{i=1}^{N-1}\sum_{j=i+1}^{N}{\widehat{\rho }}_{ij}\right)$$
(1)

Next step, the slope-homogeneity/heterogeneity is investigated with the help of Pesaran and Yamagata (2007) test. In this test procedure, the null hypothesis is constructed as slope parameters are homogeneous, while the alternative hypothesis assumes that the slope parameters are heterogeneous. This approach uses the following tests:

$$\stackrel{\sim }{\Delta }={\left(N\right)}^\frac{1}{2}{\left(2k\right)}^{-\frac{1}{2}}\left(\frac{1}{N}\tilde{S }-k\right)$$
(3)
$${\stackrel{\sim }{\Delta }}_{Adj.}={\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)

CIPS test of Pesaran (2007) is applied for unit root analysis. This test considers the cross-sectionally augmented ADF (CADF) test as a second generation unit root approach developed by Pesaran (2007). The CADF procedure is based on the following equation:

$${\Delta y}_{it}={\alpha }_{i}+{\beta }_{i}{y}_{it-1}+{\gamma }_{i}{\widehat{y}}_{t-1}+{\theta }_{i}{\Delta \widehat{y}}_{t}+{\varepsilon }_{it}$$
(4)

The Pesaran (2007) calculates CIPS statistics based on CADF statistics as follows:

$$CIPS=\frac{1}{N}\sum_{i=1}^{N}{CADF}_{i}$$
(5)

In both tests, the null hypothesis is that \({H}_{0}:{\beta }_{i}=0\) for all i, whereas the alternative hypothesis is that \({H}_{1}:{\beta }_{i}<0\) for some i.

The study analyzes the long-term relationship between variables using the techniques Kao (1999) and Pedroni (2004). These approaches are well-known as residual-based cointegration methods. In these tests, the null hypothesis, in which there is no cointegration, is tested against the alternative hypothesis that accepts the existence of cointegration.

The AMG forecaster is a technique developed for long-term forecasting and cannot provide a finding of causality relationships between variables. Therefore, in order to guide policy proposals, the study includes the causality test developed by Dumitrescu and Hurlin (2012) in the study of causality relationships between variables. The most important feature of this approach is that it is a panel bootstrap causality test that takes into account CSD. This procedure first focuses on a model such as follows:

$${y}_{it}={\delta }_{i}+\sum_{i=1}^{K}{\gamma }_{i}^{k}{y}_{i,t-k}+\sum_{i=1}^{K}{\theta }_{i}^{k}{x}_{i,t-k}+{\varepsilon }_{i,t}$$
(6)

where \({\delta }_{i}\) is the cross-sectional units; K is the lag length; t is the time period and \({\theta }_{i}^{k}\) is the slope coefficients.

This procedure uses bootstrapped critical values as CSD is taken into account in causality analysis. The null hypothesis of no causality in the panel is tested against the alternative hypothesis of the existence of a causal linkage in at least one cross-section unit. The Zbar (\(\overline{Z }\)) and the Wbar (\(\overline{W }\)) statistics developed by Dumitrescu and Hurlin (2012) are used to test the null hypothesis. The authors calculate test statistics as follows:

$$\overline{W }=\frac{1}{N}\sum_{i=1}^{N}{W}_{i}$$
(7)
$$\overline{Z }=\sqrt{\frac{N}{2K}} \left(\overline{W }-K\right)$$
(8)

Model specification and data

One of the most important variables of the literature investigating the main determinants of CO2 emissions is economic growth. It emits theoretical foundations underneath. It is like, “Oh, my God.” When the environmental Kuznets curve hypothesis is taken into account, the most important variable affecting environmental pollution is per capita income. In addition, when economic growth is considered as an increase in economic activities and production, it also encourages energy use and can affect the environment. Thus, the “economic growth increases CO2 emissions” hypothesis can be determined as the first hypothesis of the study.

The relationship between energy consumption and environmental pollution is frequently seen in the literature of energy and environmental economics. However, some studies appear to be focusing on renewable energy sources to improve environmental quality rather than non-renewable energy sources such as fossil fuels. Renewable energy sources are the focus of research by policymakers and many international institutions focused on climate change as an alternative to environmentally insensitive fossil fuels. Renewable energy sources such as solar energy, water and wind energy are among the energy sources that are not exhausted due to their structure, are environmentally sensitive with renewable properties, and reduce environmental crisis. In this context, the second hypothesis of the study can be established as “renewable energy consumption negatively affects CO2 emissions.”

One of the channels that address the impact of financial development on CO2 emissions is the technology channel. The implementation of new technologies that create energy efficiency here can improve environmental quality. The development of the financial sector can take a role in reducing environmental criterion by financing investments in such technologies. In this case, the third hypothesis of the study can be expressed as “financial development reduces CO2 emissions.”

Urbanization, which can be expressed as the increase of the urban population, can affect CO2 emissions by supporting industrial structure and human capital accumulation on the one hand and economic growth and technological progress on the other. On the other hand, increased economic activities and energy use together with urbanization are considered among the causes of environmental pollution. Thus, the hypothesis “urbanization positively affects CO2 emissions” can be developed as another hypothesis.

Another variable that can affect CO2 emissions is trade openness. Environmental pollution can be caused by the production of products and their consumption by other countries. Therefore, the increase of foreign trade can determine the level of environmental pollution. When the increase in the level of trade openness is considered as the development of foreign trade, the final hypothesis of the study can be constructed as “trade openness supports CO2 emissions.”

It is possible to model the relationship between financial development and CO2 emissions in line with the theoretical evaluations and hypotheses. In this modeling, economic growth, renewable energy consumption, financial development, urbanization, and trade openness can be taken as control variables. Thus, a linear regression equation can be created to describe the relationship between the related variables, such as the following:

$${lnCO}_{2}=f\left(lnGDP, REN, lnFIN, URB, TR\right)$$
(9)

We can write the above equation as follows:

$${lnCO}_{2it}=\mathrm{\alpha }+{\beta }_{1}{lnGDP}_{it}+{\beta }_{2}{REN}_{it}+{\beta }_{3}{lnFIN}_{it}+{\beta }_{4}{URB}_{it}+{\beta }_{5}{TR}_{it}+{\varepsilon }_{it}$$
(10)

Here, CO2 indicates CO2 emissions, which is measured as kilotons of oil equivalent. GDP shows economic growth measured in real GDP per capita. REN refers to renewable energy consumption, which is measured as a percentage of total final energy consumption. FIN indicates financial development as measured by the financial development index. URB is urbanization measured as urban population growth. Finally, we are going to have to TR symbolizes the trade openness measured as the share of total trade in GDP.

α, t, i, and \(\varepsilon\) refer to the constant term, the time, the countries and the error terms, respectively. \({\beta }_{1}\), \({\beta }_{2}\), \({\beta }_{3}\), \({\beta }_{4}\), and \({\beta }_{5}\) are parameters that predict the impact of economic growth, renewable energy consumption, financial development, urbanization and trade openness on CO2 emissions. The CO2, GDP, REN, URB, and TR series are available from the World Bank-World Development Indicators (2021) database and the FIN series is available from the IMF (2021) data site.

In the study, only the logarithm of CO2, GDP, and FIN variables is taken. Table 2 defines the variables used in the study and describes the expected effect of explanatory variables on CO2 emissions. Table 3 presents a list of countries included in the analysis. The main reason for focusing on these countries is that they are all included in the upper-middle income country classification and are developing countries. The reason for the 1990–2018 period in the study is the availability of data. In addition, with the help of Fig. 1, it is possible to see the course that each series follows in the period 1990–2018.

Table 2 Variables and their expected signs
Table 3 Country list
Fig. 1
figure 1

The trends of the series (1990–2018)

Only the logarithm of CO2, GDP, and FIN variables is taken in the study. Table 2 describes the expected effect of arguments on CO2 emissions in defining the variables used in the study. Table 3 presents a list of countries included in the analysis. The main reason for focusing on these countries is that they are all included in the upper-middle income country class and have developing country process.

Results and discussion

Table 4 provides information about the descriptive statistics of variables for the period 1990–2018 used in the study. The average values of lnCO2, lnGDP, REN, lnFIN, URB, and TR are 10,369, 25,094, 30,166, − 1,334, 2,714, and 77,784, respectively. On the other hand, the standard error values vary between 0.596 and 39.995. The lowest average variable is lnFIN among all variables while REN has the highest value. The variable with the lowest standard deviation is URB, while the lowest skewness value belongs to lnFIN.

Table 4 Summary statistics

The variable with the lowest standard deviation is URB, while the lowest skewness value belongs to lnFIN. REN stands out with its highest maximum value, while lnGDP emerges with the highest minimum value. When we take into account all the descriptive statistics of lnCO2, it shows the highest value with its maximum value and the lowest value with the value of kurtosis.

The correlation matrix, which we can evaluate about the correlation between variables, is presented in Table 5. The correlation matrix shows a positive correlation between lnGDP and lnCO2, while a similar result occurs between lnFIN and lnCO2. While REN is negatively correlated with lnCO2, negative correlation between URB and lnCO2 is also noted. It can be stated that the negative correlation between URB and lnCO2 does not match theoretical expectations. Finally, TR is positively correlated with lnCO2.

Table 5 Correlation matrix

Whether there is CSD between the countries on the panel is investigated with the test of Pesaran (2004) CD test. The results mentioned in Table 6 reveal a rejection of the null hypothesis that there is cross-sectional independence at 1% level of significance. This proves that there is CSD for each variable. Thus, it means that a shock in one of the 18 countries can spread to other countries. In the study, Pesaran (2007) unit root test is used, which is the ability to cope with CSD in order to determine the unit root characteristics of variables. Table 6 also reports CIPS test results. The results reveal that each series is not stable at the level, but becomes stationary when the first differences are taken. Thus, the degree of integration of the series is 1.

Table 6 CSD and CIPS tests results

After unit root analysis of the variables, the determination of slope-homogeneity is made. Table 7 presents the results of Pesaran and Yamagata (2007) slope-homogeneity test. The findings support the hetoregenity of the slope parameters, as the null hypothesis that the slope parameters are homogeneous is rejected at 1% level of significance. The study uses residual-based cointegration tests of Pedroni (2004) and Kao (1999), as in the Hussain et al. (2021) and Vo et al. (2021) studies to test the existence of a long-term equilibrium relationship between variables. The null hypothesis that there is no cointegration according to the findings of the tests presented in Table 7 is rejected at different levels of significance, thus revealing that there is a cointegration between economic growth, renewable energy consumption, financial development, urbanization, trade openness, and CO2 emissions. This proves the existence of a long-term relationship between variables. This empirical finding allows us to analyze in detail the impact of economic growth, renewable energy consumption, financial development, urbanization, and trade openness on CO2 emissions (Table 8).

Table 7 Slope homogeneity test results
Table 8 Cointegration tests

Cointegration tests detect the existence of a long-term relationship between variables but do not provide any evidence for estimating the coefficients of variables. In this context, as in the works Yang et al. (2021) and Sun et al. (2020), the AMG estimator suggested by Eberhardt and Teal (2010) is used. The findings presented in Table 9 show coefficient estimates in detail, taking into account four different empirical models. First of all, the fact that Wald χ2 values, which are diagnostic tests, are statistically significant at 1% level indicates that the relevant models are suitable. According to these results; all the models show that economic growth positively affects CO2 emissions, while renewable energy consumption and financial development negatively affect CO2 emissions. The results also explain that urbanization and trade openness are positively related to financial development.

Table 9 AMG estimation results

Since the model 4 represents the largest empirical model discussed in the study, the estimation results for this model can be evaluated in detail. Accordingly, the coefficient of renewable energy consumption (− 0.021) is negative and statistically significant at 1% level. This result indicates that a 1% increase in renewable energy consumption will result in a 0.021% decrease in CO2 emissions. Therefore, in the long-term, renewable energy consumption can be seen as a factor that reduces CO2 emissions. Increased demand for traditional energy sources, especially fossil fuels, is pushing policymakers to alternative energy sources (Doğan and Seker, 2016). Energy policies today tend to reduce dependence on fossil fuels and therefore reduce CO2 emissions (Dogan and Ozturk 2017). In this context, renewable energy sources stand out because they are clean and environmentally sensitive and are preferred as a key explanatory variable in reducing CO2 emissions in many empirical studies (Destek and Aslan 2020; Danish et al. 2017; Bulut 2017). In addition, structural changes in developing countries, especially the transition from agricultural sector to industrial sector and from there to services sector, require effective use and diversity of energy resources. Therefore, they attach more importance to clean energy sources that have a positive effect on environmental quality (Munasinghe 1999).

This negative finding between renewable energy consumption and CO2 emissions is in line with the finding of Dong et al. (2018), which analyzes the relationship between economic growth, CO2 emissions, and environmental Kuznets curve (EKC) in the Chinese economy. The Bayer-Hanck test results show a cointegration between the variables, while the ARDL findings suggest that renewable energy consumption negatively affects CO2 emissions. Our findings are consistent with Bekhet and Othman’s (2018) findings for Malaysia and Sinha and Shahbaz (2018) for India, while they differ from Pata’s (2018) findings for Turkey. The first two studies find a negative relationship between the two variables, while the last study finds no statistically significant relationship between the variables. Some panel data studies such as Al-Mulali and Ozturk (2016) for 27 developed countries, Paramati et al. (2018) for G20 countries, Hanif (2018) for SSA countries, Bekun et al. (2019) for 16-EU country conclude that renewable energy consumption is negatively correlated with CO2 emissions. Danish et al. (2019), another panel data study, does not achieve a statistically significant relationship for BRICS countries. Ben Jebli et al. (2015) for 22 SSA countries and Adams and Nsiah (2019) for 28 countries provide evidence that renewable energy consumption increases CO2 emissions.

The financial development coefficient (− 0.095), just like the renewable energy consumption coefficient, has a negative and statistically significant value at 5% level. This result means that a 1% increase in financial development will reduce CO2 emissions by 0.021% and can be interpreted as negatively affecting CO2 emissions in the long-term. Relations between financial development and foreign direct investment (FDI) can be effective in improving environmental quality (Doytch and Narayan 2016). An advanced financial sector creates a gravitational pull for FDI by reducing the loan costs of grizzlies (Pazienza 2019). Increased FDI inflows increase energy efficiency and accelerate investment in environmentally friendly technologies. This development acts as a improver of environmental quality by reducing CO2 emissions (Essandoh et al. 2020). On the other hand, development in the financial sector supports the implementation of new technologies in developing countries and accelerates its development by providing necessary financial services to environmentally conscious industries. Thus, CO2 emissions decrease, making an improvement in environmental quality feel itself (Ma and Stern 2008).

This negative finding between financial development and CO2 emissions is similar to that of E and Bekwa (2022), which tests the relationship between energy consumption, financial development, and environmental pollution for 18 African countries by applying the PMG approach. The study concludes that long-term financial development reduces CO2 emissions. Some panel data studies (Tamazian et al. 2009; Al-Mulali et al. 2015; Salahuddin et al. 2015) draw attention to the negative relationship between the two variables. Similar findings are found in some of the time-series studies (Shahbaz et al. 2013a, b, c, d; Shahbaz et al. 2015; Atsu et al. 2021). However, these findings do not match the finding of Ebokyi et al. (2018), which investigates the impact of industrial growth, energy consumption and financial development on CO2 emissions for Ghana. ARDL model prediction results reveal a statistically insignificant finding between the two variables. Shahbaz et al. (2018) focus on the relationship between financial development, FDI, energy innovation, and CO2 emissions and prove that financial development for the French economy increases CO2 emissions in the context of the ARDL model.

The coefficient of economic growth (0.697) is positive and statistically significant at 1% level. This means that a 1% increase in economic growth will enhance CO2 emissions by 0.697%. Therefore, economic growth has an effect on increasing CO2 emissions. This finding will be better understood when considering the mechanisms by which economic growth can have an impact on environmental quality. As Aye and Edoja (2017) point out, it concludes that economic growth due to production activities increases CO2 emissions and impairs environmental quality by causing overuse of natural resources, decreased natural habitats, climate change, and excessive energy consumption. In this context, most countries have started to adapt their environmentally conscious growth models to their economies (Smulders et al. 2014). As a matter of fact, Withagen and Smulders (2012) explore the dynamic relationships between environmental issues and economic growth models and develop the Ramsey model by adding natural resource inputs and environmental pollution variables. Thus, an environmentally conscious augmented growth model has been proposed.

This positive finding between economic growth and CO2 emissions coincides with the finding of Espoir et al. (2022), which examines the relationship between economic growth and CO2 emissions in African countries. A group of literature reaches the same conclusion (Kais and Sami 2016; Apergis et al. 2018; Yusuf et al. 2020). Uddin et al. (2017) prove a negative relationship between economic growth and ecological footprint using DOLS and FMOLS. Magazzino (2016) tests the relationship between CO2 emissions, economic growth, and energy consumption with the panel VAR technique for GCC countries. The estimation results reveal the negative relationship between the two variables. The findings of these two studies are not in the line with our findings. Our finding is not in line with the finding of Acheampong (2018), which analyzes the relationship between economic growth, CO2 emissions, and energy consumption using panel VAR and system GMM approaches. The study finds that economic growth on a global scale negatively affects CO2 emissions.

Table 9 reveals that the coefficient of urbanization (0.050) is positive and statistically significant at 5% level. According to this result, a 1% increase in urbanization will increase CO2 emissions by 0.050%. This indicates a positive relationship between urbanization and CO2 emissions. As Ahmad et al. (2019) demonstrates, rapid urbanization accelerates demand for infrastructure and buildings, and thus CO2 emissions can increase. In another view, the increase in the urban population and the growth of the industrial scale stimulate the economies of accumulation and scale, causing more energy use, thus increasing CO2 emissions (Zhang et al. 2018).

Our finding that “urbanization increases CO2 emissions” is in the line with the findings of Sheng and Guo (2016) and Yao et al. (2021). The first study demonstrates that rapid urbanization increases CO2 emissions by applying MG, PMG, and DFE forecasting techniques within the framework of the STIRPAT model. The second study focuses on the relationship between different types of urbanization and CO2 emissions by performing a spatial and threshold analysis on Chinese cities. Empirical findings suggest that all three types of urbanization positively affect CO2 emissions. These findings do not match the findings of Zhang et al. (2021), which analyzes the impact of urbanization on CO2 emissions in the Chinese economy with a regional approach. Indeed, this study indicates the existence of a negative relationship between urbanization and CO2 emissions. Dimnwobi et al. (2021), which analyzes the impact of population dynamics on environmental quality in Africa, cannot find a statistically significant relationship between urbanization and CO2 emissions by applying the CS-ARDL model.

Finally, the coefficient of trade openness (0.0009) is positive and statistically significant at 5% level. This result implies that a 1% increase in trade openness will enhance a 0.0009% increase in CO2 emissions. Therefore, it can be noted that trade openness has a positive effect on CO2 emissions. Ahmed et al. (2017) specify that trade accelerates the production of goods and services as well as energy consumption. So, CO2 emissions can increase and environmental quality can deteriorate. This is actually known in the literature as the effect of scale (Antweiler et al. 2001).

Our finding that there is a positive correlation between trade openness and CO2 emissions is in line with the findings of Dou et al. (2021), which focuses on the relationship between trade openness and CO2 emissions for China-Japan-ROK FTA countries. The authors note that trade openness promotes CO2 emissions. Zhang et al. (2017) for 10 NIC countries and Balsalobre-Lorente et al. (2018) for 5 EU countries obtain similar findings. On the contrary, Koc and Bulus (2020) for the Korean economy, Managi et al. (2009) for OECD countries and Gozgor (2017) for 5 OECD countries provide evidence of a negative relationship between the variables.

DOLS and FMOLS forecasting techniques are also utilized to provide healthier long-term estimation in the study. In this context, the AMG forecast results presented in Table 9 are comparable to the DOLS and FMOLS results in Table 10. DOLS estimation results, just like the AMG forecast results, provide evidence that renewable energy consumption and financial development reduce CO2 emissions, while economic growth and trade openness increase. FMOLS forecast results, just like the AMG forecast results, show that renewable energy consumption and financial development negatively affect CO2 emissions, while economic growth and urbanization have a positive effect. Table 11 is an overview of the results from AMG, DOLS, and FMOLS forecasting techniques. In summary, renewable energy consumption and financial development serve as a function that reduces environmental pollution and therefore improves environmental quality, while economic growth, urbanization, and trade openness perform a function that impairs environmental quality because it supports environmental pollution.

Table 10 Robustness check
Table 11 Summary of the long-term results

Tables 9 and 10 reveal the effect of each explanatory variable on CO2 emissions but do not provide any information on the results of country-specific analysis. In this context, the estimation results in Table 12 can be analyzed. The findings suggest a negative relationship between renewable energy consumption and CO2 emissions in all countries except Costa Rica and Bostwana.

Table 12 Results of AMG heterogeneous country-specific analysis

While the financial development in Brazil, Bostwana, Colombia, Costa Rica, Jamaica, and Jordan negatively affects CO2 emissions, there is no statistically significant relationship in other countries. The findings reveal a positive relationship between economic growth and CO2 emissions in all countries except the Mexican economy. On the other hand, urbanization in Bostwana, Jordan, and Malaysia reduces CO2 emissions, while urbanization in Costa Rica, Ecuador, Gabon, Guatemala, Panama, and Paraguay has a positive effect on CO2 emissions. In other countries, there is no statistically significant relationship. Finally, we are going to have to trade openness positively affects CO2 emissions in the Dominican Republic, Guatemala, Jordan, Panama, and Thailand, while no statistically significant relationship can be detected in other economies.

After estimating the long-term coefficients of the variables with AMG, DOLS, and FMOLS forecasters, the causality relationships between the variables used in the study are investigated. In this context, Dumitrescu and Hurlin (2012) bootstrap causality test is used for causality analysis. The causality findings reported in Table 13 point to a one-way causality that operates from economic growth to CO2 emissions due to the rejection of the null hypothesis at 5% level of significance. Kim et al. (2010) for Korea and Shahbaz et al. (2013a, b, c, d) for Indonesia detect two-way causality, while Saboori et al. (2012) show a one-way causality for Malaysia that runs from economic growth to CO2 emissions. For causality findings, financial development is not the cause of CO2 emissions and CO2 emissions are not the cause of financial development, and null hypotheses are rejected, pointing to a two-way causality between financial development and CO2 emissions. This finding is in line with the finding of Zafar et al. (2019), which finds a two-way causality for G-7 countries. Abbasi and Riaz (2016) point to a causality for Pakistan from financial development to CO2 emissions, while Ibrahim and Vo (2021) do not see any causality for the 27 industrialized countries. In this study, there is a one-way causality that works from renewable energy consumption to CO2 emissions, since the null hypothesis is rejected at 1% significance level. Apergis et al. (2010) for 19 countries and Paramatia et al. (2017) for G-20 countries make a similar finding, while Danish et al. (2017) for Pakistan and Danish et al. (2019) BRICS economies point to the existence of a two-way causality. In addition, there is a one-way causality from CO2 emissions to urbanization due to the rejection of the null hypothesis at 1% significance level. This finding does not coincide with the finding of Dou et al. (2021), which points to a two-way causality for China-Japan-ROK FTA countries. Finally, there exists no causality between trade openness and CO2 emissions. This conclusion is not in line with Javid and Sharif (2016)’s finding of a two-way causality for Pakistan and Ertugrul et al. (2016)’s result of one-way causality that operates from trade openness to CO2 emissions for all countries participating in the analysis. Cetin et al. (2018) also indicate a one-way causality for the Turkish economy from trade openness to CO2 emissions.

Table 13 Dumitrescu-Hurlin bootstrap causality test results

Conclusion and policy implications

In recent years, issues such as environmental pollution, economic sustainability, and global warming have become important focuses of interest by both researchers and policymakers. Undoubtedly, the basis of this interest is the global increase in CO2 emissions, which is responsible for approximately 80% of greenhouse gas emissions. The fact that CO2 emissions have also increased significantly in the context of UMIC countries requires researching the underlying factors of this development and developing policies to reduce environmental pollution. In the context of the hypotheses developed in these countries, the question of financial development, renewable energy sources, economic growth, urbanization, and commercial openness can be exploited in reducing environmental pollution? In this context this study investigates the effect of financial development on CO2 emissions by integrating economic growth, renewable energy consumption, urbanization, and trade openness into the CO2 emissions model as control variables. For this purpose, panel time series for 18 upper-middle income countries are used in the period 1990–2018.

The study tests the hypotheses that “financial development and renewable energy consumption reduce CO2 emissions” and “economic growth, urbanization and trade openness increase CO2 emissions.” In this purpose, we have applied the AMG, DOLS and FMOLS estimators, and Dumitrescu-Hurlin bootstrap causality test. Empirical findings reveal that financial development and renewable energy consumption decrease CO2 emissions while economic growth, urbanization, and trade openness increase CO2 emissions in the long run. We detect a one-way causality that operates from economic growth and renewable energy consumption to CO2 emissions, and a two-way causality between financial development and CO2 emissions.

Depending on the results of the analysis, the study may also develop some policy recommendations that can reduce CO2 emissions. Firstly, the finding that renewable energy consumption reduces CO2 emissions can be interpreted as these economies should benefit more from renewable energy sources in reducing environmental pollution. Because, in these developing economies, energy demand is mainly met from non-renewable energy sources that are not environmentally friendly. In addition, since obtaining economic benefits from renewable energy resources and investments in these resources require very high costs, it is obligatory for governments to offer important incentives, especially reasonable incentives, tax exemptions, and reductions, for entrepreneurs in the renewable energy sector. Otherwise, it does not seem possible for the sector entrepreneurs to get the desired results from these investments.

Second, the finding that financial development can improve environmental quality by reducing CO2 emissions suggests that applications for financial sector development in these countries should be accelerated and the need for financial sector loans should be met. The shift of financial sector loans to environmentally sensitive projects/investments that can produce technological and innovative products will be able to serve to weaken environmental degradation by enabling the technology channel of the financial sector to function. Another empirical finding, the finding that economic growth supports CO2 emissions highlights the fact that the countries subject to the research face the danger of environmental pollution due to economic growth. Although investment, employment, and growth are priority targets in such developing economies, it seems possible to achieve these goals with a growth/development strategy based on environmentally conscious and clean energy sources. The finding that trade openness increases CO2 emissions requires these economies to reorganize their commercial structures in weakening this effect. More specifically, governments should implement tax incentives to support the trade of low-carbon products and to prevent the trade of high-carbon products. In addition, the trade in environmentally sensitive high-tech products should also be considered. In addition to these measures, the need to control the population of the city arises as it is an important factor that increases CO2 emissions. In addition, measures should be introduced to reduce the emissions of vehicles in urban areas. Residents should be informed and aware of environmental pollution.

The consideration of future research groups of countries with different income and development levels can be effective in better understanding the impact of financial development and renewable energy consumption on environmental pollution. In addition, such studies are likely to serve to develop different policies by presenting comparative empirical findings.