1 Introduction

The climate and weather play a major role in agricultural productivity. They determine the types of crops grown by farmers and even the yield at harvest time; thus, they alter the patterns of rainfall, temperature, and radiation, among other weather elements. According to Mendelsohn et al. [27], analytical and empirical arguments hold that climate changes lead to declining agricultural productivity. Fischer et al. [15] predicted that 29 African countries faced an imminent aggregate loss of 35 million tons in their potential cereal production as a result of anticipated climate change. The impact of climate change on crop productivity could have multiplier effects. First, with increased temperature and evapotranspiration, more water will be required for crop production. If there is no corresponding increase in precipitation, the countries are likely to experience a serious crop failure in most parts. Second, rising temperatures have also been associated with increased disease incidence in many countries.

The Tunisian agricultural sector employs more than 20 % of the labor force. Moreover, it represents 11.5 % of the gross national product and contributes to an important part of the Tunisian exports as a source of foreign currency. Thus, the Tunisian agricultural sector should not be neglected in any development plan, and policy makers are invited to provide serious protection to this sector, given its vulnerability to climate change impacts. Policy makers should anticipate future climate change accurately, hence reduce its negative impacts and improve investment decisions (e.g., irrigation, precision of early warning systems). Cereal and date crops represent over 50 % of the Tunisian agricultural output. These crops are expected to be the most affected by climate change and weather conditions.

Tunisia, which belongs to both Mediterranean and sub-Saharan countries, has an attractive geographical position. The south of Tunisia experiences the joint effect of this geographical position and climate warming, given its Saharan nature. In contrast, the north of Tunisia benefits from a Mediterranean climate characterized by a hot and dry summer and a relatively rainy winter. Given this diverse climate, we first intuitively try to explain the long-run weather and climate impacts before confirmation by objective analysis based on empirical investigations. Temperature is expected to affect cereal and date yields negatively, at least in the southern regions that are characterized by a dry climate. However, rainfall and precipitations are expected to have positive impacts on the agricultural production. According to Fischer and Velthuizen [14], a plausible positive effect of temperature can be found in mountainous areas. Otherwise, a long-run negative rainfall effect can be found in the southern regions that have suffered from severe drought for the last three decades. Moreover, climate data on Tunisia gathered during the 20th century indicate heating, estimated at over 1 °C, with a pronounced trend in the past 30 years. At the beginning of the 20th century, the country experienced one drought every 10 years, in contrast with the current state of 5 or 6 years of drought per 10 years. Given the importance of agriculture to employment and livelihoods in Tunisia, the loss of agricultural productivity due to climate change will affect the country’s entire economy.

Over the last three decades, the link between climate change and agricultural productivity has benefited from active research in applied econometrics on environmental and agricultural economics. Most of these studies have been carried out in developed countries, mainly in Europe and in the United States. We mention some of them for illustration purposes: Lang [21], Lippert et al. [23], Fischer et al. [16], Schlenker et al. [37], Adams et al. [2, 3], Rosenzweig and Parry[33]) Rosenberg and Scott[32]). The Middle East and North Africa (MENA) countries, however, have been the subject of relatively few studies.

In this context, this study is innovative: to the best of our knowledge, panel cointegration is used for the first time to study the climate change impacts on agricultural production using a rich panel data set from 1975 to 2011 in 24 Tunisian regions. Our database consists of annual panel data for cereal production, date production, temperature, and rainfall. The second innovation of this study is to analyze the long-run versus short-run impacts of climate change on agriculture in Tunisia. To the best of our knowledge, no published paper has examined the impacts of climate change on agriculture in Tunisia. Moreover, the Mediterranean region is potentially vulnerable to climatic changes induced by temperature and precipitation variations. Consequently, it is important to empirically investigate the interdependence between these two important factors and agricultural crops. We contribute empirically to the existing literature by the application of recent econometric techniques to the Tunisian regional database. This extension involves looking for the appropriate econometric tools and explicitly taking into account the deep Tunisian economic and political structural transformations that have taken place over the last four decades.

The first step of our study involved analyzing the data and carrying out the necessary tests to see whether the data are stationary. We then used the panel cointegration technique, which explicitly integrates the nonstationary character of our panel data, to derive the estimates of the long-run weather effects with the right properties. Our findings led us to propose relevant policy recommendations. Section 2 of this paper presents a brief constructive literature review, and Section 3 gives a description of the original climate database. The new econometric techniques, which have been extensively developed for a number of years and on which we rely, are briefly surveyed in Section 4. The empirical investigation and the analysis of the main results are provided in Section 5. Finally, a number of policy recommendations conclude the paper.

2 Overview of the Literature

It is expected that, globally, 20 % of all damages caused by climate change will occur in the agricultural sector; hence, understanding climate vulnerability and weather patterns is a crucial element in estimating future climate change impacts (Intergovernmental Panel on Climate Change [IPCC], [20]). These changes have been considered as a major source of consensus between researchers on environmental economics over the last three decades. The long-term change in mean temperature, rainfall, and precipitation has gradually been recognized as an additional factor which will have, in conjunction with other conventional constraints, a significant weight on the form and scale of spatial and temporal impacts on agricultural productivity. The general consensus to emerge from the growing body of literature in this domain is that, in the absence of adequate response strategies to long-term climate change as well as to climate variability, diverse and region-specific impacts will become more apparent.

The large literature regarding the impacts of climate change on agricultural production cannot be exhaustively reviewed in this paper. Thus, we review a few selected studies that reflect a good mix of the overall literature trends. Over the last three decades, the literature on climate change impacts on agriculture has been dominated by two different methodologies. One method applies econometric models to time series, cross-sectional, or panel data, whereas the second one uses the Ricardian or hedonic method as theoretical background. We review a few selected studies based on these two approaches.

