Introduction

A dramatic change in the climate becomes the key challenge for the environment and influencing almost every sector of economy including energy, water, health and biodiversity and also has diverse impact on the agricultural production (GOP 2019). Maize is a key cereal crop after wheat and rice in Pakistan. It accounts about 2.6% contribution to the agricultural value added and 0.5% to the gross domestic product (GDP). Its production increased from 5.1% to 6.309 tons with the target of 6 million tons and cultivated in the area of 131,800 ha (GOP 2018). The cropped area for maize has increased to 1334 thousand hectares which shows a substantial improvement of 12.0% over the 1191 thousand hectares planted area (GOP 2017). The agriculture sector has a dynamic role for the sustainable development and also considered the key contributor to boost the economy of Pakistan. Pakistan is located in an arid region and considered with high temperature as well as squat rainfall, and economy is relying on agriculture (Kazmi et al. 2015). The linkage among climate change and agriculture economic outcomes were discussed in many studies to demonstrate the assessment of risk because change in the climate causing the yield of crops around the world (Liang et al. 2017; Di Gregorio et al. 2017).

The association between crops trend and variation in climate provides a favourable chance to determine more accurately recent yields progress and predict climatic influence on sustainable crops production (Ray et al. 2015). Climate change is expected to cause the sustainable agriculture production in different countries, and people who associated with food also affected most susceptible (Asante and Amuakwa-Mensah 2015). The demand of maize crop has increased with the passage of time and considered the key cereal crop in the world. Due to variations in the climate, the crop has been greatly influenced during growing season mainly due to temperature and agronomic management practices. Climate change also impacted the livestock production and cereal crops and necessary to assess and develop the future management strategies (Abbas et al. 2017). Climate change causes the diverse impact on the crop surface science due to upsurge in the temperature, and mitigation changes in the crops management introduces latest varieties with extensive growth that can play significant influence to crops imagery and ultimately intensify the yields under warming tendencies (Lin et al. 2015; Araya et al. 2015; Amin et al. 2015).

Climate change, carbon dioxide emission and agriculture have dynamic linkage, so any adverse effects due to climate will also affect the agricultural productivity. Rainfall, temperature and carbon dioxide emission concentration demonstrate a positive or negative influence to crops production during the time of sowing and illustrate a climatic influence on yields (Cammarano and Tian 2018; Kimball 2010; Cammarano et al. 2016; Allen et al. 2011). Various studies have been conducted to demonstrate the linkage of climate change, carbon dioxide emission, energy usage, energy consumption, fossil fuel energy, ecosystem, crops disease, sustainable food security, fish production, livestock, land restoration, air pollution, cereal yield, global warming and agriculture (Qureshi et al. 2016; Rehman and Deyuan 2018; van Loon et al. 2019; Amjath-Babu et al. 2019; Rehman et al. 2019a, b; Tefera and Ali 2019; Woolf et al. 2018; Chandio et al. 2019; Gebreegziabher et al. 2020; Chandio et al. 2020; Ahsan et al. 2020), but this study seeks to explore the carbon dioxide emission linkage with maize crop production, area under maize crop, water availability, rainfall and temperature by employing the ARDL approach and Granger causality test.

Literature review

Pakistan is the most vulnerable country as compare with others which is serious to the climate change. The country already has been faced the severity of climate change specifically high temperature, crisis of water, drought, increased flooding and disease events in some areas (Smit and Skinner 2002; Abid et al. 2015). Climate change may interrupt the process of hunger in the world, and climatic influence on agriculture production may also cause the supply of food. The impact of climate change on crop productivity may have an impact on food supply, and this global pattern is strong and coherent. Due to short-term changes in supply, the constancy of the entire food system can also threatened by climatic variation. At regional level, however, the potential impacts are less pronounced, but due to climatic change also cause the insecurity of food and hunger in different areas (Wheeler and Von Braun 2013). The multifaceted interface of rainfall, temperature, solar radiation and other meteorological parameters with plants and soil characteristics makes determining the optimal planting date for the maize production (Erasmi et al. 2014). Several global studies have explored the association between crop yields and indigenous climate such as temperature and rainfall (Lobell et al. 2015).

