The Dynamic Interrelationship of Environmental Factors and Foreign Direct Investment: Dynamic Panel Data Analysis and New Evidence from the Globe

Studies on the role of renewable energy consumption and other environmental factors in carbon emission have got considerable attention recently, and they are predicted to get exaggerated in the coming decades. Energy usage increases economic growth and development of a country and backs to global warming and carbon emission which aﬀect the local environment. For the prosperity of a country, it is felt crucial to measure the unavoidable impacts which eﬀect environmental quality. Consequently, the current study investigates the interrelationship of renewable energy consumption, carbon dioxide emission, foreign direct investment, and economic growth in 190 countries of the world for the period of 1980 to 2018. By employing both static and dynamic models, the ﬁndings indicate that carbon emission, renewable energy consumption, foreign direct investment, and economic growth aﬀect each other signiﬁcantly whereas renewable energy consumption has been found beneﬁcial for environmental quality; however, it decreases the inﬂow of FDI. RE has a decreasing impact, while FDI and carbon emission promote economic growth. The study suggests the promotion of renewable energy resources and policies related to FDI to promote the quality of the environment and achieve economic growth as well.


Introduction
Environmental factors and their association with other variables have been studied by several researchers, and it has been argued that some factors increase carbon emission and vice versa. e role of renewable energy has been considered beneficial for environmental quality in most of the preceding studies where it also effects economic growth of a country. On the other hand, economic growth also has an influence on renewable energy consumption. Al-Mulali and Sheau-Ting [1] and Ocal and Aslan [2] examine that the use of renewable energy instead of energy from fossil' fuels increases economic growth, while on the other hand, Menyah and Wolde-Rufael [3] debated that the use of renewable energy is beneficial for environmental quality while the utilization of renewable energy in most of the countries has not yet reached the desired level to help reduce emission. Shafiei and Salim [4] conducted a study on OECD countries and have found that the use of renewable energy significantly contributes to the environment and reduces carbon emission. Sadorsky [5] has found that carbon emission and GDP are the drivers of renewable energy usage, while Ben Jebli et al. [6] show that renewable energy consumption has a bidirectional causal relationship with trade openness where renewable energy consumption increases the growth rate.
ere is an arguing debate on the relationship among these variables in the prevailing literature. Several researchers have also considered the impact of FDI on carbon emission. A study conducted by Huynh and Hoang [7] studied the influence of FDI on pollution in 19 developing countries of Asia for the period of 2002 to 2015. ey have found that the inflow of FDI in the initial stage increases pollution whereas the improvement in institutional quality lowers this effect till the achievement of a threshold of institutions quality; however, beyond the threshold, FDI has been found to lower the air pollution in the Asian developing countries. Likewise, Zhu et al. [8] have found that foreign direct investment increases carbon emission in the sample cities of China. ey further state that FDI reduces carbon emission during the lagging period of one phase. A study conducted by Li et al. [9] examines the relationship of foreign direct investment with carbon emission by using an oriented quantile regression model where they indicate that there exists a negative relationship between the study variables. Similarly, the study of Zhu et al. [10] shows the negative impact of FDI on carbon emission while they have found the increasing impact of energy consumption on carbon emission. e current study is a comprehensive study which examines the interrelationship of renewable energy consumption, carbon emission, economic growth, and foreign direct investment in the global panel by using dynamic panel models while such kind of studies in a new way have never been conducted before. e study is organized in the given sequence: Section 2 illustrates empirical literature review regarding the association between different variables regarding the current study, Section 3 is composed of the methodology, Section 4 presents the findings of the study, while Section 5 concludes the study.