Deschênes et al. [10, 11] examined the economic impacts of climate change on agricultural output. Using U.S. data on agricultural production and weather variables, they found that climate change increases annual profits by $1.3 billion. Deschênes et al. [11] indicated that the predicted impacts of climate change on farm profits are heavily dependent on the functional form assumed for the climatic and control variables. However, Fisher et al. [17] explained the divergence between results by the difficulties experienced in calculating the profit measure, the use of older climate change projections, and missing and incorrect weather and climate data.

Empirical findings on 60 crops in Taiwan showed that the two climate variables (temperature and precipitation) have significant implications on many crop yields [6]. A negative impact of temperature on yield was observed for several rice- and maize-producing countries [24]. However, differences in simulated yield increases due to doubling CO2 among models were small in comparison to the differences between simulated and observed yields for ambient conditions [13]. Crop adaptability to particular years as well as yield increment and yield stability was found to be crucial factors for the future [7].

According to Rosenzweig et al. [34], climate change is expected to result in long-term water and other resource shortages, drought and desertification, disease and pest outbreaks on crops and livestock, and the rise of sea levels. Consequently, vulnerable areas are expected to experience losses in agricultural productivity, primarily due to reductions in crop yields. The global welfare changes in the agricultural sector are approximated between losses of US$61.2 billion and gains of US$0.1 billion [31]. Under the most severe scenarios of climate change, losses are expected to be omnipresent (see studies by; [33, 9, 4]). Experts predict a spatial shift of crops and agriculture production, and estimation results indicate 24 % of production losses in developed countries and 16 % in developing countries.

Lobell et al. [25] derived the nonlinear effect of heat on African maize. Using a data set of over 20,000 historical maize trials in Africa, combined with daily weather data, they found that each degree day spent above 30 °C reduced the final yield by 1 to 1.7 %. In addition, Schlenker and Roberts [35] examined the effect of nonlinear temperature on crop yield in the United States. Using data in temperature distribution within each day and across all days in the growing season, they showed that yields increase with a temperature up to 29 °C for corn, 30 °C for soybeans, and 32 °C for cotton. The authors showed that temperature is very harmful above these thresholds.

Welch et al. [39] estimated the effects of daily minimum and maximum temperatures on rice yields in tropical Asia. Using data on rice yields in six important rice-producing countries and daily temperature values, they found statistically significant impacts of temperature and radiation during both the vegetative and ripening phases of the rice plant. Findings showed that the rice yields decrease with a higher minimum temperature and increase with a higher maximum temperature. The authors concluded that temperature variation must be considered when investigating the impacts of climate change on irrigated rice in Asia. When examining the climate change impact on Kenya, Fischer and Velthuizen [14] found that higher temperatures have a positive impact in highland areas. Similarly, Downing [12] showed that in western Kenya an increase in temperature by 2.5 °C would lead to an increase of 67 % in high-potential land.

The Ricardian method has been applied to various countries, including the United States, Brazil, and Germany, and to the African continent. Schlenker et al. [36] derived the effects of climate change on U.S. agriculture. Using the hedonic approach, they found that changes in long-run weather patterns might have a smaller effect on commodity prices, especially on crops produced in California and Florida. The hedonic approach was used as a theoretical background by Lang [21], who found that land prices are determined by climatic factors. Lang also showed that German farmers are winners of climate change in the short run, with maximum gains occurring at a temperature increase of +0.6 °C against current levels. In the long run, there may be losses from global warming. Seo et al. [38] applied the Ricardian approach to analyze the distribution of climate change impacts on agriculture across agro-ecological zones in Africa and found that the effects of climate change will be quite different across Africa, and the humid forests will become more productive in the future.

Quantitative studies on the impacts of climate change have been based mainly on experimental and cross-sectional research. The experimental technique that includes agro-economic simulation models was applied by Parry et al. [28] and Adams et al. [1]. The agronomic approach was criticized by Mendelsohn et al. [27] and Mendelsohn and Dinar [26], who argued that this approach overestimates damage. This method (controlled experiments), which is characterized by higher implementation costs, was primarily used to estimate the impacts on grains [3]. The main focus of these studies was the identification of adaptation mechanisms to climate change scenarios.

Many results are derived from several crop simulation studies. These results show that an evolution in mean temperature or rainfall will be accompanied by an evolution in agricultural production or productivity. For instance, an increase by 2 °C in the minimum temperature will reduce rice yield in India at the rate of 0.71 ton/ha while a 1 °C rise in the mean temperature would have no significant effect on wheat yields [5]. Hulme et al. [18] argued that in 100 years’ time, Africa could be 2–6 °C warmer on average, which will certainly affect the overall agricultural production. Developing countries, and particularly the poorest countries, will not be able to avoid the impacts of climate change, which are evident in several scenarios that include higher temperatures, drought, and main rainfall decrease. In the light of these findings, we used desegregated data covering 24 regions in Tunisia to study the case of Tunisia and compared results with those of other studies. To the best of our knowledge, this paper is the first to present a long-run versus short-run analysis of climate change impacts on agricultural production using the nonstationary panel data technique.

3 Data Description and Analysis

The empirical analysis is based on 24 regions in Tunisia, namely Tunis, Ariana, Ben Arous, Manouba, El Kef, Kasserine, Béja, Siliana, Medenine, Tataouine, Kebili, Nabeul, Tozeur, Gafsa, Gabés, Kairouan, Sidi Bouzid, Bizerte, Zaghouan, Sousse, Monastir, Mahdia, Jendouba, and Sfax. The time dimension of the panel data covers the period 1979–2011.