Maize is key grain crop-wise and has share in the agriculture value added which covering the large area for production (GOP 2015). At regional and global level, climate change was the chief research area in recent decades which have substantial effect on crops production (Lobell et al. 2013; Anjum et al. 2016). Climate has key role in the agricultural productivity, and several organizations have expressed concern about the fundamental role of agricultural vicious benefits, arguing the climatic potential influence on agriculture. Furthermore, it has also effect on livestock production, hydrological balance, input supply and several other agriculture related mechanisms (Aydinalp and Cresser 2008; Grossi et al. 2019).

The world population is growing rapidly, and its forecasted trends related to increasing global food demand have put agriculture in a predicament to gain substantive food in the farmland. If food production does not match the global food demand, it could lead to cause expensive food and also increases hunger and poverty rate (Foley et al. 2011; Ahmad et al. 2016; Godfray et al. 2010; Lashkari et al. 2012). As also mentioned by Ahmed et al. (2019) and Tahir et al. (2015), the high urban population has triggered climate change by increasing pollution, traffic congestion, land use changes and disaster risk.

Due to growing population caused the increased in food consumption in coming decades also amplified the usage of biofuels that greatly increase the pressure on global agriculture, especially in the face of problem of reduced global arable land in the future. Increasing crop productivity on a farmland which is necessary to ensure the sustainable agriculture and food supply (Piao et al. 2010; Lambin and Meyfroidt 2011; Yin et al. 2016). Past obstacles in providing food to the world’s growing population have been encountering technological advances, such as the progress seen during the Green Revolution. By developing high yields, global crop yields have been greatly increased, cereal varieties have been modernized, management techniques have been updated and also production and usage of synthetic fertilizers and pesticides has been improved (Zeng et al. 2014; Schauberger et al. 2017; Casadebaig et al. 2016).

In the atmosphere, the increasing concentration of carbon dioxide emission, rainfall, temperature, water supplies and increase of extreme climates all are expected to affect the social, economic and environmental sectors. With regard to crop yields, these variations can lead to a diversity of influences (Trnka et al. 2014; Srivastava et al. 2018). Global climate change has become the most pressing environmental problem due to increasing the greenhouse effect and has a major impact on both human and systems. The recent clear influence is causing the temperature on global surface due to greenhouse gas emissions on global level (IPCC 2014; Shen et al. 2018; Wang et al. 2016). To reduce the greenhouse gases subsequent from agricultural productivity, all effective efforts have been done regarding systematic adaptation to climate change (FAO 2013).

Methodology

Data sources

This empirical analysis used time series data ranging from 1988 to 2017. The sources of data are World Development Indicators (WDI) and Economy Survey of Pakistan. The variables used are carbon dioxide emission, maize crop production, area under maize crop, water availability, rainfall and temperature. Table 1 illustrates the details of all variables used in this study. The variables trends with logarithmic form are presented in the Fig. 1.

Table 1 Variables and their explanations
Fig. 1
figure 1

Trends of the variables

Econometric model specification and unit root tests

The following model was specified to check the variables association as follows:

$$ {\mathrm{CO}}_2{e}_t=f\left({\mathrm{MCP}}_t,{\mathrm{AMC}}_t,{\mathrm{WA}}_t,{\mathrm{RF}}_t,{\mathrm{TM}}_t\right) $$
(1)

In Eq. (1), CO2et denotes carbon dioxide emission, MCPt is showing maize crop production, variable AMCt specifies the area under maize crop, variable WAt is showing water availability in Pakistan, RFt denotes rainfall and TMt denotes temperature in Pakistan. Equation (1) can also be written as follows:

$$ {\mathrm{CO}}_2{e}_t={\zeta}_0+{\zeta}_1{\mathrm{MCP}}_t+{\zeta}_2{\mathrm{AMC}}_t+{\zeta}_3{\mathrm{WA}}_t+{\zeta}_4{\mathrm{RF}}_t+{\zeta}_5{\mathrm{TM}}_t+{\varepsilon}_t $$
(2)

The logarithmic form of all variables in the log-linear model is specified as follows:

$$ \mathit{\ln}{\mathrm{CO}}_2{e}_t={\zeta}_0+{\zeta}_1\mathit{\ln}{\mathrm{MCP}}_t+{\zeta}_2\mathit{\ln}{\mathrm{AMC}}_t+{\zeta}_3\mathit{\ln}{\mathrm{WA}}_t+{\zeta}_4\mathit{\ln}{\mathrm{RF}}_t+{\zeta}_5\mathit{\ln}{\mathrm{TM}}_t+{\varepsilon}_t $$
(3)

Equation (3) is the logarithmic form of carbon dioxide emission, maize crop production, area under maize crop, water availability, rainfall and temperature. Time dimension is denoted by t, εt denotes error term, ζ0 is constant intercept and coefficients of the models ζ1 to ζ5 demonstrate the long-run elasticity.

Furthermore for the unit root test, the stationarity of all variables with the involvement of ARDL model has checked via unit root test. The unit root test can be specified as follows:

$$ \Delta {\mathrm{E}}_{\mathrm{t}}={\upgamma}_{{}^{\circ}}+{\upvarphi}_{{}^{\circ}}\mathrm{K}+{\upvarphi}_1{\mathrm{L}}_{\mathrm{t}-1}+\sum \limits_{\mathrm{i}=1}^{\mathrm{m}}{\upbeta}_1\Delta {\mathrm{L}}_{\mathrm{t}-1}+{\varepsilon}_t $$
(4)

Equation (4) demonstrates the unit root test where Δ illustrate operator of difference.

Specification of ARDL model to cointegration test

In this study, an ARDL approach was employed, and it is developed by Pesaran and Shin (1998). Long-run and short-run association between variables such as carbon dioxide emission, maize crop production, area under maize crop, water availability, rainfall and temperature were performed by checking the order of integration at I(0) and I(1). The linkage of long-run and short-run between variables examined with Unrestricted Error Correction Model (UECM) and follow as:

$$ \Delta {Ln\mathrm{CO}}_2{e}_t={\lambda}_0+\sum \limits_{i=1}^v{\lambda}_{1j}\Delta {Ln\mathrm{CO}}_2{e}_{t-k}+\sum \limits_{i=1}^v{\lambda}_{2j}{\Delta Ln\mathrm{MCP}}_{t-k}+\sum \limits_{i=1}^v{\lambda}_{3j}{\Delta Ln\mathrm{AMC}}_{t-k}+\sum \limits_{i=1}^v{\lambda}_{4j}{\Delta Ln\mathrm{WA}}_{t-k}+\sum \limits_{i=1}^v{\lambda}_{5j}{\Delta Ln\mathrm{RF}}_{t-k}+\sum \limits_{i=1}^v{\lambda}_{6j}{\Delta Ln\mathrm{TM}}_{t-k}+{\lambda}_7{Ln\mathrm{CO}}_2{e}_{t-1}+{\lambda}_8{Ln\mathrm{MCP}}_{t-1}+{\lambda}_9{Ln\mathrm{AMC}}_{t-1}+{\lambda}_{10}{Ln\mathrm{WA}}_{t-1}+{\lambda}_{11}{Ln\mathrm{RF}}_{t-1}+{\lambda}_{12}{Ln\mathrm{TM}}_{t-1}+{\upvarepsilon}_{1\mathrm{t}} $$
(5)
$$ \Delta {Ln\mathrm{MCP}}_t={\xi}_0+\sum \limits_{i=1}^v{\xi}_{1j}{\Delta Ln\mathrm{MCP}}_{t-k}+\sum \limits_{i=1}^v{\xi}_{2j}\Delta {{Ln\mathrm{CO}}_2{e}_t}_{t-k}+\sum \limits_{i=1}^v{\xi}_{3j}{\Delta Ln\mathrm{AMC}}_{t-k}+\sum \limits_{i=1}^v{\xi}_{4j}{\Delta Ln\mathrm{WA}}_{t-k}+\sum \limits_{i=1}^v{\xi}_{5j}{\Delta Ln\mathrm{RF}}_{t-k}+\sum \limits_{i=1}^v{\xi}_{6j}{\Delta Ln\mathrm{TM}}_{t-k}+{\xi}_7 Ln{\mathrm{MCP}}_{t-1}+{\xi}_8{Ln\mathrm{CO}}_2{e}_{t-1}+{\xi}_9{Ln\mathrm{AMC}}_{t-1}+{\xi}_{10}{Ln\mathrm{WA}}_{t-1}+{\xi}_{11}{Ln\mathrm{RF}}_{t-1}+{\xi}_{12}{Ln\mathrm{TM}}_{t-1}+{\upvarepsilon}_{2\mathrm{t}} $$
(6)
$$ \Delta {Ln\mathrm{AMC}}_t={\varphi}_0+\sum \limits_{i=1}^v{\varphi}_{1j}{\Delta Ln\mathrm{AMC}}_{t-k}+\sum \limits_{i=1}^v{\varphi}_{2j}{\Delta Ln\mathrm{MCP}}_{t-k}+\sum \limits_{i=1}^v{\varphi}_{3j}\Delta {Ln\mathrm{CO}}_2{e}_{t-k}+\sum \limits_{i=1}^v{\varphi}_{4j}{\Delta Ln\mathrm{WA}}_{t-k}+\sum \limits_{i=1}^v{\varphi}_{5j}{\Delta Ln\mathrm{RF}}_{t-k}+\sum \limits_{i=1}^v{\varphi}_{6j}{\Delta Ln\mathrm{TM}}_{t-k}+{\varphi}_7 Ln{\mathrm{AMC}}_{t-1}+{\varphi}_8{Ln\mathrm{MCP}}_{t-1}+{\varphi}_9{Ln\mathrm{CO}}_2{e}_{t-1}+{\varphi}_{10}{Ln\mathrm{WA}}_{t-1}+{\varphi}_{11}{Ln\mathrm{RF}}_{t-1}+{\varphi}_{12}{Ln\mathrm{TM}}_{t-1}+{\upvarepsilon}_{3\mathrm{t}} $$
(7)
$$ \Delta {Ln\mathrm{WA}}_t={\partial}_0+\sum \limits_{i=1}^v{\partial}_{1j}{\Delta Ln\mathrm{WA}}_{t-k}+\sum \limits_{i=1}^v{\partial}_{2j}{\Delta Ln\mathrm{AMC}}_{t-k}+\sum \limits_{i=1}^v{\partial}_{3j}{\Delta Ln\mathrm{MCP}}_{t-k}+\sum \limits_{i=1}^v{\partial}_{4j}\Delta {Ln\mathrm{CO}}_2{e}_{t-k}+\sum \limits_{i=1}^v{\partial}_{5j}{\Delta Ln\mathrm{RF}}_{t-k}+\sum \limits_{i=1}^v{\partial}_{6j}{\Delta Ln\mathrm{TM}}_{t-k}+{\partial}_7 Ln{\mathrm{WA}}_{t-1}+{\partial}_8{Ln\mathrm{AMC}}_{t-1}+{\partial}_9{Ln\mathrm{MCP}}_{t-1}+{\partial}_{10}{Ln\mathrm{CO}}_2{e}_{t-1}+{\partial}_{11}{Ln\mathrm{RF}}_{t-1}+{\partial}_{12}{Ln\mathrm{TM}}_{t-1}+{\upvarepsilon}_{4\mathrm{t}} $$
(8)
$$ \Delta {Ln\mathrm{RF}}_t={\gamma}_0+\sum \limits_{i=1}^v{\gamma}_{1j}{\Delta Ln\mathrm{RF}}_{t-k}+\sum \limits_{i=1}^v{\gamma}_{2j}{\Delta Ln\mathrm{WA}}_{t-k}+\sum \limits_{i=1}^v{\gamma}_{3j}{\Delta Ln\mathrm{AMC}}_{t-k}+\sum \limits_{i=1}^v{\gamma}_{4j}{\Delta Ln\mathrm{MCP}}_{t-k}+\sum \limits_{i=1}^v{\gamma}_{5j}\Delta {Ln\mathrm{CO}}_2{e}_{t-k}+\sum \limits_{i=1}^v{\gamma}_{6j}{\Delta Ln\mathrm{TM}}_{t-k}+{\gamma}_7 Ln{\mathrm{RF}}_{t-1}+{\gamma}_8{Ln\mathrm{WA}}_{t-1}+{\gamma}_9{Ln\mathrm{AMC}}_{t-1}+{\gamma}_{10}{Ln\mathrm{MCP}}_{t-1}+{\gamma}_{11}{Ln\mathrm{CO}}_2{e}_{t-1}+{\gamma}_{12}{Ln\mathrm{TM}}_{t-1}+{\upvarepsilon}_{5\mathrm{t}} $$
(9)
$$ \Delta {Ln\mathrm{TM}}_t={\delta}_0+\sum \limits_{i=1}^v{\delta}_{1j}{\Delta Ln\mathrm{TM}}_{t-k}+\sum \limits_{i=1}^v{\delta}_{2j}{\Delta Ln\mathrm{RF}}_{t-k}+\sum \limits_{i=1}^v{\delta}_{3j}{\Delta Ln\mathrm{WA}}_{t-k}+\sum \limits_{i=1}^v{\delta}_{4j}{\Delta Ln\mathrm{MCP}}_{t-k}+\sum \limits_{i=1}^v{\delta}_{5j}{\Delta Ln\mathrm{AMC}}_{t-k}+\sum \limits_{i=1}^v{\delta}_{6j}\Delta {Ln\mathrm{CO}}_2{e}_{t-k}+{\delta}_7 Ln{\mathrm{TM}}_{t-1}+{\delta}_8{Ln\mathrm{RF}}_{t-1}+{\delta}_9{Ln\mathrm{WA}}_{t-1}+{\delta}_{10}{Ln\mathrm{MCP}}_{t-1}+{\delta}_{11}{Ln\mathrm{AMC}}_{t-1}+{\delta}_{12} Ln{\mathrm{CO}}_2{e}_{\mathrm{t}-1}+{\upvarepsilon}_{6\mathrm{t}} $$
(10)

