Introduction

Today, the world is in favor of trade openness because open economies grow faster (Sachs and Warner 1995), are more productive (Kim and Lin 2009), and have higher per capita GDP (Antweiler et al. 2001) than closed economies. Trade openness may have a negative or positive effect on the environment due to technique, scale, comparative advantage, and composition effects (Grossman and Krueger 1991; Antweiler et al. 2001; Ling et al. 2015; Sahu and Kamboj 2019). Furthermore, trade openness also influences environmental quality via economic growth (Baek and Kim 2011; Ali et al. 2016; Destek et al. 2018). During the growth process, environmental quality first degrades and then begins to improve after reaching a certain threshold. This inverse U-shaped GDP-pollution pattern is also called the environmental Kuznets curve (EKC)Footnote 1 (Grossman and Krueger 1991, 1995; Antweiler et al. 2001). Generally, the negative impact of economic growth on environmental quality at the initial phase of development is due to the scale effect of trade openness and increased energy consumption. However, it would have a positive impact on the environment at the subsequent stage due to technique and/or composition effect (Mrabet and Alsamara 2017; Lan 2017; Destek et al. 2018). In scale effect, the environmental quality degrades due to more economic activities (transportation, industrial production, and deforestation) and energy consumption because, at the early stage of development, more attention is given to growth instead of environmental quality. Afterwards, when income level increases in the second stage of development under technique effect, people demand cleaner environment to attain a higher living standard (Grossman and Krueger 1991; Antweiler et al. 2001; Mahalik et al. 2018; Sarkodie and Strezov 2019). For this regard, production of goods based on dirty technology is replaced with cleaner technology, or with the services sector, having a positive effect on the environment called composition effect (Antweiler et al. 2001; Lin 2017; Uddin et al. 2017). Trade openness helps to improve environmental quality if the technical effect dominates the scale effect and composition effect (Antweiler et al. 2001). Moreover, trade openness can improve environmental quality through capital-labor channels and when environmental regulation is greater than capital-labor effect (Copeland and Taylor 1994; Managi et al. 2009).

Trade openness, innovations, and global movements of a capital encourage vector of green growth and especially adequate instruments to fight climate change and pollution (Meschi and Taymaz 2017; Song et al. 2019; Lv and Xu 2019). The EKC hypothesis has been a central point of the environment since trade openness became more extensive in the world (Antweiler et al. 2001; Mrabet and Alsamara 2017; Shahbaz et al. 2017). Trade openness also invites FDI in the country (Salman et al. 2018; Udeagha and Ngepah 2019; Ali et al. 2020). Proponents of free trade suggested that international trade will lead to enhance world income, but the intensive trade also has some environmental consequences which may outweigh the benefits from trade (Nemati et al. 2019; Mrabet and Alsamara 2017; Ali et al. 2020). Comparative advantage is the hallmark of free trade, but it can lead to further environmental degradation (Tsai 1999; Wei et al. 2019). According to the pollution haven hypothesis (PHH), due to trade openness and comparative advantage, the dirty industrial production migrates from more developed countries, with strict environmental standards, to the less developed economies, with the lax regulations (Copeland and Taylor 1994; Cole 2004). The comparative advantage effect on environmental quality depends on the combined effect of the overall composition of trade in an economy (Ling et al. 2015). Due to the complex nature of the relationship between trade openness and economic growth, it is hard to pinpoint the paths that underlie the trade-growth-environment nexus (Kellenberg and Mobarak 2008). It may be inappropriate to generalize EKC patterns for all countries since the process of development is likely to differ among them (De Bruyn et al. 1998). Despite this fact, however, the EKC provides a useful link on how trade openness may influence pollution through growth (Uddin et al. 2017; Alola et al. 2019).

Most of the studies used greenhouse gas (GHG) emissions like carbon dioxide (CO2), sulfur dioxide (SO2), methane (CH4), sulfur hexafluoride (SF6), and nitrous oxide (N2O) as indicators of environmental quality (Frankel and Rose 2005; Apergis 2016; Dogan and Seker 2016; Apergis et al. 2017). Another indicator which is now widely recognized as a new measurement tool for the sustainable ecological system is known as ‘ecological footprint’ (Wiedmann and Barrett 2010; Galli 2015; Solis-Guzman and Marrero 2015; Ali et al. 2020). The ecological footprint is the best device to deal with the biological and ecological capacity of the earth for environmental sustainability (Aydin et al. 2019; Ali et al. 2020). Natural resources (minerals, water, lands, and forests) are dissipated due to industrial and human actions. If only emissions are selected as the indicators of environmental quality, then economic and human activities are neglected which will be hazardous for the sustainable ecosystem (Sarkodie 2018; Aydin et al. 2019; Li et al. 2019; Dogan et al. 2019).

One of the least studied regions in terms of EKC is Organization of Islamic Cooperation (OIC) countries, consisting of fifty-seven economies, comprising the Muslim community and incorporates a considerable proportion of the under-developed countries. OIC countries have 23.8% population of the world (SESRIC 2018). Due to globalization and trade openness, the industrial production of OIC countries is expanding which leads to more consumption of energy and natural resources which increases pollution (Mirjalili and Motaghian Fard 2019; Nekooei et al. 2015; Ali et al. 2020). Many countries adopted the Paris agreement to deal with environmental issues and agreed to make arrangements to mitigate the world temperature by reducing GHG emissions. This agreement is endorsed by 196 countries, but only 166 countries have ratified it in which 43 are OIC countries (SESRIC 2018). Moreover, environmental scarcities and degradation of natural resources can create socio-economic disputes in OIC countries (Tolba and Saab 2008; Gholipour and Farzanegan 2018).