Literature Review
Several studies have been conducted on the association of renewable energy consumption, carbon emission, economic growth, and foreign direct investment but with little accord. e linkage of renewable energy consumption with other variables such as GDP, carbon emission, international trade, and nonrenewable energy has been studied by different researchers such as Shafiei and Salim [4]; Jebli and Youssef [11]; and Dogan and Seker [12]. A study conducted by Jebli and Youssef [13] and Apergis and Payne [14] states that there is unidirectional casualties from renewable energy to trade openness and carbon emission, from tourism to FDI and trade openness and from growth to tourism and renewable energy consumption, while there is bidirectional causality between the variables in the long run. Hanif [15] examined the relationship between economic growth, fossil fuels, solid fuels, renewable energy consumption, and carbon dioxide emission in sub-Saharan Africa for the period from 1995 to 2015. ey have used the GMM model where the findings show that the impact of fossil fuels and solid fuels on carbon emission is positive while renewable energy has a decreasing influence on carbon dioxide emission. A study conducted by Ali et al. [16] examines the association between carbon emission and energy consumption, and they have found no impact of the industry value added on carbon emission; however, they state that technological advancement can lead to environmental quality protection. ey further found the bidirectional long run association of carbon emission to energy consumption, technological innovation, and structural change. Khan et al. [17] studied the association between energy consumption, carbon emission, and economic growth in Pakistan for the period from 1965 to 2015. By using the ARDL model, the results show that economic growth and energy consumption have an increasing impact on carbon emission both in long and short run. ey suggest that renewable energy sources are beneficial for the environment and decrease carbon emission. Isik et al. [18] examined the impact of renewable energy consumption, energy from fossil fuels, and GDP on carbon emission for ten US states. e findings of their study validate the EKC hypothesis and found the negative impact of fossil fuels on carbon emission in Texas while energy consumption has been found to have an increasing influence on carbon emission in Florida. Sarkodie et al. [19] have studied renewable energy and foreign direct investment in climate mitigation in the presence of governance for 47 sub-Saharan African countries. ey have found that renewable energy decreases the greenhouse gas emission while FDI, income level, and governance worsen climate change. Alola et al. [20] have studied the dynamic impact of economic growth, trade policy, fertility rate, and renewable and nonrenewable energy consumption on ecological footprint in 16 European countries.
ey have found that nonrenewable energy consumption depletes environmental quality while renewable energy consumption improves environmental sustainability. Bhat [21] studied renewable and nonrenewable energy consumption, economic growth, and carbon emission in five emerging economies for the period from 1992 to 2016. By using a pooled mean group and panel generalized method of moments, they have found that labor, capital, and nonrenewable energy consumption are positively associated in the long run while the impact of renewable energy consumption is positive and insignificant. On the other side, they found a positive impact of nonrenewable energy on carbon emission and a negative impact of renewable energy consumption of carbon emission. Ito [22] studied carbon emission, renewable and nonrenewable consumption of energy, and economic growth and found a negative impact of nonrenewable energy consumption on economic growth and a positive impact of renewable energy consumption on economic growth in developing countries. Likewise, Khan et al. [17] have studied the interrelationship of renewable energy consumption, financial development, and carbon emission in the globe by employing the panel quantile regression model. eir findings confirm that their study variables are heterogeneous on each other across quantiles. Furthermore, Frankel and Romer [23] state that financial liberalization and development attract foreign direct investment and increase the degree of investment rated to R&D which can enhance the performance of the environment. Similarly, Zhu et al. [8] have examined the influence of foreign direct investment, economic growth, population, and other factors on carbon emission in China. ey have employed dynamic panel data and models where their findings indicate that foreign direct investment increases carbon emission in the sample cities of China. ey further state that FDI reduces urban emission during the lagging period of one phase. A study conducted by Li et al. [9] examines the foreign direct investment relationship with the environment by using an oriented quantile regression model where they indicate that there exists a negative relationship between the study variables. Mathematical Problems in Engineering

Data.
is study examines impact of renewable energy consumption, carbon emission, economic growth, and FDI on each other whereas data for these variables and other control variables for the study have been collected from the world development indicator for the period of 1980 to 2018. e study has used OLS, fixed effect, two-step GMM, and two-step system GMM models for analysis. e study variables include renewable energy consumption used as a % of total final energy, carbon dioxide emission calculated as metric tons per capita, and foreign direct investment calculated as net inflows as a percent of GDP and GDP per capita (annual growth percent). Other variables used are urban population, trade openness, and total government expenditure.
e beginning period was based on the availability of data.

