Introduction

According to the World Data Atlas (2020), Tunisia’s CO2 emissions are rising at a 4.31% yearly rate, and it climbed from 4.2 to 32.1 million tonnes from 1970 to 2019. It also represents the largest contributor to the total GHG emissions in Tunisia, accounting for nearly 98.3% (Cherni and Essaber-Jouini 2017). Tunisia is one of the Mediterranean regions most vulnerable to climate change (World Energy Council 2019), as its energy system is highly dependent on natural gas and oil imports (Schmidt et al. 2017; Banacloche et al. 2020).

In 2015, the United Nations General Assembly established the sustainable development goals (SDGs), with the aim of achieving them by 2030. Featuring 17 objectives and 169 targets, the SDGs offer new opportunities for member countries to address global development challenges (Rusydiana et al. 2021). Energy presents the seventh goal, and it ultimately seeks to ensure that each country will be able to expand international cooperation to improve access to clean energy research and technologies (Kumar and Jan 2014). Also, it enhances investment in clean energy infrastructure and technology development to provide developing countries with advanced and sustainable energy utilities (Gamoori et al. 2017; Saudi et al. 2019).

Therefore, it is necessary for Tunisia to move from an economy based on fossil fuels to an economy based on clean energies. As a result, the country has opted to push forward with the energy transition, focusing on two key elements: energy efficiency and renewable energy (Ministry of Environment and Sustainable Development 2015; Banacloche et al. 2020).

Tunisia covers about 97% of its electrical requirements from gas and oil. The government spent over 150 billion euro on energy subsidies in 2015. At the same time, there is now an ecological and economical alternative for producing electricity, given the constantly falling costs of photovoltaic (PV) systems. Although the geographical conditions are extremely favorable, the PV capacity installed at present is only 35 MW. A higher level of PV systems requires higher private and public investment. This will necessitate a more beneficial legal and administrative environment, client-oriented services offered by the private sector, and policies to ensure market growth in deprived areas (Beerfeltz 2013).

The Government of Tunisia lately initiated the Tunisian Renewable Program (TRP), which aims to raise the proportion of renewables in the country’s energy package to 30% by 2030. It is a transformative and unparalleled phenomenon. The TRP must be reached in three stages: 1.28 GW of wind and solar capacity should be put into service by 2020, an extra 1.25 GW between 2021 and 2025, and an additional 1.25 GW between 2026 and 2030. This large size of renewable energy (RE) will make a decisive contribution to counter the regression of the country’s energy self-sufficiency and to minimize the carbon imprint of electricity production (World Bank 2019).

During the previous 3 years, Tunisia has developed its inputs and outputs of innovation. It succeeded to improve its score in terms of innovation inputs, by winning 5 ranks compared to 2016 and reaching 77th place in 2018. Innovation outputs place 63rd this year, with an increase of 8 places from 2017 and 21 places from 2016. Tunisia ranks 55th in the efficiency ratio of innovation, increasing from 65th in 2017 and 86th in 2016. Compared to its global GII place (66th), Tunisia ranks strongly in this ratio, due to a greater position in terms of innovation outputs (63rd) in comparison to inputs (77th) (WIPO 2018).

The International Property Rights Index (IPRI) score of Tunisia raised from 0.045 to 5.142, ranking it 11th in the Middle East and North Africa (MENA) region and 77th in the world. The degree of the intellectual property rights sub-index in Tunisia jumped from 0.018 to 4.659; this leads to impact the achievement of intellectual property protection level with 4.777, the patent registration level with 6.50 for, and finally the copyright safeguard level with 2.70 (IPRI 2019).

Tunisia’s foreign direct investment (FDI) flows decreased by 9.6% to reach 2,479 MDT in 2019: 17.7% of all external medium and long-term financing and 2.2% of gross domestic product (GDP) (compared to 23.4% and 2.6%, respectively, in 2018). Therefore, it is important to note that the recovery of foreign direct investment flows to their past rates depends on the implementation of several reforms aimed at enhancing the business environment to restore confidence among international investors and support the attractiveness of Tunisia’s location. Besides, foreign direct investment flows, except for the energy sector, involved 603 investment transactions, contributing to the creation of 14,353 new jobs in 2019. This includes 126 new projects and 477 extension ones for values of 209 MDT and 1361 MDT respectively. Exports of goods and services fell sharply in current terms (10.4% compared to 20.5% in the preceding year) and declined marginally in constant terms (0.9% compared to 4.1%). Especially, exports of goods, which grew by 7% in terms of current values and declined by 5% in constant prices, were severely impacted by low foreign demand, mostly from the euro area, which had a negative impact on manufacturing sectors. Exports were likewise affected by the impact of the sharp decline in olive oil production, combined with problems in the fuel and phosphate segments. Nonetheless, this tendency was partially mitigated by increased revenues from services, especially tourism, which grew by 35.9% in current terms and by 27.6% without the exchange rate adjustment (Central Bank of Tunisia 2020).

In recent decades, developed countries have become overwhelmingly dependent on imports from developing ones, raising concerns about trade’s environmental implications. Higher demand for imports in wealthy economies definitely boosts exports from developing nations; however, emissions do not have to scale in lockstep with exports if national sales or emissions levels change endogenously with external demand (Barrows and Ollivier 2021).

