Introduction

The use of renewable energy sources reduces carbon emissions that are harmful to nature is a phenomenon that everyone can predict. In our study, we have reduced renewable energy sources to solar energy, which seems infinite compared to human life. While going from general to specific, we used the data of the age of globalization and the data of coal, the most frequently consumed fossil fuel. We analyzed the variables used in our study together for the first time in the literature. In contrast to the studies limited to only one country’s data, we preferred countries with data diversity. With these differences, our article can give new ideas for pioneering future studies. The current energy system is scattered around the world, and this energy system is based on the burning of non-renewable fossil fuels and is unsustainable. In addition, the world population, estimated to reach approximately 9.3 billion by 2050, is increasing rapidly. This increase is expected to increase global energy demand by 1.5 to 3 times (Shahsavari & Akbari, 2018). Moreover, this increase could lead to the depletion of fossil fuels after about 70 years. Carbon emissions from burning fossil fuels are causing global warming that threatens the future of the world (Gyamfi et al., 2021; Joshua et al., 2020). Emissions from burning fuels were 32.5 Gtoe in 2018 (IEA, 2020). The Paris Agreement aims to limit global warming to well below 2 °C, preferably 1.5 °C, compared to pre-industrial levels (UNFCCC, 2015). The Paris Agreement goals are achieved by using renewable energy sources at an international level. Globalization, which affects human life socially, politically, and economically, plays a significant role in the widespread use of fossil energies (Faisal et al., 2021). With globalization, industrialization has accelerated, and this situation has increased the energy demand of growing economies. As a result, world energy consumption has doubled in the last 40 years (Koçak et al., 2020; Khan et al., 2021; Wei et al., 2022). Industry consumed 57% of the total energy of 11.5 Gtoe in 2018 (IEA, 2020). Total energy consumption is expected to increase by about 40% of daily energy consumption by 2040 (Weldekidan et al., 2018). Coal, which is more usable and cost-effective than other energy types, is mainly used in developed and developing economies to meet high energy demands (Adebayo et al., 2021). Globally, coal, the second-largest energy source, accounts for almost 30% of energy consumption, and more than 40% is used for electricity generation (Adedoyin et al. 2020). As a result, the economy’s demand for non-renewable energy sources is expected to increase global energy-related CO2 emissions by 4.8% in 2021 (IEA, 2021).

Moreover, this situation encourages the international community to shift to renewable energy sources such as solar energy (Anvari et al., 2019). The Eco-Environmental Assessment predicts that the proposed renewable energy-based energy system can prevent 485 tons of CO2 emissions annually (Cao et al., 2020). The sun is an abundant energy source and has an essential role in forming other types of energy. The solar energy falling on the earth’s surface is more than the total global energy supply of 13.800 Mtoe (Koçak et al., 2020). Solar energy is a clean resource that provides efficient solutions to reduce carbon emissions and is also a potential substitute for fossil fuels (Anvari et al., 2019; Banacloche et al., 2020). According to the report United Nations Environment Program (UNEP) 2015, each of the 1.4 MWth (2000 m2) solar energy systems can save about 175 metric tons of CO2 emissions depending on the location (UNEP, 2015). It has been found that preferring renewable energy sources instead of non-renewable energy reduces CO2 emissions by about 3% per 10 TWh/year (Noorollahi et al., 2021; Dagar et al., 2022; Alvarado et al., 2022). Countries should prefer solar energy to reduce dependence on fossil fuels such as oil and increase environmental sustainability (Salam and Khan, 2018). In about 10 years, CO2 emissions can be reduced by 57%. For this, a solar-powered system capable of insulating 1387 tons of greenhouse gases per year will be sufficient (Ishaq, 2021). According to the forecasts for the future, solar energy, which is the renewable energy source with the highest potential, may cause the CO2 level to decrease significantly (Anvari et al., 2019). So, with the preference for solar energy, the CO2 level in 2050 will be 75% less than in 1985 (Kabir et al., 2018). A carbon-neutral status can be completed over a long time (about 30 years) (Marrchi et al., 2018). In addition, carbon emissions will decrease by 30% and 60% by 2050 compared to 2015 levels (Zhou et al., 2018). Solar energy markets have shown extraordinary growth, accelerating since the early 2000s (Timilsina et al., 2012). With the development of science and technology, solar energy research and applications are gaining attention worldwide. It is predicted to play a more significant role in the energy mix in the coming years (Du et al., 2014). Solar energy installation reduces diesel consumption by 12% and yields $6844/kW (Robertson et al., 2020). It determined that the return on solar energy use is $177.41 (USD), which is 45.15% of the total operating revenue (Darwesh & Ghoname, 2021). The installation of solar systems is shown to reduce fuel consumption by 17–38% in suitable regions (Son et al., 2019), and these systems play an essential role in sustainable development (Adenle, 2020). It has been shown that there is a social interest in the use of solar energy and a strong preference for solar power (Cousse, 2021). Investment in solar energy stimulates the growth and development of other industries and attracts new investment (Marolin et al., 2020). Because solar energy is cheaper than other energy generation sources (Rabaia et al., 2021) and abundant, it can expand its place in the life cycle with a range of policies and measures (Liu, 2020).