Econometric Techniques.
e current study uses the OLS, fixed effect, two-step GMM, and two-step system GMM models to investigate the interrelationship of renewable energy consumption, carbon dioxide emission, foreign direct investment, and economic growth in the global panel of 190 countries. We have used different econometric models to effectively investigate the interrelationship among the study variables. e static models are used to compare the current findings with the preceding studies results, while the main focus of this study is the system GMM as the OLS or fixed effect models might lead to different econometric problems and give inefficient results. Similarly, we also employ difference GMM where the difference GMM uses the first differences of regressor and the dependent variables to transform the regression for abstracting the country-specific effects and make regressor time invariant. e autocorrelation problems can be eliminated as the first difference lagged a dependent variable instrumented with precedent levels in difference GMM. Arellano and Bover [24] state that these modeling might also give inefficient conclusions if there are sedulous nature-independent variables. erefore, the present study utilizes system GMM, specifically the two-step GMM model as its considered better than the one-step system GMM estimator by different researchers such as Law and Azman-Saini [25]. Focusing on the two-step system GMM estimators, the impact of carbon emission, FDI, and economic growth on renewable energy has been investigated, and the equation can be illustrated as follows: (1) Secondly, we have then taken CO 2 as the dependent variable and have found the impact of renewable energy consumption, foreign direct investment, and economic growth on carbon emission where the equation can be stated as; (2) irdly, we have taken FDI as the dependent variable, and renewable energy consumption, carbon emission, and GDPPC are explanatory variables to find its impact on FDI where, empirically, the equation can be stated as follows: Lastly, we have taken GDP per capita as dependent variables and carbon emission, renewable energy consumption, and foreign direct investment as explanatory variables to find its impact on economic growth. e equation can be expressed as follows; All of the above mentioned four models on the interrelationship of renewable energy consumption, carbon emission, foreign direct investment, and economic growth are illustrated in Figure 1.
In the above mentioned equations; RE is renewable energy consumption (% of total final energy) where an increase in the use of renewable energy sources might act as an inhibitor of carbon emission. CDO is carbon dioxide emission (metric tons per capita) used to represent environmental degradation and FDI is foreign direct investment calculated as net inflows as a percent of GDP, while GDPPC is gross domestic product per capita used for economic growth. RE it-1 , CDO it-1 , FDI it-1 , and GDPPC i,t−1 are the first lag of left-hand variables used as explanatory variables in equations (1)-(4), respectively, to quantify the proceeding years' effect on the present year, and X it represents the vector of control variables that hypothetically affects our left-hand side variable. e control variables include urban population, where the available literature shows that a population increase acts as a driver of carbon emissions, trade openness, and total government expenditure as a % of GDP, whereas subscripts i (i � 1. . . N) and t (t � 1980. . . . 2018) are index, country and time, respectively.

Results and Discussion
e estimated results on the interrelationship of renewable energy consumption, carbon dioxide emission, foreign direct investment, and economic growth are given in this section for the panel data of 190 countries of the globe. Static and dynamic models have been utilized which include the OLS, FE, Arellano-Bond [26] two-step difference GMM, and the Arellano and Bover [24] two-step system GMM. As mentioned in the previous section, as the two-step system GMM is a more robust and efficient estimator, the current study focuses on the two-step system GMM and considers its results. To know the validity of the instruments and model fitness, the Sargan test and Arellano and Bond tests results are given in all tables where these results indicate that the Sargan test and serial correlation tests p values are insignificant and the null hypothesis cannot be rejected in all tables. erefore, these results support the current study estimation results and imply that there is no correlation.
Mathematical Problems in Engineering erefore, the included instruments in the model are valid and the GMM panel-estimated model aligns with econometric theory. Tables 1-3 give the results on the interrelationship of carbon dioxide emission, renewable energy consumption, foreign direct investment, and economic growth for the global panel of 190 countries.