The data on cereal production, annual rainfall, and temperatures were collected for the entire sample. However, data on date production were collected for the southern region only (Gabés, Gafsa, Tataouine, Tozeur, and Kebili), which monopolizes date production owing to its Saharan climate, and for a longer period, beginning in 1976. This novel and rich database was provided by the Tunisian Ministry of Agriculture and Water Resources and the National Institute of Meteorology. Annual values of rainfall and temperature data for 35 years were collected from all the meteorological stations in the entire country. Data regarding the annual production of cereals in each region were collected by the Statistics Department of the Ministry of Agriculture and Water Resources.

Drought conditions may also be brought on by lower amounts of precipitation. In arid regions, drought may reduce subsequent river discharge and irrigation water supplies during the growing period. Episodes of high relative humidity, frost, and hail can also affect yield and the quality of fruits and vegetables (especially corn and other grains). Crop yields are most likely to suffer if dry periods occur during critical developmental stages such as reproduction. In most grain crops, flowering, pollination, and grain filling are especially sensitive to water stress. Moreover, above a certain temperature threshold, crops respond negatively, and agricultural productivity will be significantly reduced.

Cereal crops are vulnerable to daily periods of high temperature. In arid regions, air temperatures between 45 and 50 °C that occur for at least 30 min directly damage crop leaves. Lower temperatures between 30 and 40 °C can also be damaging if they persist for longer periods of time. The vulnerability of crops to higher temperatures is also determined by differences in altitude. In highland areas, crops respond positively to temperature increases [14] whereas, in low-lying areas, higher temperatures might damage crops. Moreover, heat accentuation, caused by drought stress for a long period, is often accompanied by high solar irradiance and high winds. Such irradiance reduces transpiration and consequently raises plant temperatures.

Table 1 shows some aggregate statistics about annual fluctuations of the variables and thus gives a preliminary description of the variables in the long run. For both cereal and date production, we observe a significant difference between the maximum annual production and the mean value over the last 35 years. This can be primarily explained by the profound structural transformation that the Tunisian economy went through. After independence from France in 1956, Tunisia encouraged agricultural investment and developed financial institutions that subsidized farmers. Indeed, in 1960, the national agricultural bank was created to promote agricultural activities and increase production. This bank was restructured in 1989 to facilitate accessibility of farmers to loans with reduced interest rate. These actions have transformed the economy and augmented the share of the agricultural sector in the GDP. The agricultural sector represented only 5 % of the GDP in 1970 whereas it currently represents 11.5 %, which is explained by the structural transformation of this sector within the Tunisian economy over the last four decades.

Table 1 Descriptive statistics of the variables

We used these data to examine the relationship between the yields of the two most important agricultural crops (cereals and dates) and annual weather fluctuations measured by temperature and rainfall. Moreover, when there is an interaction term, the effect of one variable that forms the interaction depends on the level of the other variable in the interaction. The interaction effect between the two climate variables was also tested. The effect of precipitation on agricultural crops is linked to the effect of temperature: for a given level of temperature temp0 in a region, the effect of precipitation is the effect of rainfall + the effect of interaction × temp0. This means that the total effect of precipitation depends on the level of temperature in the region. Hence, there is really no unique effect of precipitation on agricultural crops; it is different for each level of temperature. Finally, the variables were converted into natural logarithmic form before the empirical analysis.

4 Empirical Methodology

As there was a very important time dimension, the existence of a panel long-run relationship between the variables was not excluded from our assumptions. Consequently, the econometric method involved three steps: we began by testing the panel unit roots using two first generation tests proposed by Levin et al. [22] and Im et al. [19]. Then, we carried out the seven tests proposed by Pedroni [29] to obtain the long-term relationship between all variables. Finally, we used the fully modified ordinary least squares (FMOLS) technique to estimate the cointegration vector for heterogeneous cointegrated panels, which corrects the standard OLS bias induced by the endogeneity and serial correlation of the regressors. The use of standard OLS could bias results and overestimates the long-run impact of rainfall and temperature on agricultural crops.

Following Pedroni [30], we employed estimation techniques taking into account the heterogeneity of long-run coefficients. The FMOLS group mean estimator can be used to obtain panel data estimates of the long-run impacts of climate variables on agricultural crops. These estimators correct the standard pooled OLS for serial correlation and endogeneity of regressors that are normally present in a long-run relationship. In our empirical analysis, we put emphasis on between-dimension panel estimators. It is worth noting that the between-dimension approach allows for greater flexibility in the presence of heterogeneity across the cointegrating vectors where rainfall and temperature coefficients are allowed to vary. Additionally, the point estimates of the between-dimension estimator can be interpreted as the mean value of the cointegrating vectors, while this is not the case for the within-dimension estimates.

4.1 Panel Unit Root Test

The Levin, Lin, and Chu test (LLC hereafter) is the founding work in the nonstationary panel data literature. Like the augmented Dickey-Fuller (ADF) test in time series, the LLC tests the null hypothesis of \( \delta =0 \), for all i, against the alternative of δ < 0 in the following equation:

$$ \varDelta {y}_{it}={\updelta \mathrm{y}}_{i,t-1}+{\displaystyle {\sum}_{l=1}^{Pi}\theta ip}\varDelta yi,t-1+uit $$
(1)

where d 1t  = ∅, d 2t  = {1} , and d 3t  = {1, t} are used to define the three ADF cases.

Levin et al. [22] proposed a three-step procedure to implement their test. The adjusted statistic used in our study is:

$$ {\mathrm{t}}_{\delta}^{*}=\frac{{\mathrm{t}}_{\delta }-N\times \mathrm{s}\mathrm{t}\mathrm{d}\left(\delta \right)\times {\mu}_{m\tilde{T}}^{*}\times {\widehat{\sigma}}_{\tilde{\varepsilon}}^{-2}\times {\widehat{S}}_N\times \tilde{T}}{\sigma_{m\overset{\sim }{T}}^{*}}\sim N\left(0,1\right) $$