For the last few decades, politicians, economists, and the public have been worried about globalization’s environmental implications. The main concern is that free trade will promote a transfer of production to developing economies, which have lax environmental rules and inefficient production (Antweiler et al. 2001; Copeland and Taylor 2004; Frankel and Rose 2005; Levinson 2009). The increase in exports by developing states over the past few years reinforces this concern, particularly in the context of stalled global climate change negotiations and the delay by governments in regulating greenhouse gas (GHG) emissions (Barrows and Ollivier 2021). In addition, exports are employed to highlight the importance of global trade in a national economy; it affects a national’s carbon emissions (Piaggio et al. 2017; Hu et al. 2018; Cheng et al. 2019).

To the extent of our knowledge, there is no work that investigates this link between CO2 emissions, renewable energy, foreign direct investment, national patents, and gross domestic product in Tunisia. To fill this gap, this paper studies this link with introducing exports and imports during the period 1980–2017. The contribution of this paper compared to the previous literature is that CO2 emissions is a function of national patents, exports, renewable energy, gross domestic product, and foreign direct investment. The topic is very interesting, and it is related with the current environmental studies issues.

This article is organized as follows. “Literature review” section investigates the literature review. “Data and descriptive statistics” section is concerned with the data and descriptive statistics. Methodology and results are presented in “Methodology and results” section. Finally, conclusion and recommendations are mentioned in “Conclusion and recommendations” section.

Literature review

The context of CO 2 emissions

First, there is important to mention that Tunisia approved the protocol of Kyoto in 2003, to decrease GHG emissions (Farhani et al. 2014). According to Cherni and Essaber-Jouini (2017), energy consumption is the principal reason for environmental pollution in Tunisia, because about 97% of consumptions of primary energy belong to gas and oil that generate CO2 emissions in the environment. Since 2001, Tunisia moved to the status of net energy importer because the national energy production is in stagnancy while the energy consumption is increasing. The energy processing industry, transports, tertiary, manufacturing industry, and agriculture are the principal sources of GHG emissions. In Tunisia, CO2 emissions represent 98.3% of the total emissions; CH4 emissions account for 1.1% and 0.6% for N2O. Recently, Tunisia attempts to solve problems of energy and the environment and to use renewable energy that can decrease CO2 emissions and promote sustainable development. Farooq et al. (2019) studied the relationship between greenhouse gas emission and health issues. Results of the quantile regression show the positive link between these two variables. Ghazouani et al. (2020) studied the impact of carbon tax reforms on CO2 emissions in European countries. They found that carbon tax improve the environmental quality by mitigating CO2 emissions. Examining 30 Chinese provinces during the period 2004–2015, Sarwar et al. (2019) find that industrialization, oil use, and coal use increase CO2 emissions. In his study, Shahzad (2020) found that the energy consumption for economic activities increase the CO2 emissions.

The context of research and development

The research and development (R&D) is one of the main characteristics of the evolution and development of countries. Leahy and Neary (2007) investigated the theoretical implication of poof suggesting that R&D that directly contributes to profitability raises the absorptive capacity of a firm. Their results showed that expensive absorption may increase the effectiveness of own R&D but it decreases the effective spillover coefficient, which enfeebles the encouragement of research joint venture. Moreover, this result involves an additional strategic pay-off to policies that increase the level of extra-industry knowledge. Hammerschmidt (2009) studied the hypothesis of absorptive capacity in a model by endogenizing the spillovers. His results showed that when the spillovers parameter is superior, firms will invest more to promote absorptive capacity. Fershtman and Markovich (2010) examined the effect of licensing arrangements, patents, and imitation on the rapidity of firm value, consumers’ surplus, and innovation by using a race model of two firms that have asymmetric ability R&D multistage. Their results showed that when the patent protection regime is fragile, free imitation of any intermediate technology will be easy to do, which can produce a higher consumer surplus than a regime that confers a patent for final innovation. Amir et al. (2008) investigated the economic forms of R&D cost functions when the inventive output is imperfectly appropriate. The main basis is that investment in R&D ought to generate more reduction in costs when it is specified to one lab rather than two independent labs functioned under natural spillovers. When there are input spillovers, this postulate is widely persuaded. Nevertheless, if there are output spillovers, it is not the status for R&D technologies that have declining returns to scale. Wiethaus (2005) studied the endogenous determination of R&D appropriability via the R&D approaches adopted by the firm. Approaches of identical broad R&D tried to maximize absorptive capacity and to bind companies with their environmental R&D. But that is not the case when idiosyncratic R&D approaches is adopted; this because that competing firm favors identical R&D approaches to attend goals mentioned above.