e Impact of Renewable Energy Consumption, Economic
Growth, and FDI on Carbon Emission. Results on the impact of renewable energy consumption, economic growth, and FDI on carbon dioxide emission are given in Table 1, where column 1 shows the list of variables, column 2 presents the results of the OLS model, and columns 3, 4, and 5 show the results of fixed effect, two-step GMM difference, and twostep system GMM, respectively. e results indicate that the lagged value of carbon dioxide emission is highly significant which shows that both system and difference GMM models are suitable estimators. e results of the Sargan test and AR2 test of serial correlation also support the validity of instruments used in the model of the current study. For instance, the AR2 p value is 0.546 and the Sargan test p value in the system GMM is 0.013 which is above the significance level and confirms the validly of the study models and instruments. e estimated coefficient of renewable energy consumption given in the table is highly significant at 1 percent level in all four econometric models while the sign is negative which illustrates that renewable energy consumption reduces carbon dioxide emission and it is beneficial for the quality of environment. More specifically, system GMM model results show that a percent increase in the consumption of renewable energy lowers carbon emission by 0.013 percent in the globe. e negative impact can be the reason due to substitutability of fossil fuels on renewable energy sources and reduction in former energy use. e results confirm that the use of renewable energy consumption instead of using energy from fossil fuels is beneficial for the quality of environment.
e results further validate the findings on the impact of renewable energy sources. Our findings are in favor of ecological modernization theory where it emphasizes on technological innovation for enhancing environmental quality and it also supports environment transition theory, clean development mechanism, and social choice theory. Bilgili et al. [27] also state that renewable energy enhances environment quality because its replaces conventional technologies which depend on nonrenewable energy from fossil fuels. e use of renewable energy does not burden the environment and sustainability as compared to conventional energy usage and it also ensures energy security. Alola et al. [20] have found that renewable energy consumption improves environmental quality. Likewise, our findings are in line with those of Sharif et al. [28] and Koengkan [29]; Jebli and Youssef [11]; Jebli et al. [30]; Jebli et al. [31]; Li and Su [32]; and Abolhosseini et al. [33] who have also found that renewable energy consumption reduces carbon emission significantly. Mert and Bölük [34] also found that renewable energy consumption reduces carbon emission in Kyoto countries, while our findings are opposing to those of Nicholas Apergis and Payne [14], Farhani and Shahbaz [35], Leitão [36], and Apergis and Payne [14] conducted in developing and developed countries and to the study of Jebli and Youssef [11] conducted on Tunisia which claims the increasing effect of renewable energy on carbon dioxide emission.
Likewise, foreign direct investment is significant high in models 1 and 2 and model 4 at 1 percent significant level while the relationship with carbon dioxide emission is negative which illustrates that the increase in foreign direct investment reduces carbon emission. For instance, the result of the system GMM indicates that if there is a percent increase in foreign direct investment, it will reduce carbon emission by 0.007 percent in the global panel. is may be due to the large number of FDI projects in the region by using the renewable energy sources in production. e countries might have facilitated those foreign investors who bring clean technologies to the countries which help protect the environment and also might have good polices for foreign direct investment projects which are beneficial for the quality of environment. However, Sarkodie et al. [19] have found that FDI increases greenhouse gas emission which may be due to the sample size of sub-Saharan African countries and might also have yet well-facilitated foreign investors to bring clean technologies for production. e studies of Jebli and Youssef [11] and Zhu et al. [10] have reinforced our findings while they are contradictory with the study of Zhou et al. [37]; Sarkodie and Strezov [38]; Sarkodie et al. [19]; and Peng et al. [39] who state the positive impact of FDI on CO 2 emissions. Additionally, Atici [40] states that FDI is good for pollution reduction in Asia. e coefficients of log GDP per capita are also statistically significant at 1 percent level and positive in all models, which indicates that increase in per capita GDP increases carbon emission. is result can be the reason that more necessities of economic growth can be the use of more energy from fossil for the goods production which leads to increase carbon emission. e results suggest that there are including developing countries in the panel which are facing challenges of environmental degradation as these countries are using nonrenewable energy from fossil fuels to enhance economic activities which cause environmental degradation. e results regarding per capita GDP are in line with the findings of Katircioglu [41]; Acheampong [42]; Jebli et al. [30]; Menyah and Wolde-Rufael [3]; Lee and Brahmasrene [43]; De Vita et al. [44]; and Hourcade and Robinson [45] who have also found that the increase in per capita GDP drives carbon emission.
Similarly, the estimated coefficient of urban population is also highly statistically significant at 1 percent level and positive in all employed models which indicate that urban population affects carbon emission positively. e available literature also shows that an increase in population acts as a driver of carbon emissions. e results confirm that an increase in urban population increases emission because as the population increases, it needs to use more energy of fossil fuels to meet the requirements and can effect environmental quality. Increasing population is the problem these days in some countries which are included in the panel of our sample countries. e coefficient of trade openness in all models is highly significant at 1 percent level, and the relationship with carbon emission in negative which indicates that if there is 1 percent increase in trade openness, it will reduce carbon emission by 0.019 percent in the global panel. e results suggest that more openness to trade in countries is beneficial to reduce carbon emission. e current results are in line with the findings of Jayanthakumaran et al. [13] and Dogan et al. [46]. e reason of the negative impact of openness to trade on carbon emission maybe the reason that there may not be high volume of trade for import export which may not use energy from fossil fuels for the purpose of production, transport, and other activities which may reduce emission. Similarly, the coefficients of government expenditure are also highly significant and positive which indicates that they affect carbon emission positively in the sample countries.