The present study seeks to evaluate the trade-environment nexus and their role in EKC for OIC countries. Although many researchers have discussed the impact of trade openness on the environment in different countries, but in case of OIC countries, the comprehensive literature on the subject are very limited (Konac 2004; Ali et al. 2020). Currently, no study is available, which has evaluated the trade-environment nexus in the context of EKC in OIC countries. So, this research makes a contribution to the current literature through different means as consistent with the abovementioned discussion: (i) it is a first study which elaborates the trade-environment nexus with reference to EKC in OIC countries, (ii) unlike past empirical studies, this study uses a new technique called ‘dynamic common correlated effects (DCCE)’ which can deal with several methodological issues of the panel data like heterogeneity and cross-sectional dependence (CSD). The DCCE technique calculates dynamic common correlated effects by considering heterogeneous slopes and assuming that the variables can be represented by a common factor, (iii) a great majority of EKC literature use only CO2 emissions as a proxy for environmental quality which is an insufficient measure to capture environmental effects. Policymakers can be misleading when CO2 emissions are used exclusively as a proxy for environmental quality. So, more inclusive environmental variables are used to obtain robust findings. So, this study addresses the environmental issues in a modern context by considering three GHG emissions, i.e., carbon dioxide (CO2), methane (CH4), and nitrous oxide (N2O) along with a new proxy of environmental quality called ecological footprint, (iv) one of the largely ignored variables in the existing literature of EKC is trade openness. So, trade openness is added in our models to avoid specification bias. (v) The examination of the OIC countries is of interest to governments, researchers, and policymakers, since having accounted for almost 25.0% of the world total population, OIC countries are responsible for only 8.2% of global production and 10.2% of worlds trade, and having a higher level of air pollution than non-OIC developing nations (SESRIC 2018); (vi) it provides valuable suggestions based on the findings, which will open the routes for future research on the trade-environment nexus and its implications in OIC countries.

To this end, this paper evaluated the trade-environment nexus to test the EKC hypothesis in OIC countries by using various environmental indicators. A novel technique ‘dynamic common correlated effects (DCCE)’ is applied. Our findings confirm that inverted-U-shaped EKC exists in all groups of OIC countries when CO2, CH4, and ecological footprint are used as environmental indicators. However, a U-shaped EKC is found in overall OIC countries and lower income OIC countries when N2O is used. As a policy recommendation, OIC countries should continue trade openness policies and energy sector reforms and maintain sustainable use of biocapacity. The rest of the paper is structured as follows: Literature review section presents the review of empirical literature related to the trade-environment nexus and EKC. Data and methodology section introduces data and methodology. Results and discussion section yields results and discussion. Conclusion and policy recommendations are given in the Concluding remarks and recommendations section.

Literature review

The empirical research about the trade-environment nexus commenced with the presentation of EKC, which has been famous since the early 1990s. In pioneer studies, the effects of GDP and trade openness were observed by Grossman and Krueger (1991) for NAFTA,Footnote 2 which made a foundation for the further expedition of the EKC hypothesis. Shafik and Bandyopadhyay (1992) explored the empirical evidence of EKC through the growth-environment nexus. Despite many studies, the conflicting results have kept this area interesting for further investigation and research. For example, Frankel and Rose (2005) by using CO2 and SO2, while Shahbaz et al. (2015), Apergis and Ozturk (2015), Ertugrul et al. (2016), and Mutascu (2018) by using CO2 emissions discovered a significant and positive impact of trade openness on pollution. Moreover, some empirical studies, for example, Kellenberg and Mobarak (2008) and Saleem et al. (2019), had observed mixed evidence about the trade-environment nexus by using various environmental indicators (CO2, SO2, NO2, and VOCsFootnote 3). On the other side, using the EKC hypothesis, the outcomes of Shafik (1994), Mukhopadhyay and Chakraborty (2005), Soytas et al. (2007), Bernard and Mandal (2016), and Al-Mulali et al. (2015) could not find the trade-environment nexus, and the studies by Kathuria (2018) and Jobert et al. (2019) using the PHH also could not observe the link between trade openness and environment.

Antweiler et al. (2001) observed the trade-environment nexus under, i.e., technique, scale, and composition effect. The net impact of these three components originates the EKC. It was found that the environment improved if the strength of the technique effect was more than the scale effect and composition effect. Cole (2004) explained trade-environment nexus and validated PHH in OECD countries. Similarly, the relationship between trade openness and the environment was re-evaluated by Managi et al. (2009) for two GHG emissions (SO2 and CO2) in case of OECD and non-OECD economies, and similar outcomes were found as of Cole (2004). The changes in EKC pattern due to changes in trade was observed by Antweiler et al. (2001), Lindmark (2002), Cole (2004), Ali et al. (2016), Lan (2017), and Pata (2019). However, it is observed that if the growth of a country come through trade openness, then the level of pollution increases with economic growth (Copeland and Taylor 2005; Chang 2012; Shahbaz et al. 2013; Jebli and Youssef 2015; Ahmed et al. 2016; Lin 2017) and eventually, this scale effect is offset by the technological change due to change in preferences of individuals (Kozul-Wright and Fortunato 2012; Meschi and Taymaz 2017; Song et al. 2019). Apergis and Ozturk (2015) validated EKC for 14 countries of Asia by using CO2 emissions. After applying the GMM method, an inverse-U-shaped association was found between GDP and environmental degradation. Zambrano-Monserrate and Fernandez (2017) validated the EKC hypothesis in Germany by using N2O emissions. It was found that per capita GDP increased due to technique effect, and the quadratic association between income and N2O emissions was also indicated. Similarly, Dogan and Turkekul (2016) evaluated the impact of energy consumption, GDP, and trade openness on CO2 emissions in the USA for the year 1960–2010. Energy consumption has positive while trade openness had a negative impact on CO2 emissions. EKC hypothesis was also validated.