El Elj (2012) examined the impact of external and internal elements of companies on the innovation in Tunisia, which can change by the modification of characteristics of the firms, like the opening of capital to external firms. In this study, he used a sample of 543 industrial companies. His findings showed that the major factors of innovation performance of Tunisian companies are the technological skills of companies, resulting from internal R&D and innovation efforts and cooperation. His results also indicated that companies with raised exportation and important external capital participation innovate less than companies with partially exportation and small external capital share. Therefore, governors should make a new strategy of foreign direct investment regarding their technological content and their effect on the internal R&D training system and innovation. Kriaa and Karray (2010) used a sample of 320 Tunisian companies between 2002 and 2005, to study factors of R&D investment in these firms, by analyzing the correlation between firms’ innovation effort and R&D expenditures. Their findings exhibited that there is a positive effect of R&D activities experience in innovation and public subsidies and human capital quality on innovation probability of companies, but the structure of ownership acts negatively. Whereas, results show that there are spillover effects only for innovating companies and which has absorptive capacity. Besides, they found that R&D expenditures can be well explained by acquisition channels for external technologies. The ownership system acts significantly on R&D investment, particularly for foreign-controlled companies. There is a positive impact on innovating companies and negative impacts on non-innovating ones. In the same line, using a survey for years 2002, 2003, and 2004, Koouba et al. (2010) clarified the cause that some companies decide to innovate; however, some others do not. Results of the exploratory tentative logistic regression showed that the relationship between the innovation-decision with the market structure and the companies’ size, which are traditional elements of innovation, is inverted. Also, they found that public incentives and skills of workers did not have any impact on the innovation-decision in Tunisian companies. Zouari and Zouari-Hadiji (2015) used a sample of 95 Tunisian companies in 2006 and 2007 to study the correlation link between company performance and the structure of the ownership. Their findings exhibited that the level of innovation of companies had a significant impact on the correlation between the concentration of ownership with managerial ownership and with the performance of the firm.

CO2 emissions and R&D

Concerning the relation between R&D and pollution, Grover (2017) studies the causes of the decrease of industrial R&D spending to abating pollution in the USA over 1973–1998. Results of the industry-level panel data showed that the decrease was engendered a little part by policy design changes and spillovers from other industry pollution abatement R&D substituting for R&D spending in the focal sector. Lee et al. (2015) studied the environmental R&D and its link with climate change and international environmental agreement. To this aim, they used a sample of 362 companies from 2003 to 2010 using a fixed effect model for estimation. Their results showed that the firm value declines constantly by carbon emissions. Besides, they showed that the market taxes firms when they have negative environmental performance more than having a positive one. They also note that efforts made by firms to conform to international environment agreements will not hamper their performance. Ouchida and Goto (2016) study the environmental R&D formation by a new method. Also, they investigate four types of environmental R&D in a Cournot duopoly where the regulator did not impose from before an emission tax. The four environmental R&D are environmental research joint venture (ERJV), environmental R&D competition, environmental R&D, and ERJV competition. They found that, in the case of a weak environmental damage or the case of a serious environmental damage, environmental costs are very inefficient, and then the ERJV frame is socially higher than the other three cases. While, when there is serious environmental damage and R&D costs adopted by the firm are limited, so social welfare is upper than the three others.

CO2 emissions and innovation

Fernández Fernández et al. (2018) examine the impact of innovation on CO2 emission. Sample used is the USA, EU (15), and China from 1990 to 2013. They found that, in developed countries, R&D expenditures decrease CO2 emissions. Also, there is a relationship between CO2 emissions and energy consumption, so when a growth in energy consumption will rise CO2 emissions. Therefore, this work wants to realize a separation between these two variables. So, R&D expenditures can be considered as the key of sustainable development and not only of the economic growth. Apergis et al. (2013) investigate the relationship between CO2 emissions and R&D expenditures in companies of 3 European countries (the UK, France, and Germany) over the period 1998–2011 before and after the compulsory adoption of International Financial Reporting Standards (IFRS). Results of the threshold autoregressive model showed that after the compulsory adopting of IFRS, R&D expenditures decrease CO2 emissions in companies. This is probably by dint of the application of incentives of new regime.

CO2 emissions and renewable energy

Nowadays, renewable energy became a primordial subject. Többen (2017) showed that electricity generation from renewable sources had low positive effects on industries, but a large drain on domestic revenue and declining distributional consequences. Nevertheless, spending on new capacity can eventually turn these negative effects into a positive path for the majority of households. Talbi et al. (2020) examined the impact of gross domestic product, electricity price, and urbanization on the residential electricity in Tunisia from 1980 to 2018 using ARDL approach. Their results of the long-run elasticity showed that urbanization and electricity price act positively on the residential electricity. However, the gross domestic product presented an insignificant and negative impact on the residential electricity. Dogan and Seker (2016) examined the impact of real income, renewable and non-renewable energies, and trade openness on CO2 emissions in the European Union between 1980 and 2012. Findings of the dynamic ordinary least squares proved that non-renewables lead to higher CO2 emissions whereas renewables and trade reduce carbon emissions. According to the Dumitrescu-Hurlin non-causality approach, there is unidirectional causality from trade openness to CO2 emissions, from real income to carbon emissions and from CO2 emissions to non-renewables, and a bi-directional causality between carbon emissions and renewables. Doğan et al. (2021) examined the impact of renewable energy, population growth, economic progress, and economic complexity on carbon emissions in 28 OECD economies from 1990 to 2014. Their results of alternative panel data techniques showed that renewable energy and economic complexity have negative impacts on CO2 emissions. Fatima et al. (2021) use the GMM, random effects, fixed effects, regression models, and panel causality techniques to study the impact of renewable energy and increased income on CO2 emissions. They found that an income rise may moderate the relationship between renewable energy and CO2 emissions. In addition, their results showed that increased income may cause environmental pollution. In their study and applying GMM, FGLS, FMOLS, and DOLS approaches, Shahzad et al. (2020) found that in the newly industrialized countries from 1971 to 2014, export diversification, extensive and intensive margin decrease the energy use. In addition, they found that urbanization, economic growth, and natural resources act positively on energy consumption.