In the above equations, Δ demonstrates the first difference, εt is showing the error term and parameters of the equations λ1, λ2, λ2, λ3, λ4, λ5, λ6: ξ1, ξ2, ξ3, ξ4, ξ5, ξ6; φ1, φ2, φ3, φ4, φ5, φ6; γ1, γ2, γ3, γ4, γ5, γ6; γ1, γ2, γ3, γ4, γ5, γ6; δ1, δ2, δ3, δ4, δ5, δ6 show the coefficient of short-run dynamics. Similarly, λ7, λ8, λ9, λ10, λ11, λ12; ξ7, ξ8, ξ9, ξ10, ξ11, ξ12; φ7, φ8, φ9, φ10, φ11, φ12; γ7, γ8, γ9, γ10, γ11, γ12; γ7, γ8, γ9, γ10, γ11, γ12; δ7, δ8, δ9, δ10, δ11, δ12 demonstrate the long-run coefficient in the model. Equations (5)–(10) illustrate the no cointegration through null hypothesis between variables are H0: λ7= λ8= λ9= λ10= λ11= λ12 = 0, ξ7 = ξ8 = ξ9 = ξ10 = ξ11 = ξ12 = 0, φ7= φ8= φ9= φ10= φ11= φ12 = 0, γ7= γ8= γ9= γ10= γ11= γ12 = 0, γ7 = γ8 = γ9 = γ10 = γ11 = γ12 = 0, δ7 = δ8 = δ9 = δ10 = δ11 = δ12 = 0 against H1: λ7 ≠ λ8 ≠ λ9 ≠ λ10 ≠ λ11 ≠ λ12 ≠ 0, ξ7 ≠ ξ8 ≠ ξ9 ≠ ξ10 ≠ ξ11 ≠ ξ12 ≠ 0, φ7 ≠ φ8 ≠ φ9 ≠ φ10 ≠ φ11 ≠ φ12 ≠ 0, γ7 ≠ γ8 ≠ γ9 ≠ γ10 ≠ γ11 ≠ γ12 ≠ 0, γ7 ≠ γ8 ≠ γ9 ≠ γ10 ≠ γ11 ≠ γ12 ≠ 0, δ7 ≠ δ8 ≠ δ9 ≠ δ10 ≠ δ11 ≠ δ12 ≠ 0, respectively.