For the above reasons, the study aims to investigate the effect of solar energy on CO2 emissions. For this purpose, we created an equation based on CO2 emissions, solar energy consumption, coal energy consumption, financial globalization, and growth. The panel includes data for the period 2000–2019 for 26 countries whose data are available. In addition to the ordinary least square (OLS) and fully modified ordinary least square (FMOLS) methods, we also used the CCEMG method, which takes into account cross-section dependence and slope homogeneity to predict long-term relationships between the variables. According to estimates, the reduction in CO2 emissions is caused by solar energy. Furthermore, according to the causality estimates, there is a bilateral causality relationship between the two variables. In conclusion, this study emphasizes the importance of the role of solar energy in reducing CO2 emissions and makes essential contributions to the literature. It is the first study to analyze the relationship between CO2 emissions, solar energy consumption, coal energy consumption, financial globalization, and growth. It contributes to this significant gap created by the literature's lack of existing studies on solar energy. Second, the countries used in this study are analyzed in the same panel data for the first time, as the current studies are constantly based on the data of the same country. Third, the coefficient estimator, and causality method used in the study account for cross-sectional dependence and slope homogeneity.

The order of the parts of the study is as follows: “Literature Survey” includes the relevant literature, and “Data and Empirical Model” section consists of the data and imperial model followed by “Empirical Methodology” section, “Estimation Results” section includes the analysis estimates. “Conclusion and Policy Implications” section contains conclusions and policy recommendations.

Literature Survey

Solar Energy and CO2 Emissions

This section includes studies examining the relationship between solar energy and CO2 emissions. Few studies in the literature take into account and examine the effect of solar energy on carbon emissions. Sharif et al. (2021) analyzed the dynamic relationship between ecological footprints and solar energy consumption using the quantile-on-quantile (QQ) approach for the top 10 countries with the highest solar energy consumption (excluding England and India) during 1990–2017. Ecological footprints are used in place of carbon emissions to measure environmental degradation. The results of the study show that solar energy consumption facilitates the reduction of environmental footprint. Magazzino et al. (2021) investigated the causal relationship between solar and wind energy production, coal consumption, economic growth, and CO2 emissions in China (1990–2017), India (1986–2017), and the USA (1983–2017). They used the causal direction from the dependency (D2C) model in a machine learning technique. Their conclusions are as follows: there is hope for China and the USA to reduce their overall carbon emissions, it is suggested that India should switch from fossil to renewable sources to reduce its rising carbon emissions, and for this, India needs to limit its reliance on coal. Ortega et al. (2020) estimated the gross employment generated by deploying three renewable electricity technologies for all member countries of the European Union by 2050. The results show that the work developed by these three technologies can be significant, but significant differences are observed between technologies, activities, and countries. Dong (2017), in his study of BRICS countries between the years 1985 and 2016, discovered that renewable energy reduced carbon dioxide emissions by 0.2601%, and there was a bidirectional panel causal relationship between renewable energy and CO2 in both the short and long run. Dogan and Seker (2016) investigated the effects of renewable and non-renewable energy, real income, and trade openness on carbon emissions in the environmental Kuznets curve (EKC) model for the European Union during 1980–2012. Panel estimation methods based on cross-section dependency are used in the study. The presence of EKC is confirmed for the EU based on the positive and negative effects of GDP and GDP2 on carbon emissions. Lin and Moubarak (2014) investigated the relationship between renewable energy consumption and economic growth in the Chinese economy from 1977 to 2011. As a result of cointegration analysis applied to determine the long-run relationship between variables, a long-run relationship between renewable energy and economic growth was found. Destek and Aslan (2020) investigated the relationship between disaggregated renewable energy (hydropower, biomass, wind, and solar power), economic performance, and carbon emissions for G-7 countries during 1991–2014. The panel bootstrap Granger causality method considered cross-sectional dependence and country-specific heterogeneity and augmented used mean group estimators to investigate this relationship. In France and Italy, solar energy reduces emissions. In the case of panels, carbon emissions decreased with increased hydropower, biomass, and wind energy consumption.