Studying the case of Tunisia and using ARDL approach and Granger causality test, Ghorbal et al. (2021) found that trade and foreign direct investment have a negative impact on renewable energy while home patents have a positive impact on it.

The context of patents

The patent is the most vigorous intellectual property rights. Prud’homme (2017) examined how the strategic sequencing of patent regimes for utility models over time is intended to support technological development via fixed effects regressions. His findings indicated that laggards in East Asia set up less rigorous utility model patent systems less suited to the early economic catch-up stages, presumably to assist technological learning. Thereafter, the stringency of the regimes improved as knowledge build-up and, to some degree, technological abilities rose and, in the case of mainland China in particular, as issues of patent quality was encountered. There is also evidence that in the short term, more rigorous utility model patent regimes can decrease the number of patents, but not in the long term. In the same context, Choung et al. (2014) examined the varied pathways of innovation activity and highlight key features in the transition period of emerging countries. For this reason, they identified three types of innovation activities: the strengthening of the process, architectural, and radical innovations. They noted that each path of innovation activity in the transition period of the developing countries needs appropriate institutional structures, a different capacity base, and different interactions between innovation participants to ease the passage from imitator to innovator. Also, Cai et al. (2020) investigated the huge rise in foreign patent requests in China. They assessed the assumptions of market coverage and the threat to competition based on industry data from 19 regions and countries from 1985 to 2009. They found that the demand for foreign patents in China relies on the patent decision of competing countries, the market decision, and the patent system reformation in China.

According to the study of Wang et al. (2012), home patents of carbon-free energy technologies have a significant impact on the reduction of CO2 emissions in eastern China. For them, home patents (or national patents) have been used as a proxy of innovation. More precisely and during the period 1980–2014, they found for ten nations that renewable energy, gross domestic product, non-renewable energy production, urbanization, and export quality increase CO2 emissions, while renewable energy supply reduces it. And, for the main complex economies, the quality of exports and renewable energy mitigate CO2 emissions, whereas, urbanization and non-renewable energy increase it. In another work, Cheng et al. (2019) use the panel OLS and panel quantile regression approaches. They found that renewable energy supply and foreign direct investment affect negatively the CO2 emissions; while, economic growth, domestic credit to private sectors, development of environmental patents, and exports have a positive impact on it in BRICS over the period 2000–2013. At the same line, Wang et al. (2020) study the case of 30 provinces in mainland China from 1997 to 2008 employing dynamic panel data method. They find that Chinese advanced and new technology manufacturing decreases incorporated CO2 emissions in the industrialized world but raises those in the developing ones.

CO 2 emissions and exports

In another context, low economic advantage exports lead to reduce CO2 emissions, while high economic advantage exports lead to high carbon emissions. The technological improvement in the sector of optical and electrical devices may efficiently enhance the pollution abatement. For this reason, Shahzad et al. (2020) examined the mixed effects of the diversified export products, the intensive margin, and the extensive margin on carbon emissions in of 63 developed and developing nations, during the period 1971–2014. And they found that the three indicators of export diversification decrease CO2 emissions. Employing sequential estimation, panel quantile regressions, system, and difference GMM, Bashir et al. (2020) investigated the impact of export product diversification, extensive and intensive margin on carbon, and energy intensity in 29 OECD nations from 1990 to 2015. Their results showed that these three indicators of export diversification have a negative effect on carbon and energy intensity.

Data and descriptive statistics

This study uses the time series data of Tunisia from 1980 to 2017. The data sources are the World Bank (2020), U.S. Energy Information Administration (EIA 2020), and World Data Atlas (2020). The variables employed are carbon dioxide (CO2) emissions measured in kilotons, renewable energy consumption (RE) measured in Btu, foreign direct investment net inflows (FDI) measured in percentage of GDP, national patents (NP) measured in the number of patents, exports of goods and services (X) and imports of goods and services (M) measured in percentage of GDP, and gross domestic product (GDP) measured in constant 2010 USD. Time series are limited to the year 2017 because of the data availability. Eviews 12.0 is used as basic software for all estimates.

The empirical analysis begins with the study of some descriptive statistics and graphs’ representations before the transformation of the variables to the logarithmic form. Descriptive statistics and graphs’ representations for the selected time series are respectively reported in Table 1 and Fig. 1.

Table 1 Descriptive statistic
Figure 1
figure 1

Graphical presentation of selected variables

Some descriptive statistics (as mean, maximum, and minimum) are made to assess the trend of the selected time series (CO2 emissions, renewable energy consumption, FDI, national patents, exports, imports, and gross domestic product) from1980 to 2017. Based on these statistics and graphs, the trend in CO2 emissions is steadily rising over time, with a maximum number of 31,840.00 in 2017 and a minimum number of 9345.906 in 1980. The consumption of renewable energy was relatively constant, with almost identical values from 1980 to 2004. However, from 2014 to 2017, its evolution increased continually. The trend in the rate of foreign direct investment over time is growing favorably but with some sharp fluctuations. The highest peak was reached in 2006 with a share of 9.42%. The number of national patents has gradually risen over time with only small variations. The highest number of patents was 235 in 2016, while the lowest number was 12 in 1984. The tendency of exports and imports has also some sharp fluctuations. The evolution of gross domestic product was steady in this period. Imports were unsteady over the considered period. It reached its minimum share of 35.81% in 1987, and its maximum share of 58.69% in 2008.