e Effects of Carbon Dioxide Emission, Economic Growth, and FDI on Renewable Energy Consumption.
Results on the effect of carbon dioxide emission and foreign direct investment on renewable energy consumption are given in Table 1, where column 1 shows the list of variables, column 2 presents the results of OLS model, and columns 3, 4, and 5 show the results of the fixed effect, two-step difference GMM, and two-step system GMM, respectively. In the table, the lagged value of renewable energy consumption is highly statistically significant which shows that both the system and difference GMM models are suitable estimators. As mentioned in Section 4 that the Sargan test and AR2 insignificant p values give the validity of the models and instruments, the results of the Sargan test and AR2 are given in Table 2 which support the validity of the current study model instruments. For instance, the AR2 p value is 0.945 and the Sargan test p value is 1.000 which are above the significance level and confirm the validly of the study models.
e estimated coefficient of carbon dioxide emission is significant high, and its association with renewable energy consumption is negative in model, 1 model 2, and model 3 which indicates that carbon emission reduces the consumption of renewable energy. Khan et al. [17] have found the same result and state that carbon emission has a negative Note. OLS is ordinary least square, FE, GMM, and SGMM are the fixed effect, generalized method of moments, and system generalized method of moments, respectively. e standard error is shown in parenthesis, and the significance level is shown by * , * * , and * * * at 1, 5, and 10%, respectively. AR1 and AR2 are the Arellano and Bond tests.
impact on renewable energy while the results of model 4 indicate that carbon emission increases renewable energy consumption. Saidi and Hammami [47] and Hwang and Yoo [48] have found the same results to these findings while Tiwari [49] has found a long-run association between the two variables. On the other hand, Hossain [50] have found a unidirectional association between the variable, while Wu et al. [51] found a bidirectional relationship. Our findings are contradictory with the results of Bilan et al. [52] which he state that the negative impact maybe the less effective mechanisms and instruments in developing the implementation of renewable energy sources. Likewise, the coefficient of foreign direct investment is highly statistically significant while the relationship is negative with renewable energy consumption in model 1 and model 2 and the result is highly significant and positive in model 3 and model 4. For instance the system GMM result in model 4 indicates that a percent increase in foreign direct investment inflow in the global panel will increase renewable energy consumption by 0.006 percent. e results further suggest that the inflow of FDI in the global panel is still lower than the desired level; however, high amount of foreign direct investment and projects will increase renewable energy consumption. Khan, khan, and Binah [17] have found the same results by showing that the inflow of FDI has a negative influence on renewable energy consumption.
Similarly, the coefficient of GDP per capita is highly significant at 1 percent level and negative in all models except model 1 which indicates that per capita GDP influences renewable energy consumption negatively in the global panel. e result of the system GMM indicates that a percent increase in GDP per capita will reduce renewable energy consumption by 0.010 percent in the global panel. Bilan et al. [52] also state that an increase in economic growth reduces renewable energy consumption which is in line with the current study's findings. Urban population, which is the control variable, is also highly significant at 1 percent level in all models, and the relationship with renewable energy is positive indicating that a percent increase in urban population will increase the consumption of renewable energy by 0.009 percent in the global panel. e coefficient of trade openness is also highly statistically significant and positive in the FE, GMM, and system GMM and negatively significant in the OLS model. e coefficient value in the system GMM indicates that a percent increase in trade openness will increase the consumption of renewable energy by 0.003 percent. e coefficient of government expenditure is highly statistically significant at 1 percent level and positive in all models except in model 1 which indicates that government expenditure affects renewable energy consumption positively. For instance, the system GMM results indicate that a percent increase in government expenditure will rise the consumption of renewable energy by 0.021 percent in the global panel.