In contrast, the effect of solar energy consumption was statistically insignificant in G-7 countries. Finally, Koengkan et al. (2020a) examined the relationship between carbon emissions, renewable and non-renewable energy sources, economic growth, and urbanization. The analysis used data from Argentina, Brazil, Paraguay, Uruguay, and Venezuela between 1980 and 2014. According to panel vector autoregression (PVAR) estimates, renewable energy reduces carbon emissions. There is also a bidirectional causality relationship between fossil fuel consumption, economic growth, renewable energy consumption, and carbon emissions.

Financial Globalization and CO2 Emissions

In this section, studies analyzing the relationship between financial globalization and CO2 emissions are included. For example, Ulucak et al. (2020) investigated the impact of financial globalization on environmental degradation in 15 emerging economies. Researchers used data from 1974 to 2016. According to the study, financial globalization contributes to the improvement of environmental quality levels in developing economies. Farouquk et al. (2021) investigated the asymmetric relationship between financial globalization uncertainty and environmental quality. Data from nine Saharan African countries for the period 1980–2019 are used. It is estimated that the uncertainty of financial globalization has a negative and significant effect on environmental quality. Yashodha et al. (2018) examined the environmental impact of economic globalization based on the environmental Kuznets curve (EKC) hypothesis. They used data from 76 middle-income countries for the 1994–2014 period in their generalized method of moment (GMM) estimates. As regards estimates, there is no consistent relationship between economic globalization and carbon emissions. Asongu (2018) analyzed the impact of globalization on CO2 emissions in 44 sub-Saharan African countries. Under the results of the study, the effect of globalization on CO2 emissions is negative. Koengkan et al. (2020b) analyzed the effect of economic, social, and political globalization on carbon emissions in 18 Latin American and Caribbean countries. Koengkan et al. (2020b) analyzed the data for the period 1990–2014. According to the study, globalization can reduce carbon emissions. Le and Ozturk (2020) investigate the relationship between globalization and CO2 emissions in 47 emerging markets and emerging economies (EMDEs). This study used data from 1990 to 2014. It is estimated that globalization increases CO2 emissions.

Data and Empirical Model

Data

This study consists of annual time series data covering the period from 2000 to 2019 for 26 countries: Austria, Argentina, Australia, China, Canada, Denmark, Egypt, Finland, France, Germany, India, Italy, Japan, Luxembourg, Mexico, Netherlands, Norway, Portugal, South Africa, South Korea, Spain, Sri Lanka, Sweden, Switzerland, United States of America (USA), and the UK. In the study, countries with available data were preferred. We could not include other countries in this study because the data were insufficient for analysis. We determined the variables in this study according to the relevant literature. The first variable, solar energy consumption per capita, is taken from British Petroleum (BP). BP calculates solar energy consumption in a million tons of oil equivalent per capita. Financial globalization data is obtained from KOF Swiss Economic Institute (KOF). KOF financial globalization data takes values between 0 and 100. Coal energy consumption data, calculated as million tons of oil equivalent per capita, were obtained from BP. GDP per capita (current USD) data is from World Development Indicators. Figure 1 shows the course of solar energy consumption of 26 countries in the 2000–2019 period. Twenty-six countries were divided into two groups high-income and middle-income countries. According to the figure, solar energy consumption in all countries is on an upward trend. Moreover, it is seen that the solar energy consumption of middle-income countries such as China, Egypt, Mexico, Sri Lanka, India, and South Africa, which seemed stagnant until 2010, increased rapidly in 2010.

Fig. 1
figure 1

Solar energy consumption of countries

Figure 2 shows the course of countries' CO2 emissions in the 2000–2019 period. According to the figure, the CO2 emissions of countries tend to stay at the same level. Although the consumption of carbon emissions in high-income countries decreased after 2007, there was no significant decrease. And the course of carbon consumption in middle-income countries is stable. It increases after 2013. Tables 1 and 2 show the definitions and statistical values for the variables used in this study.