All variables are converted to natural logarithms before proceeding with the empirical investigation.

Methodology and results

The empirical work consists to use the ARDL bounds test to cointegration. This approach is practically applied the bounds suggested by Pesaran et al. (2001). This test employs the combined significance of Fisher’s statistical test (Wald test) to test the long-term relationship between the time series data. This estimation technique has several advantages over other methods. First, the time series can be either zero-order (I(0)), one order (I(1)), or both. Second, the coefficients estimated in the short and long term can be included in the same model. Third, results are more efficient with small sample size.

Unit root and correlation tests

In our model, the number of observations equals 38, indicating that our sample is small. Before investigating cointegration, the order of integration must be studied for each data in the time series. To do this, two-unit root tests are used namely ADF of Dickey and Fuller (1979) and PP of Phillips and Perron (1988). All these tests are estimated for three cases which are (i) intercept and trend; (ii) intercept; and (iii) no intercept and no trend.

According to the 2 tests mentioned in Table 2, all variables are integrated of order one, i.e., I(1), except GDP for the ADF test, while with the PP test, all variables are I(1).Therefore, we can use the ARDL cointegration method.

Table 2 Unit root tests

Before applying our model, we propose to identify both exports and imports in order to take into account of the international exchange. More precisely, we will use these two variables, but separately for two raisons. First, Liddle (2018) and Mahmood et al. (2020) proposed to assess the impacts of exports and imports separately on carbon emissions. As exports can lead to higher emissions in manufacturing processes while imports may raise emissions from consumption processes. Second, because in developing countries the trade balance is not well balanced (Farhani et al. 2014).

Considering these arguments, we will use exports and imports variables instead of the trade variable in the following way:

$$\mathit{ln}{CO2}_{t}=f\left(ln{RE}_{t},ln{FDI}_{t},ln{NP}_{t},ln{X}_{t},ln{M}_{t},ln{GDP}_{t}\right)$$
(1)

Since exports and imports are strongly correlated (Table 3), so we will use 2 models to choose which one is the most suitable.

Table 3 Correlation test between exports and imports

The following model will be developed as follows:

$$ln{CO2}_{t}=f\left(ln{RE}_{t},ln{FDI}_{t},ln{NP}_{t},ln{X}_{t},ln{GDP}_{t}\right)$$
(2)
$$\mathit{ln}{CO2}_{t}=f\left(ln{RE}_{t},ln{FDI}_{t},ln{NP}_{t},ln{M}_{t},ln{GDP}_{t}\right)$$
(3)

To explore the long-run relationships between the variables, the log-linear equations between variables can be expressed as follows:

$${CO}_{2t}={\alpha }_{\mathrm{0,1}}+{\alpha }_{\mathrm{1,1}}{RE}_{t}+{\alpha }_{\mathrm{2,1}}{FDI}_{t}+{\alpha }_{\mathrm{3,1}}{NP}_{t}+{\alpha }_{\mathrm{4,1}}{X}_{t}+{\alpha }_{\mathrm{5,1}}{GDP}_{t}+{\varepsilon }_{t}$$
(4)
$${CO}_{2t}={\alpha }_{\mathrm{0,2}}+{\alpha }_{\mathrm{1,2}}{RE}_{t}+{\alpha }_{\mathrm{2,2}}{FDI}_{t}+{\alpha }_{\mathrm{3,2}}{NP}_{t}+{\alpha }_{\mathrm{4,2}}{M}_{t}+{\alpha }_{\mathrm{5,2}}{GDP}_{t}+{\xi }_{t}$$
(5)

where t and \({\alpha }_{0}\), designate the time and the constant, respectively; ɛ and ξ indicate the white noise term of two equations 45; and \({\alpha }_{i}, i=1,\dots ,5\) designate the long-term elasticity of CO2 emissions variable with respect to each corresponding explanatory variable.

Diagnostic tests and cointegration

Diagnostic tests are then estimated to check for autocorrelation of residues (Breusch-Godfrey LM test), residual heteroscedasticity (Breush-Pagan-Godfrey test), and normality distribution tests (Jarque-Bera statistic).

Table 4 shows that in the model F1 (where CO2 emissions is the dependent variable), there is cointegration between variables. The diagnostic tests approve that there is, no heteroscedasticity, no residues autocorrelation, and residues are well normally distributed.

Table 4 Estimation of Eq.2: \(ln{CO2}_{t}=f\left(ln{RE}_{t},ln{FDI}_{t},ln{NP}_{t},ln{X}_{t},ln{GDP}_{t}\right)\)

Related to Table 5, there is none of these models which obeys all the conditions (cointegration, no heteroscedasticity, no autocorrelation, and normally distribution). So we cannot choose any of the previous models. For this reason, we will keep to work on Eq. 2.

Table 5 Estimation of Eq.3: lnCO2t= f (lnREt, lnFDIt, lnNPt, lnMt, lnGDPt)

Long-run elasticity results

Based on the similar empirical researches considered by Ghorbal et al. (2021) and Ben Jebli and Ben Youssef (2015) for the Tunisian context, the use of ARDL model in this study may show econometric advantages over other approaches to co-integration. These advantages were previously supported by Pesaran and Pesaran (1997), Pesaran and Smith (1998), Pesaran and Shin (1999), and lastly developed by Pesaran et al. (2001). The ARDL equation is presented as follows:

$$\begin{array}{l}\Delta {lnCO2}_{t }=\alpha +\sum_{i=1}^{q}{\alpha }_{1i}\Delta {lnCO2}_{ t-i }+\sum_{i=0}^{q}{\alpha }_{2i}\Delta {lnRE}_{t-i }+\\ \sum_{i=0}^{q}{\alpha }_{3i}\Delta ln{FDI}_{t-i }+\sum_{i=0}^{q}{\alpha }_{4i}\Delta {lnNP}_{t-i }+\sum_{i=0}^{q}{\alpha }_{5i}\Delta {lnX}_{t-i }+\\ \sum_{i=0}^{q}{\alpha }_{6i}\Delta ln{GDP}_{t-i }+{\alpha }_{7}{lnCO}_{2 t-1 }+{\alpha }_{8}{lnRE}_{t-1 }+{\alpha }_{9}{lnFDI}_{t-1 }+\\ {{\alpha }_{10}{lnNP}_{t-1}+\alpha }_{11}{lnX}_{t-1 }+{\alpha }_{12}{lnGDP}_{t-1 }+{\varepsilon }_{1t}\end{array}$$
(6)

where Δ, ε, and q are the first difference operator, the error term, and the number of lags, respectively.

The results of the long-run elasticity test reported in Table 6 show that the coefficients of renewable energy consumption, exports, and gross domestic product are positive and statistically significant at the 1% level; whereas, the coefficient of foreign direct investment is negative and statistically significant at the 5% level.

Table 6 Long-run elasticity tests estimation

In another sense, the positive impact of renewable energy consumption on CO2 emissions can be explained by the fact that some renewable energy can contain a small part of polluting energy (Ben Jebli and Ben Youssef 2015). Renewable energies did not lead to mitigation in emissions because some countries have possibly not attained the level where renewables begin to reduce CO2 emissions (Chiu and Chang 2009). This is in line with the results of Apergis et al. (2010) and Menyah and Wolde-Rufael (2010) for the US case. Tunisia should develop clean and renewable energy until it can succeed to reduce CO2 emissions, and therefore achieves the seventh objective of the sustainable development goals.

The negative impact of foreign direct investment on CO2 emissions means that although foreign projects are polluting and damaging to the environment, their negative effect is surely less than that of domestic projects. Therefore, the foreign direct investment will lead to a decrease in CO2 emissions. This is similar to the findings of Cheng et al. (2019), and Sarkodie and Strezov (2019) for the case of developing countries, and Atici (2012) and Zhu et al. (2016) for the Association of Southeast Asian Countries. Also, this negative effect of foreign direct investment on carbon emissions may be justified by the hypothesis of the halo effect. As the Tunisian government gives more importance to environmental issues, it promotes foreign investors to spread their specific skills and technologies. In addition, transnational companies also aim to share their technology and management competencies with companies in host nations and to support them in minimizing the harmful effects of carbon emissions (Cheng et al. 2019). In addition, Tunisian policymakers should encourage environment friendly foreign investments by reducing their taxes, and they should also stimulate the ability for new knowledge to be absorbed, resulting in the growth of green products and businesses.

Concerning the positive impact of exports on CO2 emissions, it is important to mention that Tunisia, as a developing country, is firstly interested in improving and accelerating its production to export the maximum of its products and earn more money without paying attention to the environment. Also, this positive effect can be interpreted as the fact that developing countries are still at the bottom of the world manufacturing chain because of the scarcity of advanced technology and design. Therefore, they simply fabricate or reassemble goods designed by foreign countries or export natural resources. During the production process of the manufactured goods and the natural resource exploration process, CO2 is emitted in Tunisia, while the produced goods or natural resources are consumed by the importers. This problem is known in the work of Chen and Chen (2011) and Meng et al. (2018) as embedded carbon dioxide emission. Also, Cheng et al. (2019) showed that such exports could seriously threaten the environment of developing countries and BRICS countries. These results are also in line with Wang et al. (2021) who found a positive impact of exports on CO2 emissions in the top ten renewable energy countries. Per contra, our results are contrary with authors that found a negative impact of exports on CO2 emissions, such as, Hu et al. (2018) who worked on the case of 25 developing countries, Barrows and Ollivier (2021) for India, Mahmood et al. (2020) for the case of North Africa, and Wang et al. (2021) for the case of leading complex economies.

For the positive impact of gross domestic product on CO2 emissions, we can remark that this result is consistent with the outcomes of Dong et al. (2017), Hu et al. (2018), Cheng et al. (2019), and Sarkodie and Strezov (2019), but is inconsistent with the findings of Liu et al. (2017). The explanations of these findings can be provided by the EKC. The EKC hypothesizes that as economic growth increases, carbon emissions increase throughout an economy’s process of industrialization. In particular, industrialization requires huge natural resources, notably energy. Overuse of natural resources may lead to environmental deficiency and severe ecological issues (Sarkodie and Strezov 2019). As the economy keeps expanding, the country will undergo a phase of post-industrialization. The consciousness of the environment, laws and regulations, and the economic structural shift to the tertiary sector in the post-industrial phase may lead to carbon emission abatement. As a developing country, Tunisia is in the phase of industrialization; the secondary sector is one of the engines of economic progress in this country. Tunisia is challenged to expand its gross domestic product without damaging the environment. In order to limit CO2 emissions, it is necessary for policymakers to balance both economic growth and economic sophistication.