Furthermore, the calculate values of F-statistics are illustrated as in the null hypothesis: FlnCO2e (lnCO2e/lnMCP, lnAMC, lnWA, lnRF, lnTM), FlnMCP (lnMCP/lnCO2e, lnAMC, lnWA, lnRF, lnTM), FlnAMC (lnAMC/lnMCP, lnCO2e, lnWA, lnRF, lnTM), FlnWA (lnWA/lnAMC, lnMCP, lnCO2e, lnRF, lnTM), FlnRF (lnRF/lnWA, lnAMC, lnMCP, lnCO2e, lnTM) and FlnTM (lnTM/lnRF, lnWA, lnAMC, lnMCP, lnCO2e), respectively. The dynamic linkage between carbon dioxide emission, maize crop production, area under maize crop, water availability, rainfall and temperature was checked by using ARDL approach. Regarding H0 acceptance and rejection follow that calculated values of F lower the critical boundary values in the upper case. The zero hypotheses without cointegration are rejected, indicating that there is a cointegrated association dependency and invaders between the variables.

Empirical results and discussion

Descriptive analysis and correlation between variables

Descriptive analysis and correlation between variables are displayed in the Tables 2 and 3 and concluded that all variables including carbon dioxide emission, maize crop production, area under maize crop, water availability, rainfall and temperature are correlated each other.

Table 2 Descriptive analysis
Table 3 Correlation between variables

Variables stationarity test results

The variables stationarity was checked by employing two unit roots test including Generalized Dickey-Fuller Least Squares (DF-GLS) (Elliott et al. 1992) and P-P (Phillips and Perron 1988) unit root test. In the order of two, both tests certify that none of the variable gets integration. Table 4 illustrates the results of the unit roots among carbon dioxide emission, maize crop production, area under maize crop, water availability, rainfall and temperature which inveterate that all are integrated at level and at first difference.

Table 4 Unit root tests results

ARDL bounds test to cointegration results

The ARDL model was used to check the linkage among variables and explore the long-run equilibrium through bounds test to cointegration at 10%, 5%, 2.5% and 1% level of significance. ARDL bounds test to cointegration results are reported in Table 5.

Table 5 ARDL bounds test to cointegration results

F-statistic value is 4.246437 which shows in the Table 5 and surpassed the higher critical bound. Cointegration test shows the linkage between carbon dioxide emission, maize crop production, area under maize crop, water availability, rainfall and temperature. Furthermore, we also applied the Johansen cointegration test (Johansen and Juselius 1990), and results are presented in Table 6. It confirms the robustness among the variables through long-run connection.

Table 6 Results of the Johansen cointegration tests

Evidence from long-run and short-run estimation

Table 7 depicts the estimated long-run and short-run analysis results between carbon dioxide emission, maize crop production, area under maize crop, water availability, rainfall and temperature. The ARDL approach was used after confirming the cointegration test and explored the dynamic linkage of variables through long-run and short-run estimation.

Table 7 Estimated results of long-run and short-run

Table 7 results show that maize crop production has positive linkage with carbon dioxide emission having coefficient 0.162750 with p value 0.0395. Furthermore, results also revealed that water availability, rainfall and temperature in the long-run analysis has positive association with carbon dioxide emission with coefficients 1.978013, 0.289200 and 3.647727 with p values 0.0000, 0.0014 and 0.0001, respectively. Similarly, in the long-run analysis, the coefficient of area under maize crop showed an adverse linkage with carbon dioxide emission.

Climate change has continuing threat to the agricultural production which is impacted through carbon dioxide emission and the global advocacy to respond its adverse influence with utmost determination. The agricultural production and security of food are facing key challenges due to climate change, and sectorial actions are necessary to handle this problem to limit the negative influence which is causing global warming. In addition, the greenhouse gas emissions are increasing from agriculture, and several research studies have been conducted on livestock and agriculture; fisheries can help economies to identify the major resources to tackle the reduction of carbon dioxide emission simultaneously and discourse the security issues regarding food (Appiah et al. 2018; Surahman et al. 2018; Edoja et al. 2016). Better nutrition, sustainable production, food security and consumption can be achieved through long-term policies which enable to control hunger. However, seeking alternatives to increase the supply of food in order to meet the increasing demand has directed through week practices of agriculture that causes the climatic change (Asumadu-Sarkodie and Owusu 2017; Nath et al. 2018).