Fig 2
figure 2

CO2 emission of countries

Table 1 Variables’ name, symbol, and source
Table 2 Descriptive statistics of the variables

Empirical Model

This study investigates the relationship between solar energy consumption, CO2 emissions, coal energy consumption, and GDP per capita for 26 countries during 2000−2019. The functional relationship of the variables is developed as follows:

$${\textrm{CO}}_2=f\left(\textrm{SE}, CE,\textrm{FiGI},\textrm{GDP}\right)$$
(1)

The natural logarithms of all variables are taken. The econometric model set up in the analysis is shown in Eq. (2),

$${\textrm{lnCO}}_{2\textrm{it}}={\upbeta}_0+{\upbeta}_1{\textrm{lnSE}}_{\textrm{it}}+{\upbeta}_2{\textrm{lnCE}}_{\textrm{it}}+{\upbeta}_3{\textrm{lnFiGI}}_{\textrm{it}}+{\upbeta}_4{\textrm{lnGDP}}_{\textrm{it}}+{\upvarepsilon}_{\textrm{it}}$$
(2)

where i indicates the number of cross-sections (i.e., 1, 2, 3, 4...N) and T represents the period (2000–2019). lnCO2it is the natural logarithms of carbon dioxide emissions per capita; β0 is the slope-intercept. lnSEit is the natural logarithms of solar energy consumption per capita. lnCEit is the natural logarithms of coal energy consumption per capita. lnFiGIit is the natural logarithms of financial globalization. lnGDPit is the natural logarithms of GDP per capita.

Empirical Methodology

Cross-section dependence is an essential issue for studies using panel data. Ignoring cross-section dependence will lead to incompatible estimates and deceptive information (Grossman & Krueger, 1995). For this reason, Pesaran (2004) suggested that the tests were used in this study. The Pesaran-scaled LM and Pesaran CD test presented by Pesaran (2004) is quite suitable for detecting cross-section dependence in the model. The Pesaran-scaled LM test was obtained from Breusch and Pagan (1980). Pesaran (2004) proposes an alternative statistic, the Pesaran CD test given in Eq. (3), which exploits the residuals of the model used. This test produces more consistent results in detecting panel cross-sectional dependence. In Eq. (3), \({\hat{\rho}}_{ij}^2\) represents the correlation coefficients obtained from the residuals of the model.

$$CD=\sqrt{\frac{2}{N\left(N-1\right)}}{\sum}_{i=0}^{N-1}{\sum}_{j=i+1}^N{\textrm{T}}_{ij}{\hat{\uprho}}_{ij}^2\to N\left(0,1\right)$$
(3)

When the panel is heterogeneous, the assumption that the slope is homogeneous leads to misleading estimates (Breitung, 2005). Therefore, the presence of cross-sectional heterogeneity should be tested when examining empirical results. To test for homogeneity of the slope parameters, one can use the estimator proposed by Pesaran and Yamagata (2008) for panels of N > T. In Eqs. (4) and (5), slope homogeneity is determined using pooled ordinary least squares (OLS), pooled weighted fixed effect (WFE) estimator, and deviations from the mean.

$$S={\sum}_{i=1}^N\left({\beta}_{\textrm{i}}-{\beta}_{WFE}\right),\frac{\left({x}_{\textrm{i}}^{\prime }{M}_{\tau }{x}_i\right)}{\upsigma_i^2}\left({\beta}_i-{\beta}_{WFE}\right)$$
(4)
$$\Delta =\sqrt{N}\left(\frac{N^{-1}S-k}{\sqrt{2k}}\right)$$
(5)

where βi indicates the coefficient obtained from the OLS, βWFE also shows coefficients from the WFE estimation. xi is the matrix including descriptive variables in deviations from the mean, Mτ is the identity matrix, \({\upsigma}_i^2\) is the estimate of σi, and k is the number of regressors.

Testing the presence of unit roots in panel data depends on whether there is a cross-section dependency in the panel. If there is no cross-sectional dependence in the panel, traditional first-generation panel unit root tests are valid. Since the panel has cross-sectional dependence, the second-generation panel unit root test allows for cross-section dependence in the panels. The second-generation unit root test proposed by Pesaran (2007) is called the Pesaran CIPS panel unit root test. Unlike other panel unit root tests, the test aims to remove the cross-sectional dependence asymptotically in the panel. Cross-sectional augmented Dickey-Fuller’s (CADF) regression, which considers cross-sectional averages to eliminate cross-section dependence, can be calculated as in Eq. (6):