Some recent studies have utilized a new indicator for environmental quality named ecological footprint rather than greenhouse gas (GHG) emissions. Mrabet and Alsamara (2017) explored the trade-environment nexus using ecological footprint and CO2 emissions in Qatar for the year 1980 to 2011. The ARDL model indicated that trade openness had a positive relationship with environmental indicators. Trade openness had improved environmental quality because the technical effect dominated the scale effect and composition effect. EKC is validated by using the ecological footprint but not in the case of CO2 emissions. Uddin et al. (2017) observed the GDP-trade-ecological footprint nexus through DOLS method and found a positive association between GDP and ecological footprint while trade openness had a negative impact on ecological footprint. In another study, Aydin et al. (2019) observed the asymmetric relationship between GDP and pollution in 26 countries of the European Union by taking ecological footprint. The findings of the PSTR model indicated that environmental pressure increased with economic growth but did not decrease with further growth, and EKC did not prevail. On the other hand, Destek et al. (2018) analyzed the relationship between GDP, trade openness, and ecological footprint in European Union countries. Trade openness was negatively associated with the ecological footprint, and an inverse U-shaped relationship was found between real GDP and environmental degradation, which supported EKC. In another study, Dogan et al. (2019) validated the EKC for Indonesia, Mexico, Turkey, and Nigeria by using ecological footprint. Augmented EKC model indicated that exports, financial development, urbanization, and the consumption of fossil fuel energy were the main determinants of anthropogenic pressure on environmental degradation.

Only two studies are found regarding environmental quality in OIC countries. In the first study, Konac (2004) defined how trade openness and different environmental indicators were used to achieve sustainable development in OIC countries according to OIC plan of Action of 1994. It was argued that human activities like unsustainable use of agricultural land, poor irrigation practices, frequent use of heavy machinery, deforestation, removal of natural vegetation, and natural disasters were the main factors of land degradation (Konac 2004). An organic relationship was found between development and environmental protection as they both need and could harm each other. In the second study, Ali et al. (2020) observed the association between trade openness, foreign direct investment, and institutional performance on environmental quality by taking ecological footprint for OIC countries. Five different indicators are used to construct the institutional performance index. It was observed that openness, foreign direct investment, and urbanization decreased environmental quality while institutional performance improved environmental quality in OIC countries.

The empirical review suggested that many studies analyzed the trade-environment nexus in the EKC context for different group of countries, but in the case of OIC, only limited studies exist.Footnote 4 The review of previous studies also claims that cross-sectional dependence (CSD) may occur in the trade-environment relationship due to unobserved factors. It leaves space for doing comprehensive empirical research to find the role of trade-environment nexus in the validation of the EKC hypothesis by considering the issue of CSD. Furthermore, it would be beneficial to investigate this issue in terms of a particular region, i.e., OIC countries.

Data and methodology

In order to evaluate the trade-environment nexus under EKC hypothesis in OIC countries, we have used three pollutants, i.e., carbon dioxide (CO2), nitrous oxide (N2O), and methane (CH4) along with ecological footprint as dependent variables in 4 different models. The independent variables are GDP, GDP square, energy consumption, trade openness, and urbanization. The reason for choosing these indicators as environmental indicators is that these pollutants have a large share in GHG emissions. CO2 emissions have the largest share in GHG emissions followed by CH4 and N2O. CO2 emissions are mainly generated from energy consumption, industrial production, and transportation (SESRIC 2018). N2O emissions are generated from agricultural production (Aneja et al. 2019) while CH4 emissions are emitted during the production of oil, coal, and natural gas (Wang et al. 2020; Yusuf et al. 2020). The ecological footprint is a new indicator of environmental quality which can reflect the biological and ecological capacity of the country.

Generally, GHG emissions include N2O, CO2, CH4, and F-gases.Footnote 5 Figure 1 shows that the level of GHG emissions in OIC countries was 3.3 thousand MtCO2eFootnote 6 in 1990, while in 2017, it is 7.0 thousand MtCO2e (World Resources Institute 2018). Among OIC countries, Iran has the highest level of CO2 emissions followed by Indonesia, Turkey, and Kazakhstan (see Appendix Table 9).

Fig. 1
figure 1

GHG emissions in OIC countries. Source: SESRIC Economic Outlook of OIC Countries (various issues)

Figure 2 depicts that the ecological footprint in OIC countries has been growing from 32 million global hectares in 1992 to 52 million global hectares in 2010 and 60 million global hectares in 2016. Indonesia has the highest level of ecological footprint in OIC countries followed by Turkey, Iran, and Nigeria (see Appendix Table 9).

Fig. 2
figure 2

Ecological footprint in OIC countries. Source: Global Footprint Network