The ecosystem has been caused by the climate change affects. It also adversely affected the species and their habitats, water supply, food security and human health. It is considered the supreme hazardous and complicated ecological problems created by human beings. Globally efforts are paying to alleviate the effects of climate change and carbon dioxide emission to limit the global temperature (Waheed et al. 2018; Defleur and Desclaux 2019; Pecl et al. 2017). With the passage of time, the demand of food is increasing with rapid population growth, leading to increased agricultural productivity. The competition between individual farms and local producers has stirred the meditation to increase the agricultural production (Rehman et al. 2019a, b).

The short-run dynamic results also show that all variables have significant linkage with carbon dioxide in spite area under maize crop. Furthermore, diagnostic tests show that normality test, serial correlation, heteroscedasticity and Ramsey RESET p values are 0.3951, 0.3639, 0.4299 and 0.4381, respectively.

Figure 2 depicts the dynamic linkage between study variables. Based on findings, the coefficients of the maize crop production, water availability, rainfall and temperature demonstrate a long-term relationship with carbon dioxide emission, but the coefficient of area under maize crop showed a non-significant linkage with carbon dioxide emission. Additionally, the direction of long-run and short-run among variables is reliable, excluding area under maize crop, which revealed negative connection with carbon dioxide emission in both log-term and short-run analysis. Overall findings showed heterogeneity through long-run and short-run which demonstrate a key recommendation for policy.

Fig. 2
figure 2

Dynamic linkage of variables

Granger causality test results

The causality linkage among carbon dioxide emission, maize crop production, area under maize crop, water availability, rainfall and temperature was determined by using Granger causality. Pairwise Granger causality test results are presented in Table 8 and show that unidirectional causality association between carbon dioxide emission and maize crop production. Furthermore, there is also unidirectional association among carbon dioxide emission and temperature.

Table 8 Pairwise Granger causality Tests

Figures 3 and 4 illustrate the long- and short-run stability by using CUSUM (cumulative sum) and cumulative sum of square (CUSUMSQ) specifies level of significance at 5%.

Fig. 3
figure 3

Cumulative sum

Fig. 4
figure 4

Cumulative sum of square

Conclusion and policy recommendations

The major investigation in this study was to check the association between carbon dioxide emission, maize crop production, area under maize crop, water availability, rainfall and temperature in Pakistan for the period of 1988–2017. Data stationarity was checked by employing Generalized Dickey-Fuller Least Squares (DF-GLS) test and Phillips-Perron unit root test. Furthermore, variables dynamic linkage was checked by using autoregressive distributed lag (ARDL) bounds testing approach and Granger causality test. The variables showed a long-term association as carbon dioxide emission has positive influence to maize crop production. Similarly, results also revealed that water availability, rainfall and temperature have positive association with carbon dioxide emission in Pakistan. Unfortunately, the variable area under maize crop demonstrates a non-significant linkage with carbon dioxide emission.

According to the findings of this study, it suggests that possible initiatives are necessary to be taken from the government of Pakistan regarding the reduction of carbon dioxide emission to avoid causing climate change. The global temperature is cumulative due to variations in the climate and carbon dioxide emission that causing the agriculture production. Carbon dioxide emission is now an emerging issue on global level, and possible conservative policies are needed from all countries to pay attention regarding the reduction of carbon dioxide emission to avoid from environmental degradation.

Pakistan has very small contribution to the overall global greenhouse gas emissions; however, nation is committed to combating the climate change by adapting and through reducing the greenhouse gas emissions. Agriculture, livestock, energy, transportation, forestry, urban planning and industrial sectors are main areas where interventions are needed to mitigate the impact of climate change. Due to climate change and global warming, the glaciers are melting in Pakistan which causing the threat of water flow in several rivers of Pakistan. This effect will cause the lives of millions of people in Pakistan. A continued variation in the climate has become increasingly unstable over the past few decades, and this is expected to continue. The detrimental impact of climate change required a core priority in Pakistan on many issues in various sectors including agriculture, ecology, water and forestry. In the emission of greenhouse gasses, Pakistan has less contribution. Pakistan should play his major part in the global community as a responsible member tackling the issue of climate change that has emphasized and gave major attention to all sectors including forestry, livestock, agriculture and energy.