with \( \frac{\sqrt{N}}{T}\to 0 \), where Ŝ N , \( {\mu}_{m\tilde{T}}^{*}, \) and \( {\sigma}_{m\tilde{T}}^{*} \) are, respectively, the average standard deviation ratio calculated in the second step and the mean and standard deviation adjustments simulated by the authors for a different order of m and time series dimension \( \tilde{T} \) [22].

The Im, Pesaran, and Shin test (IPS thereafter) is formulated by the LLC equation when m = 2 and δ i varies across individual cross-sectional units.

Thus, the IPS tests the null hypothesis of δ i  = 0 for all I, against the alternative of δ i  < 0 for i = 1, …, N 1 and δ i  = 0 for i = N 1 + 1, …, N.

With \( {N}_1\in\ \left]0,N\right[,\ \mathrm{s}\mathrm{uch}\ \mathrm{a}\mathrm{s}\underset{N\to \propto }{ \lim}\left(\raisebox{1ex}{${N}_1$}\!\left/ \!\raisebox{-1ex}{$N$}\right.\right)\kern0.5em =\delta\;\mathrm{where}\;0\le \delta \le 1 \).

If N 1 = 0, we find the null hypothesis.

Im et al. [19] proposed to use the average of the individual ADF-statistics defined as follows:

$$ {\overline{t}}_{NT}=\frac{1}{N}{\displaystyle {\sum}_{i=1}^N{t}_{iT\ }\left({P}_i,{\beta}_i\right)} $$

t iT  = (P i , β i ) is the individual student statistic associated to the null hypothesis for a given lag order P i and a vector of ADF coefficients.

$$ {\beta}_i=\left({\beta}_{i,1},{\beta}_{i,2}, \dots, {\beta}_{i, pi}\right) $$

Im et al. [19] used the standard normal statistic Z.

$$ \overline{Z}=\left[\sqrt{N}\frac{\left({\overline{t}}_{NT}-E\left({t}_{iT\ }\right)\right)}{\sqrt{\mathrm{var}\left({t}_{iT}\right)}}\right]\underset{N\to \infty }{\to }N\left(0,1\right) $$

where the terms E(t iT  ) and var(t iT ) are, respectively, the mean and variance of each statistic, and they are generated by simulations and are tabulated in Im et al. [19].

4.2 Pedroni’s Panel Cointegration Tests

After testing for stationarity of the variables, we turned to testing for the existence of a long-run relationship among the variables. We applied the residual-based method developed by Pedroni [29] where the cointegration rank is a priori known and equal to one. Thus, to test for the null of no cointegration in heterogeneous panels with multiple regressors, the starting point for this cointegration test is the estimation of the following panel regression:

$$ ln\ {Y}_{it}={\alpha}_{0i}+{\alpha}_{1i}\; ln\;{\mathrm{RL}}_{it}+{\alpha}_{2i}\; ln\;{\mathrm{TM}}_{it}+{\alpha}_{3i}{\left( \ln \mathrm{R}\mathrm{L}\times \ln \mathrm{T}\mathrm{M}\right)}_{it}+{\varepsilon}_{it} $$
(2)

for i = 1, ….., N, t = 1, ….., T; where T refers to the number of observations over time and N refers to the number of individual members in the panel. Y, RL, TM, and RL × TM are, respectively, date or cereal production, rainfall, temperature, and an interaction variable between rainfall and temperature. The following steps were followed. First, after estimation, we stored the residuals \( {\widehat{\varepsilon}}_{it} \). Second, we differentiated the original data series for each member and computed the residuals for the differentiated regression:

$$ \varDelta ln\ {Y}_{it}={\alpha}_{1i}\varDelta ln\ {\mathrm{RL}}_{it}+{\alpha}_{2i}\varDelta ln{\mathrm{TM}}_{it}+{\alpha}_{3i}\varDelta {\left( ln\mathrm{R}\mathrm{L}\times \ln \mathrm{T}\mathrm{M}\right)}_{it}+{\eta}_{it} $$
(3)

Third, we calculated \( {\widehat{L}}_{11i}^2 \) as the long-run variance of \( {\widehat{\eta}}_{it} \). Fourth, using the residual \( {\widehat{\varepsilon}}_{it} \) of the original cointegrating equation, we estimated the appropriate autoregressive model. To compute the nonparametric statistics, we estimated \( {\widehat{\varepsilon}}_{it}={\widehat{\psi}}_i{\widehat{\varepsilon}}_{i,t-1}+{\widehat{\kappa}}_i \) and used the residuals to compute the long-run variance of \( {\widehat{\kappa}}_i \), denoted \( {\widehat{\sigma}}_i^2 \). The term λ i was computed as \( {\widehat{\lambda}}_i = 1/2\left({\widehat{\sigma}}_i^2-{\widehat{s}}_i^2\right) \), where s 2 i is just the simple variance of \( {\widehat{\kappa}}_i \). On the other hand, for the parametric statistics, we estimated \( {\widehat{\varepsilon}}_{it}={\widehat{\psi}}_i{\widehat{\varepsilon}}_{i,t-1}+{\displaystyle {\sum}_{k=1}^{ki}{\widehat{\psi}}_{i,k}\Delta {\widehat{\varepsilon}}_{i,t-k}+{\widehat{\mu}}_{i,t}} \) and used the residuals to compute the variance of \( {\widehat{\mu}}_{i,t} \), denoted ŝ * 2 i . Using each of these steps, we constructed the statistics that follow and then applied the appropriate mean and variance adjustment terms reported in Pedroni [29].