There are 57 OIC countries, but due to non-availability of data for some countries, we have selected 49 countries. World Bank classified the countries of the world into four income groups according to their per capita GDP; low-income, lower middle-income, upper middle-income, and high-income countries. For our analysis, following by the study of Farooq et al. (2020), we have divided OIC countries into three groups. In first group, we place all OIC countries (hereinafter we call it overall OIC countries. We put low-income and lower-middle income OIC countries in second group (hereinafter denoted as lower income OIC countries) and in the third group, we place upper middle-income and high-income OIC countries (hereinafter referred to as higher-income OIC countries). So, in this way, we have divided OIC countries into three groups; overall OIC countries, lower income OIC countries, and higher income OIC countries (see Appendix Table 10).

We have used a panel data set for the year 1991 to 2018. Some missing values in the data are calculated through multiple imputation method (Rubin 1976, 1996). This method improves the data quality and inferences validity by providing stable imputations of missing data (Hassan et al. 2020). In previous studies, various types of methodologies like GMM, fixed effect, and random effect models have been used for panel data estimation. But these conventional methodologies ignore the issue of heterogeneity and assume homogeneity in data, and only permit to change the intercepts of cross-sectional units. Therefore, now there is a need to be more focused on the issue of cross-sectional dependence (CSD).

Cross-sectional dependence tests

Lagrange multiplier (LM) test is widely used to examine the CSD in the panel data. This test is initially developed by Breusch and Pagan (1980).

A standardized form of LM test of Breusch and Pagan (1980) is as follows:

$$ {LM}_{BP}=T\sum \limits_{i=1}^{N-1}\sum \limits_{j=i+1}^N{\hat{\rho}}_{ij}^2, $$

where \( {\hat{\rho}}_{ij}^2 \) shows the sample estimate of the pair-wise correlation coefficients. LM test of Breusch and Pagan (1980) is suitable in case of sufficiently large T and relatively small N. This test becomes inappropriate if the mean of average pair-wise correlation is close to zero (Pesaran 2004). Thus, to overcome the shortcomings of the LMBP test, Pesaran (2004) introduced another test statistics on the base of scaled version of the LM test. This test can be applicable even with large N and small T.

$$ \mathrm{Scaled}\ \mathrm{LM}\ \mathrm{Test}=\sqrt{\left(\frac{1}{N\left(N-1\right)}\right)}\left[\sum \limits_{i=1}^{N-1}\sum \limits_{j=i+1}^N\left(T{\overset{\frown }{\rho}}_{ij}^2-1\right)\right]. $$

This test is likely to exhibit substantial size distortions with large N and small T. To overcome this issue, Pesaran (2004) proposed another cross-sectional dependence test which can also be suitable with large N and small T.

$$ \mathrm{CD}=\sqrt{\left(\frac{2T}{N\left(N-1\right)}\right)}\left[\sum \limits_{i=1}^{N-1}\sum \limits_{j=i+1}^N{\overset{\frown }{\rho}}_{ij}\right]. $$

With T → ∞ and N → ∞, the CD test has an asymptotic standard normal distribution under the null hypothesis. This test is based on a scaled average of the pair-wise correlation coefficients rather than their squares which are used in the LM test. This test gives robust outcomes in case of heterogeneous dynamic models and including multiple breaks in slope coefficients.

Baltagi et al. (2012) modified the LM test by using accurate mean and variance of the LM statistics, which is formulated as follows:

$$ {\mathrm{LM}}_{adj}=\sqrt{\left(\frac{2T}{N\left(N-1\right)}\right)}\sum \limits_{i=1}^{N-1}\sum \limits_{j=i+1}^N{\overset{\frown }{\rho}}_{ij}\frac{\left(T-k\right){\overset{\frown }{\rho}}_{ij}^2-{\mu}_{Tij}}{\sqrt{\nu_{Tij}^2}}, $$

where μTij and v2Tij are the exact mean and variance of \( \left(T-k\right){\overset{\frown }{\rho}}_{ij}^2 \) tabulated by Baltagi et al. (2012).

Panel unit root test (CIPS-test)

CIPS panel unit root test is a 2nd-generation unit root test which is considered superior than 1st-generation unit root tests. The 1st-generation unit root tests used by many studies like Levin et al. (2002) and Im et al. (2003) and Maddala and Wu (1999) have mainly assumed cross-sectional independence and homogeneity. If the analyzed variables are not cross-sectionally independent and homogeneous, the 1st-generation tests likely produce inefficient results. On the other hand, the 2nd-generation panel unit root test (CIPS-test) developed by Choi (2006) and Pesaran (2007) give more certain outcomes because it can effectively control for CSD and heterogeneity.

Westerlund error-correction-based panel cointegration test

Westerlund (2007) error-correction-based cointegration test is used to check the cointegration among variables and is most suitable in case of CSD. This test also has the capability of dealing short time period and structural breaks (Persyn and Westerlund 2008). In order to evaluate the null hypothesis of no cointegration, Westerlund (2007) proposed four statistics which are classified into two categories, i.e., group mean-based tests (Group-α, Group-Ʈ) and panel-based tests (Panel-α, Panel-Ʈ). For individual cross-sectional units, panel-based tests calculate the whole panel-based error-correction term, while the group mean-based tests estimate the weighted sum of the error-correction term. These tests examine the cointegration in a panel series by checking the mechanism of error-correction for both individual cross-sections and the whole panel.

Slope homogeneity test

Slope homogeneity test is used to check the presence of cross-sectional heterogeneity in the data. The null hypothesis for slope homogeneity test is that slope coefficients are homogenous (no heterogeneity) against the alternative hypothesis of no homogeneity (heterogeneity).

Initially, Swamy (1970) developed a test for slope homogeneity which required fixed N relative to T. Later on, Pesaran et al. (2008) modified this test which is suitable if (N,T) → ∞ by assuming that error terms has a normal distribution.

Pesaran et al. (2008) test of slope homogeneity is modeled as follows:

$$ \tilde{S}=\sum \limits_{i=1}^N{\left({\overset{\frown }{\beta}}_i-{\tilde{\beta}}_{\mathrm{WFE}}\right)}^{\prime}\frac{x_i^{\hbox{'}}{M}_{\tau }{x}_i}{{\tilde{\sigma}}_i^2}\left({\overset{\frown }{\beta}}_i-{\tilde{\beta}}_{\mathrm{WFE}}\right). $$

Here, \( {\overset{\frown }{\beta}}_i \) and \( {\tilde{\beta}}_{\mathrm{WFE}} \) indicate pooled OLS coefficient and weighted fixed effect pooled estimator respectively. Mτ represents an identity matrix while \( {\tilde{\sigma}}_i^2 \) denotes an estimate of variance. The following formula can be used to calculate the standard dispersion statistic:

$$ \overline{\Delta}=\sqrt{N}\left(\frac{N^{-1}\tilde{S}-k}{\sqrt{2k}}\right). $$

Δ test consists of standard and asymptotically normal distribution under the null hypothesis of (N,T) → ∞ and \( \sqrt{\raisebox{1ex}{$N$}\!\left/ \!\raisebox{-1ex}{$T$}\right.}\to \infty \). The biased-adjusted version of the \( \overline{\Delta}\ \mathrm{test} \) is represented as follows:

$$ {\overline{\Delta}}_{adj}=\sqrt{N}\left(\frac{N^{-1}\tilde{S}-E\left({\overline{z}}_{it}\right)}{\sqrt{\operatorname{var}\left({\overline{z}}_{it}\right)}}\right), $$

where the variance and mean are denoted by \( \operatorname{var}\left({\overline{z}}_{it}\right)=2k\left(T-k-1\right)/T+1 \) and \( E\left({\overline{z}}_{it}\right)=k \), respectively.

The slope homogeneity test is critical because it determines whether the coefficients of the countries in the long run are homogeneous or heterogeneous. Due to strong CSD, it is possible that each country may have similar dynamics in the processes of opening up trade. If the panel data is heterogeneous, assuming slope homogeneity can result in inaccurate outcomes (Breitung 2005). So, the slope homogeneity test is helpful to identify the presence of cross-sectional heterogeneity while analyzing the empirical outcomes.

Dynamic common correlated effects (DCCE)

Many studies argued that CSD exists among countries due to economic shocks and unobserved components as a result of trade openness and globalization. In this era of modernization, due to the trade openness, economic changes in other countries have significantly affected each country. (Dogan et al. 2017; Ozcan and Ozturk 2016, 2019; Arain et al. 2019; Dogan et al. 2020). A new technique dynamic common correlated effects (DCCE) by Chudik and Pesaran (2015) is helpful to deal such issue of CSD. This technique considers that CSD is caused by an unobserved single common factor and the variables can be represented by this common factor. The DCCE methodology is developed on the basis of pooled mean group (PMG) estimation developed by Pesaran et al. (1996), mean group (MG) estimation presented by Pesaran and Smith (1995), and common correlated effects (CCE) estimation by Pesaran (2006). The CCE approach includes cross-sectional averages of both independent and dependent variables in regression to obtain unobserved common factors. Although CCE technique is robust to cointegration, nonstationarity, serial correlation, and breaks, but it is not suitable for dynamic panels because the lag of dependent variable in this approach is not considered strictly exogenous (Chudik and Pesaran 2015).

On the other hand, in DCCE methodology, the estimator becomes more consistent by including additional lags of cross-sectional means. Ditzen (2019) modified the DCCE approach of Chudik and Pesaran (2015) by claiming that both short-run and long-run results can be estimated for heterogeneous panels. The DCCE technique deals with five critical problems which are not considered by other old techniques. First, this methodology comprehends the issue of CSD by taking logs and averages of all cross-sectional units. The second issue is heterogeneity in the parameters, which can be resolved with the properties of mean group (MG) estimation included in the DCCE approach. Third, it estimates dynamic common correlated effects by considering heterogeneity and assuming that the variables can be represented by a common factor. Fourth, the DCCE approach can also be used for a small sample size by implementing the command of JackknifeFootnote 7 correction (Chudik and Pesaran 2015; Ditzen 2016, 2019). In the last, this technique can also be applied when there are structural breaks (Kapetanios et al. 2011) and unbalanced panel data (Ditzen 2016).

Our empirical models are based on the studies of Grossman and Krueger (1991) and Destek et al. (2018) who recognize the role of trade openness while validating EKC hypothesis. Along with trade openness and GDP, we have also incorporated other important determinants of environmental quality, i.e., energy consumption and urbanization to avoid omitted variable bias. The DCCE approach can easily deal with the heterogeneity and CSD issue in data by considering heterogeneous slopes in which the parameters vary across cross-sections.

Based on abovementioned specifications, DCCE equation can be written as follows:

$$ {Y}_{it}={\alpha}_i{Y}_{it-1}+{\delta}_i{X}_{it}+\sum \limits_{p=0}^{p_T}{\gamma}_{xip}{\overline{X}}_{t-p}+\sum \limits_{p=0}^{p_T}{\gamma}_{yip}{\overline{X}}_{t-p}+{\mu}_{it}. $$
(1)

Here, i and t depict cross-sectional and time dimensions, respectively. Yit denotes the dependent variable. Yit-1 is lag of dependent variable, which is used as an independent variable. Xit is the set of other independent variables. γxip and γyip are unobserved common factors. PT denotes the lag of cross-sectional averages. μit represents the error term.

Model specification

Suppose EI is an environmental indicator (i.e., CO2, SO2, and ecological footprint) and GDP (Gross Domestic Product) is an indicator of economic growth. Then, following the studies of Grossman and Krueger (1991), Sinha et al. (2018), and Özcan and Öztürk (2019), a basic U-shaped/inverted-U-shaped EKC model can be written as follows:

$$ \mathrm{EI}={a}_0+{a}_1 GDP+{a}_2{GDP}^2+\mu . $$
(2)

From Eq. (2), we obtain the following specifications, which denote specific functional forms:

a1 = a2 = 0, no growth-pollution association

a1 > 0, a2 = 0, linearly increasing growth-pollution association

a1 < 0, a2 = 0, linearly decreasing growth-pollution association

a1 > 0, a2 < 0, inverted-U-shaped growth-pollution association

a1 < 0, a2 > 0, U-shaped/monotonically increasing growth-pollution association.

To check the validity conditions of EKC, Eq. (2) should be differentiated with respect to GDP:

$$ \frac{d\mathrm{EI}}{d\mathrm{GDP}}={a}_1+2{a}_2\mathrm{GDP}. $$
(3)

Now, taking the 2nd derivative of Eq. (3):

$$ \frac{d^2\mathrm{EI}}{d{\mathrm{GDP}}^2}=2{a}_2. $$
(4)

Here,

a2 < 0, implies the presence of local maxima, thereby indicating the existence of inverted-U-shaped EKC.

a2 > 0, implies the existence of local minima, thereby indicating the presence of U-shaped EKC.

The threshold point (turning point) of EKC is obtained by setting the 1st derivation (as shown in Eq. 3) equal to zero and solved for GDP.

$$ {a}_1+2{a}_2 GDP=0, $$
(5)
$$ GDP\ast =\frac{-{a}_1}{2{a}_2}. $$
(6)

Here, GDP* denotes a threshold (turning) point of GDP.

The basic EKC model described in Eq. 2 is further extended into the following 4 models by including additional variables and underlying EKC hypothesis. We have used various proxies for environmental quality as dependent variables followed by the studies of Managi et al. (2009), Mrabet and Alsamara (2017), Mahmood et al. (2019), and Aydin et al. (2019).

$$ {\mathrm{LNCO}}_{2 it}={\alpha}_i{\mathrm{LNCO}}_{2 it-1}+{\delta}_i{X}_{it}+\sum \limits_{p=0}^{p_T}{\gamma}_{xip}{\overline{X}}_{t-p}+\sum \limits_{p=0}^{p_T}{\gamma}_{yip}{\overline{X}}_{t-p}+{\mu}_{it},\left(\mathrm{Model}\;1\right) $$
$$ {\mathrm{LNN}}_2{O}_{it}={\alpha}_i{\mathrm{LNN}}_2{O}_{it-1}+{\delta}_i{X}_{it}+\sum \limits_{p=0}^{p_T}{\gamma}_{xip}{\overline{X}}_{t-p}+\sum \limits_{p=0}^{p_T}{\gamma}_{yip}{\overline{X}}_{t-p}+{e}_{it},\left(\mathrm{Model}\;2\right) $$
$$ {\mathrm{LNCH}}_{4 it}={\alpha}_i{\mathrm{LNCH}}_{4 it-1}+{\delta}_i{X}_{it}+\sum \limits_{p=0}^{p_T}{\gamma}_{xip}{\overline{X}}_{t-p}+\sum \limits_{p=0}^{p_T}{\gamma}_{yip}{\overline{X}}_{t-p}+{\varepsilon}_{it},\left(\mathrm{Model}\;3\right) $$
$$ {\mathrm{LNECF}}_{it}={\alpha}_i{\mathrm{LNECF}}_{it-1}+{\delta}_i{X}_{it}+\sum \limits_{p=0}^{p_T}{\gamma}_{xip}{\overline{X}}_{t-p}+\sum \limits_{p=0}^{p_T}{\gamma}_{yip}{\overline{X}}_{t-p}+{\nu}_{it}.\left(\mathrm{Model}\;4\right) $$

In above equations, LNCO2 (log of CO2 emissions) in Model 1, LNN2O (log of N2O emissions) in Model 2, LNCH4 (log of methane emissions) in Model 3, and LNECF (log of ecological footprint) in Model 4 are dependent variables representing proxies for environmental quality, and their lags are used as independent variables. All other independent variables (log of GDP, log of GDP square, log of trade openness, log of energy consumption, and log of urbanization) are represented by Xit. μit, eit, εit, and νit are error terms of models 1, 2, 3, and 4 respectively.

Table 1 gives a detail description of the variables and their sources.

Table 1 Description of variables and data sources

Results and discussion

Table 2 shows the descriptive statistics of data which summarizes the important features of the data. CO2, N2O, CH4, ECF, GDP, ENC, TOP, and URB represents CO2 emissions, N2O emissions, CH4 emissions, ecological footprint, GDP per capita, energy consumption, trade openness, and urbanization, respectively.

Table 2 Descriptive statistics of variables

CD test (Pesaran 2004) and scaled LM test developed by Pesaran (2004) and biased-corrected scaled LM test developed by Baltagi et al. (2012) are applied to test the existence of CSD as demonstrated in Table 3. Results of tests are helpful not only to determine the appropriate methodology but also crucial to determine the application of 2nd-generation panel unit root tests that are more suitable in case of CSD.

Table 3 Panel unit root tests for CSD

The 2nd-generation unit root test, which is also called CIPS-test (Pesaran 2007), is shown in Table 4. This test assumes CSD among the variables. All the variables are stationary at the level and 1st difference and none of them is stationary at the 2nd difference. The findings of CIPS unit root test confirm that LNN2O, LNCH4, LNECF, LNTOP, LNENC, and LNURB are stationary at level, while LNCO2, LNGDP, and LNGDP2 are stationary at 1st difference.

Table 4 Results of panel unit root test (CIPS-test)

The traditional cointegration test like Pedroni (1999) may be ambiguous as it can ignore some critical issues like CSD, serial correlation, heteroskedasticity, and structural breaks in data (Westerlund 2007; Arain et al. 2019; Ali et al. 2020). On the other hand, an advanced test of 2nd-generation Westerlund (2007) error-correction-based panel cointegration test considers all these issues, and its results are more reliable. We have applied Westerlund cointegration test as shown in Table 5.

Table 5 Westerlund error-correction-based panel cointegration test

The values of all test statistics (Group-α, Group-Ʈ, Panel-α, and Panel-Ʈ) of Westerlund (2007) cointegration test are significant on the basis of robust p values. So the null hypothesis of no cointegration is rejected, and it is verified that there is a long-run association among the variables. Our results of Westerlund cointegration test are consistent with the findings of Arain et al. (2019), Ali et al. (2020), and Meo et al. (2020) who also found a long-run association among the variables by applying the Westerlund (2007) cointegration test.

Table 6 shows the results of slope homogeneity test (Pesaran et al. 2008). The null hypothesis for slope homogeneity test is that slope coefficients are homogenous (no heterogeneity) against the alternative hypothesis of no homogeneity (heterogeneity). The t-statistics values of slope homogeneity test (\( \overline{\Delta} \)) and its biased-adjusted version (\( \overline{\Delta} \)adj) provide us enough evidence to reject the null hypothesis of slope homogeneity and accept the alternative hypothesis of country-specific heterogeneity in our all 4 models.

Table 6 Results of slope homogeneity test

Table 7 shows the results of DCCE estimation of overall OIC countries, and Table 8 indicates the DCCE estimates of lower income and higher income OIC countries. All the independent variables of our models show a significant association with the lag terms of dependent variables (L.LNCO2, L.LNN2O, L.LNCH4, and L.LNECF). The long-run and short-run estimates of DCCE demonstrate a positive and significant association of per capita GDP with all environmental indicators except in Model 2, where it shows a negative and significant association with N2O emissions in overall OIC countries and lower-income OIC countries while the positive association with N2O emissions in higher-income OIC countries. The negative association between per capita GDP and N2O emissions in overall and lower-income OIC countries is aligning with the study of Bilgili et al. (2016). The positive relationship between per capita GDP and the environmental indicators (CO2, CH4, and ecological footprint) is consistent with Shahbaz et al. (2013), Jebli and Youssef (2015), Ahmed et al. (2016), Lin (2017), and Uddin et al. (2017). As discussed before, this positive impact of per capita GDP on environmental indicators is true in the initial phase of development in OIC countries due to the scale effect of trade openness and increased energy consumption. In scale effect, the environmental quality degrades due to more economic activities (transportation, industrial production, and deforestation) and energy consumption because, at the early stage of development, more attention is given to growth instead of environmental quality. The long-run elasticities of per capita GDP and per capita GDP square for environmental indicators (CO2, CH4, and ecological footprint) are less than short-run elasticities in all groups of OIC countries (overall, lower income, and higher income OIC countries).

Table 7 Dynamic common correlated effects (DCCE) estimation (overall OIC countries)
Table 8 Dynamic common correlated effects (DCCE) estimation (lower income and higher income OIC countries)

Trade openness indicates a negative and significant association with all GHG emissions in overall OIC countries and higher-income OIC countries, which shows that environmental quality improves with increase in trade openness. This finding is consistent with the studies of Uddin et al. (2017) and Destek et al. (2018). The possible reason for the negative association between trade openness and GHG emissions in OIC countries is may be due to the domination of technical effect on scale effect and composition effect as defined by Antweiler et al. (2001). The negative impact of trade openness on environmental indicators in higher-income OIC countries is also consistent with the pollution haven hypothesis which advocates that due to trade openness foreign firms bring advance and cleaner technology to host economies which will improve environmental quality (Wang et al. 2013). However, trade openness shows positive linkage with all environmental indicators in lower income OIC countries which demonstrates that the environmental quality deteriorates with the increase in GHG emissions and ecological footprint. This finding is aligning with pollution haven hypothesis (PHH) which states that lower income countries have loose environmental regulations, and the environmental quality in these economies degrades in the result of increased industrial activities due to trade openness (Copeland and Taylor 1994; Baek and Koo 2009). However, trade openness has a positive relationship with the ecological footprint in all groups of OIC countries, which demonstrates that environmental quality decreases with increase in trade openness when the ecological footprint is used as an environmental indicator. This finding is consistent with Baek and Koo (2009), Lin (2017), Shahbaz et al. (2017), and Ali et al. (2020). Ecological footprint consists of many factors, i.e., carbon footprint, biocapacity, cropland, grazing lands, fishing grounds, and forest products (Global Footprint Network 2018). These factors represent the biological and ecological capacity of the countries, which is severely affected by industrial and human activities due to trade openness (Sarkodie 2018; Aydin et al. 2019). This is one of the main possible reasons for this positive association between trade openness and ecological footprint.

Both short-run and long-run estimates of our models indicate that the impact of the square of per capita GDP on CO2, CH4, and ecological footprint is negative and significant in all groups of OIC countries (overall, lower income, and higher income OIC countries). The negative and significant signs of the coefficients of a square of per capita GDP with CO2, CH4, and ecological footprint show the presence of EKC in OIC countries. These observations of EKC is aligning with the studies of Antweiler et al. (2001), Destek et al. (2018), Song et al. (2019), and Sharif et al. (2019). In other words, there exists EKC or inverse-U-shaped association between per capita GDP and environmental indicators when we take CO2, CH4, and ecological footprint as dependent variables. According to the theory of Grossman and Krueger (1991) and Antweiler et al. (2001), after the first stage of development where income is positively correlated with environmental indicators, the second stage begins with the negative linkage of income with environmental indicators due to technique and/or composition effect. In this stage of development, people demand a cleaner environment to attain a higher living standard. In OIC countries, under scale effect, the environmental quality degrades due to energy consumption and economic activities, because at the early stage of development, more attention is given to growth instead of environmental quality. Afterwards, when the income level increases in the second stage of development under technique effect, people demand a cleaner environment to attain a higher living standard. Moreover, the production of goods based on dirty technology is replaced with cleaner technology, or with the services sector, called the composition effect, which leads to a positive impact on environmental quality in OIC countries.

A square of per capita GDP and N2O has a positive and insignificant relationship in short-run while positive and significant association in long-run in overall OIC countries and lower income OIC countries. The possible reason for the positive association between per capita GDP square and N2O emissions in overall and low-income OIC countries in long-run is that N2O emissions generate mainly from agricultural productionFootnote 8 which significantly contributes to the economic activity of OIC countries. In the second stage of economic development, unlike other emissions, N2O increases with the increase in per capita GDP due to increased agricultural activities. So, instead of inverted-U-shaped relationship, a U-shaped association is found between per capita GDP and N2O, thus showing no evidence of EKC in overall OIC countries and lower-income OIC countries. This outcome is consistent with the findings of Destek and Sarkodie (2019) and Saleem et al. (2019). On the other hand, a square of per capita GDP and N2O has a negative and significant relationship with N2O emissions in higher income OIC countries which indicate the existence of EKC in these countries. Unlike lower-income OIC countries, higher-income OIC countries (i.e., Qatar, Kuwait, Saudi Arabia, and the United Arab Emirates) are less dependent on the agriculture sector, and more rely on other sectors like petroleum and services sector. Due to this reason, when the income level increases in the second stage of development, N2O emissions decreases due to the reduction of agricultural activities. Moreover, the long-run elasticities of per capita GDP and per capita GDP square for N2O emissions are more than short-run elasticities in all groups of OIC countries (overall, lower income, and higher income OIC countries).

For the EKC curve, we have calculated the turning pointsFootnote 9 of per capita GDP (where pollution is maximized) for different income groups of OIC countries. The turning point of EKC for per capita GDP in case of ecological footprint is above than the turning points for CO2, N2O and CH4 emissions in all income groups of OIC countries in both short-run and long-run. The ecological footprint consists of many components like biocapacity, carbon footprint, cropland, fishing grounds, grazing lands, and forest products. When income level increases, these components degrade environmental quality due to increased economic activities and the turning point (threshold level of per capita income) after which environmental quality begins to improve comes after the threshold points of other environmental indicators. This finding is consistent with the study of Mrabet and Alsamara (2017). The long-run turning point of EKC using ecological footprint is at the per capita income of US$1248.87, US$906.87, and US$8103.08 for overall OIC countries, lower income OIC countries, and higher income OIC countries, respectively. However, not all the OIC countries have reached this level by 2018, especially low-income OIC countries like Benin, Chad, Togo, Uganda, Gambia, Guinea, and Niger, due to their per capita income which is below this threshold level. Similarly, all higher-income OIC countries cannot reach their threshold point; some of them perform more poorly than others, especially non-oil exporters. The turning point of EKC for per capita GDP in case of CO2 emissions is below than the turning points for N2O, CH4, and ecological footprint in all income groups of OIC countries in both short-run and long-run. Using N2O emissions, U-shaped curve is found instead of inverted-U-shaped EKC in case of overall OIC countries and lower-income OIC countries with long-run turning points of US$ 290.14 and US$368.70, respectively. The previous studies by Raymond (2004), Mrabet and Alsamara (2017), Sinha et al. (2018), and Mahmood et al. (2019) also assessed the turning points by defining the validity conditions of EKC.

Energy consumption indicates a significant and positive association with all the indicators of environmental quality in short-run as well as long-run in all groups of OIC countries, which demonstrates that extensive use of energy will worsen environmental quality. This finding is consistent with the studies of Shahbaz et al. (2013), Shahbaz et al. (2015), Ali et al. (2016), and Saleem et al. (2019). Urbanization also shows a positive association with all the environmental indicators which clarify that a rapid increase in urban population will lead to the degradation of environmental quality in OIC countries. The positive association between urbanization and environment is aligning with the findings of Sharif and Raza (2016), Ali et al. (2016) and Ali et al. (2020).

Concluding remarks and recommendations

In this study, we have explored the trade-environment nexus to validate the EKC hypothesis in OIC countries. GHG emissions; CO2, CH4, and N2O along with ecological footprint have been used as indicators of environmental quality. Various CSD tests are applied, which illustrate that CSD is present in the data. Slope homogeneity test confirms that the slope coefficients are heterogeneous. We have applied a novel methodology dynamic common correlated effects (DCCE) to deal with the problem of CSD. DCCE estimation identifies the existence of EKC in OIC countries. The EKC exists in all our models except for N2O emissions in overall OIC countries and lower-income OIC countries.

The validation of EKC in our models encourages the ultimate improvement in environmental quality in OIC countries. Following EKC hypothesis, the empirical outcomes of this study recommend that per capita GDP has a self-correcting mechanism, where degradation of the environment due to scale effect (high energy consumption) may be improved subsequently due to technique effect (income effect). Moreover, the findings also reveal that the policy of trade openness should be continued as it improves the environment and supports economic growth in the long-run path especially in higher income OIC countries where it is helpful for obtaining the composite effect and comparative advantages. Based on the findings, the OIC countries should divert the investment inflows and trade-induced technical changes towards sustainable development goals (SDGs) by using relevant policy instruments. Moreover, trade openness is increasing pollution in lower income OIC countries. So these countries should make strict environmental regulations to control industrial activities. Pollution charges and fines should be imposed on the industries, which create more pollution. These pollution charges can be used to support the activities of the government to control environmental quality.

The composition effect of the energy sector is considered as the key underlying factor for environmental quality. Energy consumption increases the pollution level in OIC countries. So, as a policy perspective, energy sector reforms are also necessary to improve the environmental quality in OIC countries. Governments of OIC countries should give more attention to renewable energy rather than conventional sources of energy. The EKC hypothesis is not proved in the case of N2O emissions in overall and lower-income OIC countries. Most OIC countries (especially lower income countries) are agriculture-based, and N2O emissions are mainly generated from agriculture activities. The joint behavior between economic growth and N2O emissions is, therefore, necessary to establish energy and agricultural policies that ensure a balance between economic growth and the environmental impact of agriculture.

The governments of OIC countries should limit such industrial and human activities which are hazardous for the biological and ecological capacity of the countries. Moreover, these countries should formulate policies to provide jobs in villages and small towns so that the burden of overpopulation in big cities should be minimized. The OIC platform should be used for enhancement and strengthening of the region’s obligations to the multilateral environmental agreements, the promotion of green technology, the management and prevention of transboundary pollution, proper utilization of natural resources, sustainable use and management of biocapacity and resources of freshwater, and sustainable forestry.

In the end, we give some limitations for this research which will provide guidance for future research in this field. First, we have ignored some GHG emissions like sulfur dioxide (SO2), sulfur hexafluoride (SF6), perfluorocarbons (PFCs), and hydrofluorocarbons (HFCs) due to incomplete data set. Moreover, we have used the total ecological footprint rather than its sub-components (biocapacity, carbon footprint, cropland, fishing grounds, grazing lands, and forest products). Future studies can use these proxies of environmental quality to see how the outcomes vary across these indicators. Second, we have taken 49 countries out of a total of 57 OIC countries by dropping ten countries due to non-availability of data. The future research will further clearly elaborate on the models when the data for missing countries are available. Third, in future research, the trade effect on EKC can be further decomposed into scale, technique, composition, and comparative advantage effect to check the impacts of trade-environment nexus at four different transition points.