$$\Delta {y}_{it}={\upalpha}_i+{b}_i{y}_{i,t-1}+{c}_i{\overline{y}}_{t-1}+{\sum}_{j=0}^p{d}_{ij}\Delta {\overline{y}}_{t-j}+{\sum}_{j=1}^p{\updelta}_{ij}\Delta {\overline{y}}_{t-j}+{e}_{it}$$
(6)

where \({\overline{y}}_{t-j}\) represents the cross-sectional averages of lagged levels and \(\Delta {\overline{y}}_{t-j}\) indicates the first differences of individual series, respectively. After the CADF regression is estimated, to obtain the CIPS statistic, the means of t statistics (CADFi) of lagged variables in Eq. (7) are calculated as follows:

$$CIPS={N}^{-1}+{\sum}_{i=1}^N{CADF}_i$$
(7)

Standard cointegration tests ignore cross-sectional dependence, like Pedroni (2001) and Kao (1999). However, the data used in this study are cross-sectionally dependent. Error correction-based panel cointegration tests developed by Westerlund (2005) take into account cross-section dependence. Therefore, in this study, we preferred the Westerlund (2005) method to test the cointegration relationship between the variables. The Westerlund (2005) method can be estimated as follows:

$$\Delta {z}_{it}={\updelta}_i^{\prime }{d}_i+{\uptheta}_i\left({z}_{i\left(\textrm{t}-1\right)}+{\uppi}_i^{\prime }{y}_{i\left(t-1\right)}\right)+{\sum}_{j=1}^{\textrm{m}}{\uptheta}_{ij}\Delta {z}_{i\left(t-j\right)}+{\sum}_{j=0}^m{\upvarphi}_{ij}\Delta {y}_{i\left(t-j\right)}+{\upomega}_{it}$$
(8)

Equation (8) makes estimates that consider the cross-sectional dependency and are error correction-based. θi is the adjustment term that determines the speed for the system to back to the equilibrium relationship. Westerlund (2005) suggests four error correction-based panel cointegration statistics, 2 of which are mean group statistics and 2 of which are panel statistics, based on OLS estimates. These error correction-based panel cointegration tests can be estimated as follows:

$${G}_{\uptau}={N}^{-1}{\sum}_{i=1}^N\frac{\theta_i}{SE\left({\hat{\theta}}_i\right)}$$
(9)
$${G}_{\upalpha}={N}^{-1}{\sum}_{i=1}^N\frac{T{\theta}_i}{\theta_i^{\prime }(1)}$$
(10)
$${P}_{\tau }=\frac{{\hat{\theta}}_i}{SE\left({\hat{\theta}}_i\right)}$$
(11)
$${\textrm{P}}_{\upalpha}=T{\hat{\theta}}_i$$
(12)