Following Pedroni [29], the heterogeneous panel and heterogeneous group mean panel cointegration statistics were calculated as follows:

  • Panel V-statistic:

    $$ {Z}_{N,T,\widehat{v}}\equiv {T}^2\ {N}^{\raisebox{1ex}{$3$}\!\left/ \!\raisebox{-1ex}{$2$}\right.}{\left({\displaystyle {\sum}_{i=1}^N{\displaystyle {\sum}_{t=1}^T{\widehat{L}}_{11i}^{-2}{\widehat{\varepsilon}}_{i,t-1}^2}}\right)}^{-1} $$
  • Panel ρ-statistic:

    $$ \begin{array}{c}\hfill {Z}_{N,{T}^{-1},\widehat{\rho}}\equiv T\ {N}^{\raisebox{1ex}{$1$}\!\left/ \!\raisebox{-1ex}{$2$}\right.}{\left(\left(\left({\displaystyle \sum_{i= 1}^N{\displaystyle \sum_{t=1}^T{\widehat{L}}_{11i}^{-2}{\widehat{\varepsilon}}_{i,t-1}^2}}\right)\right)\right)}^{-1}\hfill \\ {}\hfill \times \Big({\displaystyle \sum_{i=1}^N{\displaystyle \sum_{t=1}^T{\widehat{L}}_{11\boldsymbol{i}}^{-2}\left({\widehat{\varepsilon}}_{i,t-1}\varDelta {\widehat{\varepsilon}}_{it}-{\widehat{\lambda}}_{\boldsymbol{i}}\right)}}\hfill \end{array} $$
  • Panel t-statistic (nonparametric):

    $$ \begin{array}{c}\hfill {Z}_{tN,T}\equiv \left({\tilde{\sigma}}_{N,T}^2{\displaystyle \sum_{i=1}^N{\displaystyle \sum_{t=1}^T{\widehat{L}}_{11i}^{-2}{\widehat{\varepsilon}}_{i,t-1}^2}}\right)\Big){}^{\raisebox{1ex}{$-1$}\!\left/ \!\raisebox{-1ex}{$2$}\right.}\hfill \\ {}\hfill \times \Big({\displaystyle \sum_{i=1}^N{\displaystyle \sum_{t=1}^T{\widehat{\boldsymbol{L}}}_{11\boldsymbol{i}}^{-2}\left({\widehat{\varepsilon}}_{i,t-1}\varDelta {\widehat{\varepsilon}}_{it}-{\widehat{\lambda}}_i\right)}}\hfill \end{array} $$
  • Panel ADF-statistic (parametric):

    $$ {\widehat{Z}}_{tN,T}^{*}\equiv {\left(\left({\tilde{s}}_{\boldsymbol{N},\boldsymbol{T}}^{\ast 2}{\displaystyle \sum_{i=1}^N{\displaystyle \sum_{t=1}^T{\widehat{L}}_{11\boldsymbol{i}}^{-2}{\widehat{\varepsilon}}_{i,t-1}^{\ast 2}}}\right)\right)}^{\raisebox{1ex}{$-1$}\!\left/ \!\raisebox{-1ex}{$2$}\right.}{\displaystyle \sum_{i=1}^N}{\displaystyle \sum_{t=1}^T}{\widehat{L}}_{11i}^{-2}{\widehat{\varepsilon}}_{i,t-1}^{\ast}\varDelta {\widehat{\varepsilon}}_{i,t}^{\ast } $$
  • Group ρ-statistic:

    $$ {\tilde{Z}}_{N,{T}^{-1},\widehat{\rho}}\equiv T\ {N}^{\raisebox{1ex}{$-1$}\!\left/ \!\raisebox{-1ex}{$2$}\right.}{\left({\displaystyle {\sum}_{i=1}^N\left({{\displaystyle {\sum}_{t=1}^T\widehat{\varepsilon}}}_{\boldsymbol{i},\boldsymbol{t}-1}^2\right)}\right)}^{-1}\times \Big({\displaystyle {\sum}_{t=1}^T{\widehat{\Big(\varepsilon}}_{i,t-1}\varDelta {\widehat{\varepsilon}}_{it}-{\lambda}_i\Big)} $$
  • Group t-statistic (nonparametric):

    $$ \begin{array}{c}\hfill\ {\tilde{Z}}_{N,T,t}\equiv {N}^{\raisebox{1ex}{$-1$}\!\left/ \!\raisebox{-1ex}{$2$}\right.}\left({\displaystyle \sum_{i=1}^N\Big({\widehat{\sigma}}_i^2{\displaystyle \sum_{t=1}^T}{\widehat{\varepsilon}}_{i,t-1}^2}\right)\Big){}^{\raisebox{1ex}{$-1$}\!\left/ \!\raisebox{-1ex}{$2$}\right.}\hfill \\ {}\hfill \times \Big({\displaystyle \sum_{t=1}^T\left({\widehat{\varepsilon}}_{i,t-1}\varDelta {\widehat{\varepsilon}}_{it}-{\widehat{\lambda}}_i\right)}\hfill \end{array} $$
  • Group ADF-statistic (parametric):

    $$ {\tilde{Z}}_{tN,T}^{*}\equiv {N}^{\raisebox{1ex}{$-1$}\!\left/ \!\raisebox{-1ex}{$2$}\right.}{\left(\left({\displaystyle {\sum}_{i=1}^N{\displaystyle {\sum}_{t=1}^T{\widehat{\boldsymbol{s}}}_{\boldsymbol{i}}^{*2}{\widehat{\boldsymbol{\varepsilon}}}_{\boldsymbol{i},\boldsymbol{t}-1}^{*2}}}\right)\right)}^{\raisebox{1ex}{$-1$}\!\left/ \!\raisebox{-1ex}{$2$}\right.}\times \left({\displaystyle {\sum}_{t=1}^T{\widehat{\varepsilon}}_{i,t-1}^{\ast}\varDelta }{\widehat{\varepsilon}}_{i,t}^{\ast}\right) $$

where \( {\widehat{\sigma}}_i^2 \) and \( {\widehat{S}}_i^{*2}\left({\tilde{s}}_{N,T}^{*2}\right) \) are, respectively, the long-run and contemporaneous variance for individual i. The other terms are properly defined in Pedroni [29] with the appropriate lag length determined by the Newey-West method. All seven tests are distributed as being standard normal asymptotically. This requires standardization based on the moments of the underlying Brownian motion function. The panel V-statistic is a one-sided test where large positive values reject the null of no cointegration. The remaining statistics diverge to negative infinitely, which means that large negative values reject the null. The critical values are also tabulated by Pedroni [29]. After testing for panel cointegration and estimation of long-run coefficients, we specified and estimated short-run effects, as indicated in the last section.

4.3 FMOLS Mean Group Panel Estimator [30]

The FMOLS group panel estimator was developed by Pedroni [30]. To present the method, we consider the following fixed-effect panel cointegration system:

$$ \begin{array}{ll}{y}_{it}={\alpha}_i+{x}_{it}^{\prime}\beta +{\mu}_{1, it},\hfill & t=1,\dots, T\;\mathrm{and}\ i=\hfill \end{array}1,\dots, N $$
(4)

x it can in general be m-dimensional vectors of regressors which are integrated of order one, that is:

$$ {x}_{it} = {x}_{i,t-1}+{u}_{2, it},\forall\ i,T $$
(5)

where the vector error process w it  = (u 1,it ; u 2,it ) is stationary with the asymptotic covariance matrix Ω i , ∀ i = 1, …, N,

Ω i  = Ω 0 i  + Γ i  + Γ i , Ω 0 i is the contemporaneous covariance and Γ i is a weighted sum of autocovariances.

The long-run covariance matrix is constructed as follow: \( \left[\begin{array}{cc}\hfill {\Omega}_{11i}\hfill & \hfill {\Omega}_{21i}^{\prime}\hfill \\ {}\hfill {\Omega}_{21i}\hfill & \hfill {\Omega}_{22i}\hfill \end{array}\right] \), where Ω11i is the scalar long-run variance of the residual ε it , Ω22i is the long-run covariance among the u 2,it , and Ω21i is the vector that gives the long-run covariance between the residual u 1,it and each of the u 2,it .

The FMOLS estimator is given by:

$$ {\widehat{\beta}}_{\mathrm{FMOLS}}={\left({\displaystyle {\sum}_{i=1}^N{\widehat{\mathrm{L}}}_{22\mathrm{i}}^{-2}{\displaystyle {\sum}_{t=1}^T{\left({x}_{it}-{\overline{x}}_i\right)}^2}}\right)}^{-1}{\displaystyle {\sum}_{i=1}^N{\widehat{\boldsymbol{L}}}_{11\boldsymbol{i}}^{-1}{\widehat{\boldsymbol{L}}}_{22\boldsymbol{i}}^{-1}\left({\displaystyle {\sum}_{t=1}^T\left({x}_{it}-{\overline{x}}_i\right){y}_{it}^{\ast }-T{\widehat{\gamma}}_i}\right)} $$

where \( {y}_{it}^{*}=\left({y}_{it}-{\overline{y}}_i\right)-\frac{{\widehat{\mathrm{L}}}_{21i}}{{\widehat{\mathrm{L}}}_{22i}}\Delta {x}_{it}+\frac{{\widehat{\mathrm{L}}}_{11i}-{\widehat{\mathrm{L}}}_{22i}}{{\widehat{\mathrm{L}}}_{22i}}\ \beta \left({x}_{it}-{\overline{x}}_i\right) \) and

$$ {\widehat{\gamma}}_i={\widehat{\Gamma}}_{21i}+{\widehat{\Omega}}_{21i}^0-\frac{{\widehat{\Gamma}}_{21i}}{{\widehat{\Gamma}}_{22i}}\left({\widehat{\Gamma}}_{22i}+{\widehat{\Omega}}_{22i}^0\right) $$

The panel group FMOLS estimator is the average of the FMOLS estimator computed for each individual:

$$ {\widehat{\beta}}_{\mathrm{FMOLS}\mathrm{G}}={N}^{-1}{\displaystyle {\sum}_{i=1}^N{\widehat{\beta}}_{\mathrm{FMOLS}}} $$

The last section indicates the empirical results and comments, interpretations, and policy recommendations.

5 Empirical Results

Our empirical investigations began with two different panel unit root tests. Testing for stationarity is the first step of the panel cointegration procedure. The proof of the same order of integration, for all the variables, allows testing for panel long-run relationships between the variables integrated in the same order, and the long-run relationships can be estimated by FMOLS without ambiguity [30]. Given the results obtained, we used the appropriate method (FMOLS) to estimate the long-run impacts of climate variables on agricultural crops. Finally, a panel error correction model is estimated in the last subsection to evaluate the short-run impacts.

5.1 Unit Root and Panel Cointegration Tests

We began with a panel unit root test for all the series. Table 2 presents the results we obtained. As indicated in Section 4.1, both LLC and IPS tests are normally distributed. Consequently, we compared the calculated statistic of each test with 1.96. Table 2 shows clearly that not all the variables are stationary in the two subsamples. All the variables become stationary, as can be seen from the large negative values of LLC and IPS statistics, when we carried out a panel unit root test in the first difference. Therefore, the variables in the first difference are stationary or integrated of order zero (I(0)), which means their levels are integrated of order one (I(1)).

Table 2 Panel unit root tests

The presence of a panel unit root is sensitive to the inclusion of a trend. Indeed, there is a unit root in the dynamic of temperature only when a trend is included in Eq. (1). This implies that the cyclical components of annual temperature are deterministic rather than stochastic. In contrast, rainfall, date production, and cereal production exhibit a panel unit root with and without time trend inclusion in Eq. (1).

The results illustrated in Table 2 led us to test the relationships between the cereal production or date production (Y) and the climate variables (RL and TM) for both the first and the second subsamples. The seven tests proposed by Pedroni [29] were carried out. In practice, the calculated statistic of each test is compared to the normal critical value −1.64. The panel V-test has a critical value of 1.64; hence, if the test statistic is greater than 1.64, we reject the null of no cointegration. The main results are shown in Table 3.

Table 3 Panel cointegration tests results

The majority of these tests reject the null of no cointegration, which indicates the existence of long-run equilibrium between the variables that are I(1). Indeed, in the long run, annual cereal and date productions are determined by climate variables (rainfall and temperature).

The first step of the panel cointegration test method was to estimate Eq. (2); then, the estimated residuals from this equation were used to implement the seven statistics. Consequently, the interaction effect of rainfall and temperature was clearly considered in testing the long-run relationship through the additional variable (lnRL × lnTM). We then conducted the individual and group FMOLS estimations. The results of climate change impacts on cereal production are summarized in Table 4 while the long-run estimations of climate change impacts on date production are summarized in Table 5.

Table 4 FMOLS estimation of climate change impacts on cereal production
Table 5 FMOLS estimation of climate change impacts on date production

5.2 Climate Change Impacts on Cereal Production

As we had collected data on cereal production for all regions in Tunisia, we were able to interpret differences in long-run climate effect between the heterogeneous 24 regions. We used the FMOLS estimator developed by Pedroni [30] to estimate the long-run relationship between cereal production, rainfall, and temperature. The combination of the two effects of rainfall and temperature was examined through an interaction term between these two climatic variables. The FMOLS estimator is super-consistent, asymptotically unbiased, and normally distributed, even in the presence of endogenous regressors. Beginning with the long-run results (see Table 4), our main findings can be summarized as follows.

From the FMOLS individual results, we can conclude that the long-run impact of temperature is statistically significant for almost all the regions. The long-run effect of temperature on cereal production is combined with the effect of the interaction variable. For a given level of annual rainfall (rainfall0), the long-run effect of temperature is given by \( \left({\widehat{\alpha}}_{2i}+{\widehat{\alpha}}_{3i}\times {\mathrm{rainfall}}_0\right) \), where \( {\widehat{\alpha}}_{2i} \) and \( {\widehat{\alpha}}_{3i} \) are the long-run coefficients estimated by FMOLS from Eq. (2). Moreover, the long-run effect of precipitations on cereal production is also given by (\( {\widehat{\alpha}}_{1i} \) + \( {\widehat{\alpha}}_{3i}* \) temperature0), where \( {\widehat{\alpha}}_{1i} \) is the unique effect of rainfall estimated from Eq. (2). The negative effect of temperature for instance will be canceled by the effect of rainfall through the interaction term when the coefficient \( {\widehat{\alpha}}_{3i} \) is positive (the case of Nabeul), while the positive effect of rainfall can be canceled by the effect of temperature when \( {\widehat{\alpha}}_{3i} \) is negative (the case of Béja). Table 4 shows clearly the heterogeneity of both long-run rainfall and temperature impacts between mountainous, costal, and southern regions.

In the long run, an increase in annual temperatures decreases cereal production, in accordance with other results in the literature. Welch et al. [39] estimated the same negative impact of temperature on rice yields in tropical Asia. However, the long-run positive effect of higher temperatures in four mountainous regions (Kasserine, El Kef, Jendouba, and Béja) depends on the effect of the interaction variable, which was negative and significant in these regions, namely −0.25 and −0.56 in El Kef and Kasserine, respectively. Any benefit from climate variability in mountainous region is canceled by the interaction term for a given level of precipitation.

This result is in agreement with Fischer and Velthuizen [14] who showed, when examining the climate change impact on Kenya, that higher temperatures would have a positive impact in highland areas. The average altitude in the Béja area is 1,058 m, and its latitude and longitude are 3644°N and 911°E, respectively. El Kef has an altitude of 1,518 m above sea level and a latitude and longitude of 3608°N and 842°E, respectively. The positive effect of high temperatures on some agricultural crops has also been demonstrated by Lobell et al. [25] and Schlenker and Roberts [35] but only below some threshold of temperature.

Moreover, the regions most affected by the temperature increase over the last three decades are the southern regions. For instance, in Tataouine, which is located in the extreme south of Tunisia with a Saharan climate, a 1 % increase in temperature decreases annual cereal production by 8.5 % against only a 1.29 % decrease in a coastal region like Sfax. As the coefficient of the interaction term is positive and significant, the negative effect of temperature in Sfax is reduced by the annual precipitation increase.

With a current average of 5 or 6 years of drought every 10 years in a sub-Saharan climate, it is reasonable to detect this long-run negative effect of temperature on cereal production. The annual rainfall has a positive and statistically significant impact on the annual cereal production, as the panel group FMOLS estimation shows. Despite the poor significance of individual FMOLS long-run coefficients, we obtain a negative and statistically significant impact of rainfall in Zaghouan, Tozeur, and Kebili. This is certainly due to drought and a decrease of annual precipitations in these regions. The long-run negative effect of temperature on cereal production, shown in the panel group estimation, is more important in magnitude than the positive effect of rainfall. In contrast, the significant effect of the interaction variable (0.44) means that regular annual precipitation can reduce the negative effect of warming.

We now turn to the short-run results, as shown in Table 6. These reveal that the average annual rainfall and temperature figures are statistically significant for the panel of 24 regions and show that the short-run impacts of these two variables are smaller in magnitude than their long-run effect. This implies that over the short run, the impact of temperature and rainfall on the cereal production is smaller, but as time goes by, these variables tend to impact more on annual cereal crops and become a serious threat. Finally, the lagged error correction term is statistically significant. Its negative sign implies that after a common shock on cereal crop and climate variables, the cereal crop variable reverts to equilibrium. It is crucial to note that the coefficient of 0.15 precisely means that it takes 6 years (1/0.15) for cereal crops to return to equilibrium following a shock. The estimated coefficient (ECT t − 1) indicates also that about 15 % of this disequilibrium is corrected in between 1 year.

Table 6 Panel ECM estimation

5.3 Climate Change Impacts on Date Production

The south of Tunisia, which is characterized by a Saharan climate, produces the totality of the country’s date production. The estimation of long-run relationships between date production and climate variables was conducted with the FMOLS method, and results are reported in Table 5.

The results show the long-run negative effect of both temperature and rainfall on the date production. The FMOLS individual estimation indicates that the effect of the interaction term is significant only in Medenine, indicating a positive interaction effect. The negative impact of temperature is more important in magnitude than rainfall. In addition, as with the cereal production, some regions are more influenced than others. For instance, in Gafsa, a 1 % increase in annual temperature decreases the date production by 4.33 % while a 1 % increase in annual temperature increases the date production by 2.16 % in Kebili, which is located in the extreme southeast of Tunisia. Rainfall appears to decrease the date production in the long run, and this is certainly due to the increase of drought seasons over the last three decades.

The short-run results reveal that only rainfall figures are statistically significant for the panel of five southern regions. While rainfall has an effect of 0.13 in the long run, the effect falls to 0.09 in the short run. This implies that over the short run, the impact of rainfall on the date production is smaller; over time, however, rainfall has a greater impact on the date production. The one period lagged error correction term sign is negative and statistically significant at the 5 % level. This result implies that after a shock to the date production and climate variable caused by any extreme natural events, the date production reverts to equilibrium. The negative coefficient (−0.1) means that it takes slightly over 10 years (1/0.1) for the date production to return to equilibrium following a shock. The ECTt − 1 indicates also that about 10 % of this disequilibrium is corrected in between 1 year.

6 Conclusion and Policy Recommendations

The main purpose of this paper was to identify the long-run relationships between agricultural crops and climate variables. Using a regional annual database, our contribution is twofold. First, tests for panel unit root and then panel cointegration between cereal and date production and climate variables show the presence of a long-run relationship between these variables. Second, the long-run coefficients estimation reveals variability in climate change impacts between regions. The southern regions, characterized by a Saharan climate, are the most affected by the temperature increase and water shortages that have taken place over the last three decades. However, the highland and coastal areas, located in the north, are only weakly influenced by climate change.

The short-run coefficients indicate that the impact of rainfall shortages on the date production is small; over time, however, these shortages tend to have a greater impact on the date production. In addition, over the short run, the impact of temperature and rainfall on the cereal production is small; over time, they tend to have a greater impact on annual cereal crops and become a serious threat. The time length between extremely good crops and shortages is estimated to be 6 years for cereal production and 10 years for date production.

Our results show that the climate and weather variability effects on food production must be considered as a serious threat in Tunisia as well as in the other neighbor countries in the Mediterranean region. Since we estimate relatively higher negative and variable long-run effects of temperature increase across regions on cereal and date yields over the last three decades, an appropriate public policy subsidizing farmers in the most affected regions that are characterized by an arid climate will lead to a significant reduction of the negative climate change impact on both agriculture unemployment and wealth creation. However, the rainfall variable has a weakly positive effect that is compensated by the threat resulting from the brutal temperature increase over the last few decades. Our results are in line with other empirical studies in the literature; the effects of temperature increases have been demonstrated by Fischer and Velthuizen [14] in the case of Kenya, Lobell et al. [25] in Africa, and Schlenker and Roberts [35] in the United States.

Following these findings, we advocate adaptation strategies that can reduce losses and promote benefits from climate change. Highland areas like Béja and El Kef seem to have benefited from climate change; policy makers are thus invited to develop more agricultural activities in these regions. Policy makers in Tunisia and its neighboring countries in the Mediterranean region should seriously respond to climate change impacts on agriculture. Temperature and rainfall are naturally linked through a physical mechanism. The rainfall variation may affect soil moisture which may in turn affect surface temperature by controlling the partitioning between the sensible and latent heat fluxes. Some studies found that temperature and rainfall are positively correlated during January but negatively correlated during July.

Finally, we believe that it is essential to design a public policy privileging and subsidizing the threatened areas in the south of Tunisia; for example, subsidies would enable farmers to develop water irrigation systems by drilling for groundwater. The adverse effects of climate change should be seriously anticipated in Tunisia, and appropriate action should be taken to minimize the damage they can cause. Given the long-run negative effect of rainfall shortage in the south, adaptation measures should include the implementation of a water demand management system that promotes using scarce water resources more efficiently. In addition, policy makers should seriously consider encouraging the development of drought-tolerant crops, especially in the south of Tunisia where global warming has caused a severe drought. In the north of Tunisia, adaptation measures may include choosing tree species and forestry practices less vulnerable to storms and fires, especially in Jendouba, the forestry region of Tunisia. Although many trees are resilient to some degree of drought, increases in temperature could make future droughts more damaging than those experienced in the past. Adaptation strategies are required and needed to avoid the negative effect of warming at regional and national level. Policy makers should consider that the climate change impacts vary considerably across regions. They should take decisions that promote the most affected regions, particularly Tataouine, Kebili, and Tozeur. Government efforts should turn to enhancing solidarity among regions and ensuring that disadvantaged regions and those most affected by climate change are able to take the necessary measures to adapt. It is important to connect this analysis with crop production planning and agricultural economics. The relationship among rainfall, temperature, and crop yield could be used in developing risk-reducing strategies.