Particularly, the national patents are insignificant in the long run; this is because that Tunisia is a developing country; so, it does not have a big capacity of innovation that may impact the carbon emissions whether positively or negatively. The Tunisian government should devote an important amount of its budget to green and clean technology research and development.

CUSUM and CUSUM of squares

The long-term stability of the parameters was tested through the application of certain powerful and effective techniques like the statistical tests of the cumulative sum (CUSUM) and cumulative sum of squares (CUSUM of squares) established by Brown et al. (1975), and then by Pesaran and Pesaran (1997). Figure 2 shows the statistical test results, which demonstrate the stability of the long-term estimated coefficients since the graphs are within the critical bounds at the 5% significance level.

Figure 2
figure 2

CUSUM and CUSUM of square tests

Granger causality results

After establishing the link between variables in the long run by the ARDL approach, we should study the significance of error correction term. Engle and Granger (1987) techniques are involved to investigate the short- and long-term combination betwixt CO2 emissions, renewable energy consumption, foreign direct investment, national patents, exports, and gross domestic product in two phases.

The short-term effect of the variables was validated employing the Granger pairwise causality test, which evaluates causality between variables in pairs to see whether if (i) the causality is unidirectional; or (ii) the causality is bidirectional; or (iii) there is no Granger causality. Long-term causality is assessed by the error-correction term’s (ECT) significance for each cointegration equation. If the error correction term is statistically significant, then there is a long-term causality of all explanatory variables to the explained variable. The first phase is to assess long-term coefficients and retrieve the residuals, while the second phase is to assess the terms of the short-run adjustment. The short-term link between the variables is studied by the Granger causality, and their significance is assessed using Fisher statistics. The significance across variables for the long-term correlation  is adjusted by setting Student’s t test statistics.

Establishing the optimal number of lags is a major stage in explaining the validity of a cointegrating connection among the variables. This stage involves the estimation of the appropriate number of lags to run the VAR model. Setting the optimal lags is done according to different selection criteria, mainly the Akaike information criteria (AIC) and the Schwarz information criteria (SIC).

Table 7 shows that all criteria selected a maximum number of lags equal to 1; therefore, a VAR (1) model is considered and the Granger causality approach discussion can be addressed. The causality study among the variables in the analysis can be studied through Engle and Granger’s (1987) study. This technique can be carried out in two steps. The first involves estimating the long-term equation (Eq. (2)) to recover the residuals. The second step consists of estimating the short-term equilibrium. The Granger causality tests are applied to verify the short-term causality between the variables and based on the Fisher statistic. The long-term relationship among the time series can be checked through the use of the significance of the lagged error correction term (ECTt-1).

Table 7 Optimal lag length

More precisely, this paper investigates the causal linkages using a VECM model based on Toda and Yamamoto (1995) approach. This model is given as below:

$$\begin{array}{l}\Delta {lnCO2}_{t}={\upphi }_{1}+\sum_{i=1}^{q}{\upphi }_{11i}\Delta {lnCO2}_{ t-i}+\sum_{i=1}^{q}{\upphi }_{12i}\Delta {lnRE}_{t-i}+\\ \sum_{i=1}^{q}{\upphi }_{13i}\Delta {lnFDI}_{t-i}+\sum_{i=1}^{q}{\upphi }_{14i}\Delta {lnNP}_{t-i}+\sum_{i=1}^{q}{\upphi }_{15i}\Delta ln{X}_{t-i}+\\ \sum_{i=1}^{q}{\upphi }_{16i}\Delta {lnGDP}_{t-i}+{\beta }_{1}{ECT}_{t-1}+{\zeta }_{1t}\end{array}$$
(7)
$$\begin{array}{l}\Delta ln{RE}_{t}={\upphi }_{2}+\sum_{i=1}^{q}{\upphi }_{21i}\Delta {lnCO2}_{ t-i}+\sum_{i=1}^{q}{\upphi }_{22i}\Delta ln{RE}_{t-i}++\\ \sum_{i=1}^{q}{\upphi }_{23i}\Delta {lnFDI}_{t-i}+\sum_{i=1}^{q}{\upphi }_{24i}\Delta {lnNP}_{t-i}+\sum_{i=1}^{q}{\upphi }_{25i}\Delta ln{X}_{t-i}+\\ \sum_{i=1}^{q}{\upphi }_{26i}\Delta ln{GDP}_{t-i}+{\beta }_{2}{ECT}_{t-1}+{\zeta }_{2t}\end{array}$$
(8)
$$\begin{array}{l}\Delta lnFDI={\upphi }_{3}+\sum_{i=1}^{q}{\upphi }_{31i}\Delta {lnCO2}_{ t-i}+\sum_{i=1}^{q}{\upphi }_{32i}\Delta ln{RE}_{t-i}+\\ \sum_{i=1}^{q}{\upphi }_{33i}\Delta ln{FDI}_{t-i}+\sum_{i=1}^{q}{\upphi }_{34i}\Delta {lnNP}_{t-i}+\sum_{i=1}^{q}{\upphi }_{35i}\Delta ln{X}_{t-i}+\\ \sum_{i=1}^{q}{\upphi }_{36i}\Delta {lnGDP}_{t-i}+{\beta }_{3}{ECT}_{t-1}+{\zeta }_{3t}\end{array}$$
(9)
$$\begin{array}{l}\Delta {lnNP}_{t }={\upphi }_{4}+\sum_{i=1}^{q}{\upphi }_{41i}\Delta {lnCO}_{2 t-i}+\sum_{i=1}^{q}{\upphi }_{42i}\Delta {lnRE}_{t-i}+\\ \sum_{i=1}^{q}{\upphi }_{43i}\Delta ln{FDI}_{t-i}+\sum_{i=1}^{q}{\upphi }_{44i}\Delta {lnNP}_{t-i}+\sum_{i=1}^{q}{\upphi }_{45i}\Delta ln{X}_{t-i}+\\ \sum_{i=1}^{q}{\upphi }_{46i}\Delta {lnGDP}_{t-i}+{\beta }_{4}{ECT}_{t-1}+{\zeta }_{4t}\end{array}$$
(10)
$$\begin{array}{l}\Delta {lnX}_{t}={\upphi }_{5}+\sum_{i=1}^{q}{\upphi }_{51i}\Delta {lnCO2}_{ t-i}+\sum_{i=1}^{q}{\upphi }_{52i}\Delta {lnRE}_{t-i}+\sum_{i=1}^{q}{\upphi }_{53i}\Delta ln{FDI}_{t-i}+\\ \sum_{i=1}^{q}{\upphi }_{54i}\Delta ln{NP}_{t-i}+\sum_{i=1}^{q}{\upphi }_{55i}\Delta {lnX}_{t-i}+\sum_{i=1}^{q}{\upphi }_{56i}\Delta ln{GDP}_{t-i}+{\beta }_{5}{ECT}_{t-1}+\\ {\zeta }_{5t}\end{array}$$
(11)
$$\begin{array}{l}\Delta ln{GDP}_{t}={\upphi }_{6}+\sum_{i=1}^{q}{\upphi }_{61i}\Delta {lnCO}_{2 t-i}+\sum_{i=1}^{q}{\upphi }_{62i}\Delta ln{RE}_{t-i}+\\ \sum_{i=1}^{q}{\upphi }_{63i}\Delta ln{FDI}_{t-i}+\sum_{i=1}^{q}{\upphi }_{64i}\Delta {lnNP}_{t-i}+\sum_{i=1}^{q}{\upphi }_{65i}\Delta {lnX}_{t-i}+\\ \sum_{i=1}^{q}{\upphi }_{66i}\Delta {lnGDP}_{t-i}+{\beta }_{6}{ECT}_{t-1}+{\zeta }_{6t}\end{array}$$
(12)