In Eqs. (9) and (10), Gτ and Gα are mean group statistics, and in Eqs. (11 and (12), Pτ and Pα are panel statistics. After confirming the existence of the cointegration relationship, this study first uses the OLS and the panel FMOLS models to calculate the long-run coefficients of the panel data. Pedroni (2001) improves the panel FMOLS model. However, the OLS and FMOLS methods do not account for cross-sectional dependence and slope homogeneity between panel sections in the estimation. Estimates by ignoring inter-section dependence can induce erroneous and conflicting results, as noted by Pesaran and Smith (1995). In this study, the CCEMG (common correlated effect mean group) method is used, which estimates by taking into account cross-sectional dependence and slope homogeneity. Pesaran (2006) proposes the CCEMG estimator. The CCEMG estimator can be evaluated as follows:

$${y}_{it}={\alpha}_{li}+{b}_i{x}_{it}+{c}_i{f}_t+{\alpha}_i{\overline{y}}_{ti}+{\beta}_i{\overline{x}}_{ti}+{e}_{it}$$
(13)

In Eq. (13), yit and xit are observables; bi is the country-specific estimates of coefficients; ft is the unobserved common factor with heterogeneous factor; αi is the intercept term, and eit is the error term.

The causality relationship between the variables whose long-term coefficients are estimated can be determined. Therefore, the last step in our study involves determining the direction of causality of variables. By testing the direction of causality, we can draw meaningful conclusions about the relationships of variables. The Dumitrescu and Hurlin (2012) panel causality test allows for cross-section dependence and is used to examine the direction of causality in this empirical study. The Dumitrescu and Hurlin (2012) (D-H) introduced the panel causality test based on Granger’s (1969) individual Wald’s statistic. The D-H panel causality test can be examined as follows:

$${y}_{it}={a}_i+{\sum}_{j=1}^J{\lambda}_i^j{y}_{i\left(t-j\right)}+{\sum}_{j=1}^J{\beta}_i^j{x}_{i\left(t-j\right)}+{e}_{it}$$
(14)

In Eq. (14), y and x are the observables, \({\lambda}_i^j\) is the autoregressive parameters, and \({\beta}_i^j\) is the regression coefficient estimates. \({\lambda}_i^j\) and \({\beta}_i^j\) are assumed to vary between cross-sections. In addition, can examine the D-H panel causality test based on an average Wald statistic. Thus, the mean of the individual Wald statistics produced by the D-H panel causality test can be measured as follows. In Eq. (15), Wi, T is the individual Wald statistic for each cross-section unit.

$${W}_{N,T}^{HNC}={N}^{-1}{\sum}_{i=1}^N{W}_{i,T}$$
(15)

Estimation Results

First, we test for cross-sectional dependence to examine the long-term relationship between carbon emission, solar energy consumption, coal energy consumption, and growth variables. Table 3 shows the results of the cross-sectional dependence tests. According to the Breush-Pagan LM test results, Pesaran-scaled LM test, and Pesaran CD test, the null hypothesis of no cross-sectional independence is rejected at the 1% significance level for all variables. This result indicates a strong cross-sectional dependence. These results imply that methods that allow for cross-section dependence are more appropriate for this study. Table 4 shows the results of the slope homogeneity tests. The null hypothesis of the slope homogeneity hypothesis is rejected for both tests. This result confirms the existence of slope heterogeneity.

Table 3 Cross-section dependence tests
Table 4 Slope homogeneity tests

Consequently, if cross-sectional dependence exists, should also use robust methods to slope homogeneity in this study. The Pesaran CIPS panel unit root test is used in this study to examine stationarity and determine the level of integration of all selected variables. Table 5 shows the test results, where not all variables are stationary at levels, except for FiGI. When the first difference of the variables is taken, the null hypothesis is rejected. This result means that all variables are cointegrated.

Table 5 Pesaran CIPS panel unit root tests

These estimates allow us to investigate whether there is a long-run equilibrium relationship between the selected variables. For this purpose, we used the error correction-based panel cointegration approach developed by Westerlund (2005). Westerlund’s (2005) test is very suitable for this analysis since slope homogeneity and cross-section dependence are considered. The results of Westerlund’s panel cointegration test for the variables are presented in Table 6. Again, the null hypothesis of no cointegration is rejected. Therefore, the long-run cointegration relationship is supported by all of Westerlund’s test statistics.

Table 6 Westerlund’s cointegration tests

In this study, Pedroni (2001) and Kao (1999) cointegration tests, which are frequently used in the literature, are also included to support Westerlund’s cointegration tests. Table 7 shows the results of Pedroni (2001) and Kao (1999) cointegration tests. According to the Pedroni cointegration test results, most of the statistics are statistically significant. Therefore, it was concluded that there is cointegration between the variables. The Kao test results rejected the null hypothesis of no cointegration and obtained the same effect as the other tests.

Table 7 Pedroni and Kao’s cointegration tests

After applying the cross-section dependence, slope homogeneity, unit root, and cointegration tests, the next step is to calculate the long-term estimates for the variables. Table 8 shows the OLS, panel FMOLS, and CCEMG estimations. The estimates obtained in this study are like the findings of studies such as Dong (2017), Sharif et al. (2021), Destek and Aslan (2020), and Koengkan et al. (2020a). It can see from this table that these three estimation methods give similar results. According to the results of the OLS and FMOLS estimators, the coefficients of all variables except lnFiGI are significant. According to the OLS and FMOLS estimations, the increase in solar energy consumption leads to a decrease in CO2 emissions. Although the results are significant and consistent, these two methods ignore cross-sectional dependence and slope homogeneity.

Table 8 OLS, FMOLS, and CCEMG estimates

Therefore, the CCEMG method, which considers cross-sectional dependence and slope homogeneity, was preferred in this study. Consistent with the OLS and FMOLS estimates for the panel, the coefficients of lnCE and lnGDP are positive and significant, while the coefficient of lnSE is negative and significant. While a 1% increase in lnSE causes a 0.0106671% decrease in lnCO2. Therefore, the increase in solar energy consumption causes decreases in carbon emissions. Thus, both OLS, FMOLS, and CCEMG estimates display the importance of solar energy in reducing CO2 emissions. In the long run, a 1% increase in lnCE and lnGDP is associated with a 0.2403829 and 0.0652308% increase in lnCO2, respectively. And the rise in GDP has a positive effect on carbon emissions. After estimating the long-run coefficients of the cointegrated variables, we can test possible causality among the variables. For this purpose, the D-H causality test was used in this study.

Table 9 presents results showing the direction of causality relationships between variables in the panel data. For the panel, bidirectional causality is found between CO2 emissions and solar energy consumption. These results are similar to Koengkan et al. (2020a) and Dogan and Seker (2016). The existence of a bilateral causal relationship once again highlights the importance of the relationship between solar energy and CO2 emissions. The causality between coal energy consumption and economic growth with carbon emissions is also found to be bidirectional. On the contrary, the unidirectional causality is found to run from financial globalization to CO2 emission.

Table 9 D-H panel causality tests

Conclusion and Policy Implications

The most significant factor that encouraged us in our work was the existence of a source, such as the sun, which has infinite energy compared to our human lifespan. To use different methods to measure the benefit of solar energy to nature, the CCEMG method was used as a result of hard work in the literature. As a result of the data scans, the countries containing all the values related to our subject were selected so there would be no gaps in the study. The challenge here was not being able to reach enough data or being limited to the data of developed countries. But we chose to use data from countries with different income levels. In the literature, some studies are generally based on a single country. This study analyzes solar energy consumption, coal energy consumption, financial globalization, growth, and carbon dioxide emissions. In the analysis, we used the data from the 2000-2019 period of 26 countries whose data are available. First, the unit roots of the variables were examined using the CIPS test proposed by Pesaran (2007). The results obtained from the CIPS panel unit root tests showed that the variables became stationary at their first difference. Then, we used Westerlund’s (2005) cointegration method to determine the cointegration relationship between the variables. Finally, we used Pedroni (2001) and Kao’s (1999) cointegration tests to support the predictions of Westerlund (2005). Westerlund’s cointegration test confirmed the existence of a long-run relationship between the variables. These results are also compatible with Pedroni's (2001) and Kao’s (1999) cointegration tests. Used OLS and FMOLS methods to estimate the long-term coefficients of the cointegrated variables. However, these methods do not consider possible cross-sectional dependence and slope homogeneity. Therefore, the CCEMG method, which considers cross-sectional dependence and slope homogeneity, was used. According to CCEMG's estimations, there is a negative relationship between solar energy consumption and CO2 emissions. In other words, as solar energy consumption increases, CO2 emissions decrease. OLS and FMOLS estimations also support this result. In addition, there may be casualty relationships among the variables that are related in the long run. Dumitrescu and Hurlin's (2012) test determined possible casualties among the variables. As seen from the empirical results of the causality test, there is bidirectional causality between solar energy consumption and CO2 emissions. In addition, identified two other bidirectional causes between CO2 emissions with coal energy consumption and GDP. Furthermore, there is unidirectional causality from financial globalization to CO2.

Based on these findings, we can make several policy recommendations. First, we found solar energy is a valuable energy source to reduce carbon emissions. Therefore, can create a rational policy to increase investment in the solar energy sector. Second, field studies should be conducted to determine the areas that can use solar energy more intensively before investing. Thus, as a result of these studies, investment recovery could be more effective. Third, for the development of technology related to the use of solar energy, institutes working on solar energy should be established. And competent personnel to work in this field should be trained in higher education institutions. Fourth, motivational rebates should be applied to make people aware of the impact of solar energy on environmental sustainability. For example, it should reflect the discount rate on the bills of those who use a solar system to heat their home. Fifth, governments should give tax advantages and energy investment incentives to companies that prefer solar energy in their production processes. Thus, countries will benefit from solar energy sufficiently to reduce CO2 emissions. As a result of all these practices and incentives, countries sswill benefit from solar energy sufficiently to reduce CO2 emissions.