e Effect of Carbon Dioxide Emission, Renewable Energy Consumption, and Economic Growth on Foreign Direct
Investment. Results on the impact of carbon dioxide emission, renewable energy consumption, and economic growth on foreign direct investment is given in Table 3. Column 1 shows the list of variables, column 2 presents the Note. OLS is ordinary least square, FE, GMM, and SGMM are the fixed effect, generalized method of moments, and system generalized method of moments, respectively. e standard error is shown in parenthesis, and the significance level is shown by * , * * , and * * * at 1, 5, and 10%, respectively. AR1 and AR2 are the Arellano and Bond tests.
results of the OLS model, and columns 3, 4, and 5 show the results of the fixed effect, two-step GMM difference, and two-step system GMM, respectively. In the table, the lagged dependent variable is highly statistically significant which shows that both the system and difference GMM models are suitable estimators. e results of the Sargan test and AR2 test of serial correlation are given in the Table 3 supporting the validity of the current study model instruments. e estimated coefficient of carbon emission is highly statistically significant and negative in the OLS and system GMM which indicates that an increase in carbon emission increases the flow of foreign direct investment, while for instance, the system GMM results indicate that a percent increase in carbon emission will reduce FDI inflow by 0.08 percent; however, the FE and GMM models results show the positive association of carbon emission with FDI inflow which indicates that an increase in carbon emission increases FDI. e current results are similar to the findings of Kılıçarslan and Dumrul [53] and Cao et al. [54] who also state that CO 2 emission and FDI have a positive relationship.
Similarly, the estimated coefficient of renewable energy is highly statistically significant at 1 percent level in all models, and the relationship with FDI is negative in the OLS and system GMM while positive in the FE and GMM. e system GMM result indicates that renewable energy consumption affects FDI significantly but negatively. More specifically, the result of the system GMM indicates that a percent increase in renewable energy consumption will reduce FDI by 0.088 percent in the global countries. Our findings are further reinforced by the studies of Marton and Hagert [55] who have also revealed the negative association between the variables.
Moreover, the coefficients of log GDP per capita are also highly statistically significant at 1 percent level and positive in all employed models which indicates that per capita GDP affects carbon emission positively. For instance, the system GMM result shows that a 1 percent increase in per capita GDP will increase FDI by 0.084 percent. e coefficient of trade openness is also highly significant in the OLS, FE, and DGMM which indicates that trade openness affects FDI significantly but positively. For instance, the difference GMM result indicates that a unit increase in trade openness will increase FDI by 0.371 percent in the globe. Government expenditure is significant and negative in the OLS, DGMM, and SGMM models which indicates that government expenditure effects FDI negative significantly. More specifically, the system GMM result indicates that a 1 percent increase in government expenditure will decrease FDI by 0.0.191 percent in the global panel.