where Δ indicates the first difference operator; q represents the VAR lag length; ECTt−1 indicates the lagged ECT corresponding to each equation; \(\beta\) is the speed of adjustment from the short- to the long-run equilibrium, and ζt indicates the residual term.

The lagged ECT of national patents is negative and statistically significant even at the level of 1% that denotes that there is a long-run causality running from CO2 emissions, renewable energy consumption, foreign direct investment, exports, and gross domestic product to national patents. Results of the short-run causality show that there is a unidirectional causality running from exports to CO2 emissions and from exports to gross domestic product. This result is similar to Wang et al. (2021) for the case of leading renewable energy economies (Table 8).

Table 8 Granger causality test results

Conclusion and recommendations

Climate change presents now an important challenge facing many countries, including Tunisia. This leads us to look for different factors that lead to the mitigation of CO2 emissions in this country. This paper studies the channel linking CO2 emissions, renewable energy consumption, foreign direct investment, Tunisian patents, exports, and gross domestic product in Tunisia by using the time series data over the period 1980–2017. ARDL approach is employed, and then cointegration and Granger causality tests are demonstrated.

The finding results show that the error correction term of national patents is negative and statistically significant even at the level of 1%; this means that there is a long-run causality running from CO2 emissions, renewable energy consumption, foreign direct investment, exports, and gross domestic product to national patents. Also, the results of the short-run causality show that there is a unidirectional causality running from exports to CO2 emissions and exports to gross domestic product.

The findings of the long-run elasticity test show that renewable energy consumption has a positive impact on CO2 emissions; this means that renewable energy consumption increases CO2 emissions, and this can be explained by the fact that some renewable energy can contain a small part of polluting energy. In addition, renewable energies did not lead to mitigation in emissions because some countries have possibly not attained the level where renewables begin to reduce CO2 emissions. Although foreign projects are polluting and damaging to the environment, their negative effect is surely less than that of domestic projects. Therefore, foreign direct investment will lead to a decrease in CO2 emissions. Concerning exports, this factor has a positive impact on CO2 emissions. As a developing country, Tunisia is interested in improving and accelerating its production to export the maximum of its products and earn more money without paying attention to the environment. For the gross domestic product, there is a positive impact on CO2 emissions. The explanations of this finding can be provided by the EKC, where the EKC hypothesis suggests that as economic growth increases, carbon emissions increase throughout an economy’s process of industrialization. In particular, industrialization requires huge natural resources, notably energy. Without forgetting the case of Tunisia as a developing country, this country is in the phase of industrialization, so the secondary sector is one of the engines of economic progress. Therefore, Tunisia can benefit from different initiatives, like tax deductions or exonerations for non-polluted foreign direct investment, to motivate foreign investors to turn to ecologically friendly industries. Also, foreign direct investment in polluting products should be limited or eliminated in these areas. In future research, we can work on a panel of countries (such as MENA countries), and we can also add new variables like energy efficiency and fossil fuels.