e Effect of Carbon Dioxide Emission and Renewable Energy Consumption and Foreign Direct Investment on Economic Growth.
Results on the impact of carbon dioxide emission, renewable energy consumption, and foreign direct investment on economic growth are given in Table 4. e results of the OLS, fixed effect, two-step GMM difference, and two-step system GMM are given in columns 2, 3,4, and 5, respectively. In Table 4, the lagged dependent variable is highly statistically significant which shows that both the system and difference GMM models are suitable estimators. e results of the Sargan test and AR2 test of serial correlation are given in the Table 4 which support the validity of Note. OLS is ordinary least square, FE, GMM, and SGMM are the fixed effect, generalized method of moments, and system generalized method of moments, respectively. e standard error is shown in parenthesis, and the significance level is shown by * , * * , and * * * at 1, 5, and 10%, respectively. AR1 and AR2 are the Arellano and Bond tests.
the current study's model instruments. e impact of carbon emission on economic growth results in all models is highly significant at 1 percent level and positive which indicates that carbon emission significantly increases economic growth. For instance, the results of the system GMM indicate that a percent increase in carbon emission will increase economic growth by 0.026 percent. e results of our study regarding the positive significant impact of carbon emission on economic growth are similar to the findings of Rahman et al. [56] who also show the positive impact of carbon emission in economic growth. e estimated coefficient of renewable energy consumption is also highly significant at 1 percent, while its impact on economic growth is negative which indicates that RE significantly decreases economic growth in the panel. Rahman et al. [56] have also found that renewable energy consumption has an negative impact on economic growth in Pakistan. Most of countries are trying to increase their economic activities by using nonrenewable energy from fossil fuels but nonrenewable energy degrades environmental quality while some countries have not yet reached to the desired level to use the renewable energy sources for production and so it is still needed to improve renewable energy consumption and enhance economic growth as well. e coefficient of FDI is also highly significant at 1 percent and positive which indicates that FDI positively affects growth and an increase in the inflow of FDI will enhance economic growth. For instance, the system GMM results show that a percent increase in FDI inflow will push upward economic growth by 0.063 percent. It is commonly agreed that FDI inflow helps increase the level of economic growth of any country. It is believed that the inflow of foreign direct investment is beneficial for economic growth while Gokmenoglu et al. [57] and Abdalla Sirag Khartoum, Sudan, and Hamisu Sadi Ali [58] have also found that FDI positively affects economic growth. In Table 4, the estimated coefficient of urban population is highly significant while the relationship with economic growth is negative which indicates that an increase in urban population reduces economic growth in the panel. More specifically, the results of the system GMM indicate that a percent rise in urban population will decrease economic growth by 0.003 percent. Similarly, the estimated coefficient of trade openness is also highly significant in all models and positive indicates that trade openness significantly increases economic growth. On the other side, the estimated coefficient of government expenditure is highly significant in all models but negative which indicates that an increase in government expenditure significantly reduces economic growth in the global panel countries.

System GMM Results on the Relationship of Renewable Energy, Carbon Emission, and Foreign Direct Investment on Each Other.
e system GMM results for all the independent variables FDI, carbon emission, economic growth, and renewable energy consumption impacts on each other are shown in Table 5, where column 1 represents the list of variables and column 2 to 4 show the dependent variables, where RE it-1 , CDO it-1 , FDI it-1, and EC it-1 , are the lag of dependent variables which are highly statistically significant at 1 percent significance level which shows that all these dependent variables in the anterior year is associated significantly and positively to the present year.
In Table 5, carbon emission has a positive and significant effect on renewable energy consumption and a negative significant impact on foreign direct investment. e findings indicate that an increase in carbon emission increases renewable energy consumption while it reduces FDI inflow. Likewise, the estimated coefficient given in the table of renewable energy consumption is significant at 1 percent and its impact of CO2 emission and FDI is negative which shows that renewable energy consumption reduces emission and the inflow of FDI significantly. Abolhosseini et al. [33] have also found the same results and state that renewable energy significantly reduces the rate of carbon emission where Marton and Hagert [55] also argue that FDI has a correlation with renewable energy negatively. Foreign direct investment is also significant and positive on renewable energy consumption while negative significant for carbon emission which means that a rise in FDI increases renewable energy and decreases carbon dioxide emission in the global panel. Marton and Hagert [55] have found the negative association between FDI and renewable energy while POLAT [59] states that FDI and renewable energy are associated.
Lastly, the coefficient of merchandise trade is statistically significant and positive for all dependent variables and negative significant for foreign direct investment which indicates that an increase in merchandise trade increases carbon dioxide emission and renewable energy consumption and reduces foreign direct investment inflow. Moreover, other control variables such as per capita GDP are also highly significant at 1 percent level for all dependent variables; however, the sign is negative for renewable energy which means that an increase in GDP per capita decreases the consumption of renewable energy and increases carbon emission and foreign direct investment. e estimated coefficient of urban population is also highly statistically significant at 1 percent level for all dependent variables where the sign is positive for renewable energy, carbon emission, and foreign direct investment which means that an increase in urban population increases the consumption of renewable energy, carbon emission, and foreign direct investment. Likewise, the coefficient of trade openness is significant high at 1 percent level, and the relationship is positive with renewable energy which indicates that an increase in trade openness increases renewable energy consumption; however, the relationship of trade openness is negative with other dependent variables which indicates that an increase in trade openness lowers carbon emission in the global panel. On the other hand, the coefficient of trade openness is insignificant with foreign direct investment which indicates that trade openness does not matter for FDI inflow. Similarly, government expenditure is significant at 1 percent level, and the relationship with renewable energy is positive which indicates that an increase in government expenditure increases the consumption of 8 Mathematical Problems in Engineering renewable energy. For carbon emission, the government expenditure coefficient is negative and highly significant which indicates that government expenditure lowers the level of carbon emission and tourism. e last column of Table 5 shows that carbon emission and foreign direct investment highly significantly and positively affect economic growth which indicates that an increase in carbon emission and FDI enhances economic growth while e standard error is shown in parenthesis, and the significance level is shown by * , * * , and * * * at 1, 5, and 10%, respectively. Note. OLS is ordinary least square, FE, GMM, and SGMM are the fixed effect, generalized method of moments, and system generalized method of moments, respectively. e standard error shown in parenthesis, and the significance level is shown by * , * * , and * * * at 1, 5, and 10%, respectively. AR1 and AR2 are the Arellano and Bond tests.
renewable energy consumption negatively affects economic growth. Other control variables urban population and government expenditure negatively influence economic growth, while trade openness increases economic growth in the global panel.

Conclusions and Policy Implication
e current study is composed of the dynamic impact of carbon emission, renewable energy consumption, and FDI on each other for the sample data on 190 countries. e variables' data have been gathered from WDI (world development indicator) for the time period from 1980 to 2018. Both static and dynamic models have been employed for the examination of this association. e findings basically focus on the two-step system GMM which indicates that carbon emission influences renewable energy positively and negatively affects FDI inflow which indicates that carbon emission brings increase in renewable energy and reduces the inflow of FDI. e results on the impact of RE on carbon emission are negative which evidence that renewable energy consumption reduces carbon emission and it is beneficial for environmental quality. e impact of RE on FDI is also negative which shows that it effects FDI negatively in the global panel. e impact of merchandise trade also effects all dependent variables significantly and positively and negatively significantly influences FDI which shows that an increase in merchandise trade increases carbon emission and renewable energy consumption; however; it reduces the inflow of FDI in the global panel. Likewise, per capita GDP, which is a control variable, is also significantly high at 1 percent level of all the study dependent variables and the sign is negative for renewable energy consumption which illustrates that per capita GDP reduces the consumption of energy and increases the level of FDI and carbon emission. Urban population is also significantly high at 1 percent level of all the target-dependent variables and the sign for renewable energy; FDI; and carbon emission is positive which evidence that urban population brings an increase in carbon emission, FDI, and renewable energy consumption. Likewise, the coefficient of trade openness is also significantly high which indicates that an increase in openness to trade increases the use of renewable energy consumption, while on the other hand, it decreases the rate of carbon emission in the panel while for FDI inflow, we have no evidence of any impact. e impact of government expenditure on renewable energy consumption is positive and significant which shows that it helps in increasing the usage of renewable energy consumption, while it has been found that it decreases carbon emission in the panel. Lastly, the impact of FDI and carbon emission on economic growth has been found to be positive, while the impact of renewable energy consumption has been found to be negative which indicates that RE decreases economic growth. e findings of this study are very important and have significant policy implication for the countries to encourage the use of renewable energy instead of using fossil fuels energy which can be a major driver to enhance the environment quality as renewable energy in the study shows that it reduces emission. Similarly, policies-related FDI has been suggested by our findings, and improvement of infrastructure is also suggested which significantly contributes to quality of environment. e study is limited to variables used, and further researchers should consider other regions and use different methods and variables to efficiently investigate the interrelationship of such variables [38].
Data Availability e data used in this paper are available on the World Bank Database, world development indicator.

Conflicts of Interest
e authors declare that they have no conflicts of interest.