1 Introduction

While interest in climate factors as possible drivers of transnational migration remains (Gray and Wise 2016; Nawrotzki and DeWaard 2016), a small but growing number of quantitative studies have started to examine the relationship between climate shocks and internal migration (Hunter et al. 2015), and for good reason: First, owing to differences in exposure, sensitivity, and adaptive capacity (Adger 2006; IPCC 2014), places and populations within countries differ in their vulnerability to climate shocks, and this heterogeneity deserves to be unpacked. For example, it is well-documented that persons living in rural areas are more susceptible to climate shocks than those living in urban areas given strong dependencies on the agricultural sector for livelihoods and sustenance (Feng and Oppenheimer 2012; Hunter et al. 2015; Scoones 1999).

Second, while most people prefer not to move (Findlay 2011), those that do move typically migrate short distances to minimize the economic and psychosocial costs associated with migration (Bodvarsson and Van den Berg 2009). Internal moves are typically directed to places where migrants can obtain the necessary capital to offset livelihood uncertainties at home via remittances (Stark and Bloom 1985). Importantly, this dynamic is often reflected in rural-urban migration (Barrios et al. 2006; Mberu 2005) because metropolitan areas tend to offer employment in more diverse and less climate-sensitive labor markets, not to mention higher wages. However, because the skills of migrants from rural areas sometimes do not transfer to urban labor markets (Ratha et al. 2011), rural-rural and urban-urban migration (cf., Dillon et al. 2011) might also be common responses to climate shocks given similar livelihood environments in the migrant-sending and migrant-receiving areas.

Finally, the confluence of differential vulnerability to climate shocks and multiple and diverse types of migration patterns between rural and urban areas within countries suggests that the relationship between climate shocks and internal migration is probably not “monolithic and unidirectional” (Gray and Wise 2016, p. 556). Several recent studies have shown that the climate-migration relationship is characterized by important nonlinearities and thresholds (Bardsley and Hugo 2010; Bohra-Mishra et al. 2014; Gray and Wise 2016). Understanding these nonlinearities is important for a timely policy response to major and potentially irreversible shifts in livelihood environments (McLeman et al. 2016).

Given the need to unpack the relationship between climate shocks and internal migration, it is surprising that current research has neglected an important case that is likely ground zero for understanding the climate-migration relationship in North America: Mexico (see supplement S1: Case). This oversight is potentially consequential for several reasons. First, Mexico is highly vulnerable to climate shocks given the confluence of observed and projected climatic changes (Collins et al. 2013; McSweeney et al. 2008), strong dependencies on the agricultural sector (Conde et al. 2006; Wiggins et al. 2002), and limited technological infrastructure (Winters et al. 2002). Pronounced differences in livelihood environments render rural communities generally more susceptible to climate shocks (Feng and Oppenheimer 2012; Nawrotzki et al. 2015a), but urban areas also face climate-related challenges (Romero-Lankao 2010). Moreover, recent changes in agricultural employment (Charlton and Taylor 2013; Scott 2007) suggest the need for a closer look at climate sensitivity and internal migration in rural Mexican communities.

Second, likely an outgrowth of the large body of research on Mexico-U.S. migration (e.g., Massey 1987; Massey and Espinosa 1997), prior research on the climate-migration relationship in Mexico has focused exclusively on international migration. These studies have documented evidence of a climate signal, with warming temperatures and declines in precipitation contributing to international out-migration (Barrios Puente et al. 2015; Feng and Oppenheimer 2012; Hunter et al. 2013; Nawrotzki et al. 2015b). However, most contemporary migration in Mexico is internal (versus international) (Aguayo-Tellez and Martinez-Navarro 2013; Runfola et al. 2016), and we presently lack comparable information on the relationship between climate shocks and internal mobility in Mexico. These internal migration flows are of particular interest to policy makers and local authorities given the potential impacts on population (e.g., size, density, and composition), infrastructure, and the availability and provision of resources. For example, climate-related increases in rural-urban migration could overwhelm the capacity of metropolitan areas to deliver essential services such as health, sanitation, education, and public safety (Adamo 2010).

Accordingly, this paper breaks new ground by providing the first study of the relationship between climate shocks and four types of internal migration patterns in Mexico: rural-urban, rural-rural, urban-urban, and urban-rural. We ask: (1) Do climate shocks influence internal migration patterns between rural and urban areas in Mexico? (2) If so, are these differences manifested in nonlinearities and thresholds in the observed climate-migration relationships?

2 Data and methods

We combined data from the 2000 and 2010 Mexican censuses (1% extracts) from IPUMS International (MPC 2015) with high-resolution climate and land cover/land use information from Terra Populus (TerraPop) (MPC 2013). TerraPop allows summarizing raster-based spatial information (e.g., temperature and precipitation) for municipalities using harmonized boundary shapefiles (Kugler et al. 2015). The area summaries were then linked to census microdata records via unique municipality IDs, resulting in an analytical sample of 683,518 individuals residing in 2321 municipalities in 32 Mexican states.

The census recorded the municipality of residence during the enumeration year, and also collected information on individuals’ municipality of residence five years prior. This information enabled us to return people to their municipality of residence five years prior to the census (hereafter, origin) and subsequently model internal out-migration in response to climate shocks.

Given that migration is highly concentrated at peak labor force ages (Rogers and Castro 1981) and substantially declines after age 39 in our sample, we focus our analysis on individuals ages 15–39 at the origin (Gray and Bilsborrow 2013; Mueller et al. 2014). Age at origin was computed by subtracting five years from the age recorded at the destination during the census interview. To model migration between rural and urban municipalities, we obtained information on the percent of the area urban for each municipality based on Moderate Resolution Imaging Spectroradiometer (MODIS) urban extents for the year 2000 (Schneider et al. 2009), available from TerraPop. Based on a median split, we defined municipalities with no urban build up as rural (0.000% urban, light blue shading in Fig. 1a) and those with at least some urban build up as urban (0.001–78.3% urban, darker blue to violet shading in Fig. 1a) (see supplement S6 for a sensitivity analysis that uses a population-based classification of rural/urban status). The variable urban origin indicates the urbanization level of the origin municipality (for details see S2: Control variable construction). For migrants, we also differentiate between rural and urban destination municipalities (hereafter, rural destination and urban destination, respectively) at the end of a successful move, observed during the census year. The highest levels of urbanization are found in the central southwestern parts around Mexico City and along the coastline (Fig. 1a), while internal out-migration is more evenly distributed across Mexican municipalities (Fig. 1b).

Fig. 1
figure 1

Spatial distribution of the percent area urban (approximately for the year 2000) and internal out-migration rates (average for the years 2000 and 2010) for Mexican municipalities

For the computation of climate measures, we obtained a 50-year (1961–2010) time series of monthly average precipitation and maximum temperature. This information is available as high-resolution (0.5 degree) gridded data, constructed by the University of East Anglia’s Climate Research Unit (CRU) (Harris et al. 2014) and summarized by TerraPop at the municipality level. The CRU data are considered the gold standard among modeled and unmodeled climate data sources (Zhang et al. 2013). Following Nawrotzki and Bakhtsiyarava (2016), we computed measures of drought and heat months during the 5-years prior to the census (during which migration occurred), plus 1 additional year to allow for a lagged migration response (Nawrotzki and DeWaard 2016). We computed the number of months during the observation period in which the maximum temperature was more than 1 standard deviation (SD) above and precipitation was more than 1 SD below the 30-year (1961–1990) climate normal reference period. These measures capture the cumulative exposure to climate extremes. As we show in Fig. 2, the largest number of drought months was observed in southern Mexico (Fig. 2a), while heat impacts were strongest in south central and northern regions of the country (Fig. 2b).

Fig. 2
figure 2

Spatial distribution of drought and heat months (mean values across climate measures computed for census years 2000 and 2010) for Mexican municipalities

In addition to these core predictor variables, following previous research on climate migration (Gray and Bilsborrow 2013; Hunter et al. 2013; Nawrotzki et al. 2013), we constructed a comprehensive set of control variables to account for differences in gender, age, education, access to migrant networks, socioeconomic marginalization, agricultural dependence, access to irrigation infrastructure, baseline climatic conditions, and changes in the macro-economic context. Descriptive statistics of all variables employed in the present analysis are provided in Table 1, and detailed information on the construction of the control variables can be found in the supplementary material (S2: Control variable construction).

Table 1 Descriptive statistics of variables employed in the analysis of climate shocks on internal migration in Mexico during 2000 and 2010

We employ multilevel models (Luke 2004) to account for the nested structure of our data in which climate effects operate at the municipality level and migration is measured for each individual. In this study, random effects models are preferred over fixed effects alternatives because they permit the inclusion of time-invariant municipality-level predictors, use fewer degrees of freedom, and allow for clustering of the standard errors at multiple levels. We estimate the log odds of internal migration to municipality r (urban or rural) relative to no migration, s, for individual i residing in municipality j in state k through a series of multinomial contrasts (Eq. 1).

$$ \begin{array}{l} \log \left(\frac{\pi_{rijk}}{\pi_{sijk}}\right)={\beta}_0+{\beta}_1\left( drough{t}_{jk}\right)+{\beta}_2\left(hea{t}_{jk}\right)+{\beta}_3\left(urb{o}_{jk}\right)\\ {}+{\beta}_4\left( drough{t}_{jk}\times urb{o}_{jk}\right)+{\beta}_5\left(hea{t}_{jk}\times urb{o}_{jk}\right)+{\beta}_z\left({X}_{zn}\right)+{u}_{jk}+{v}_k\end{array} $$
(1)

We estimate two multinomial contrasts: (C1) migration to a rural destination, versus not migrating; and (C2) migration to an urban destination, versus not migrating (for technical details see supplement S3: Model fitting details). These models include the two climate measures (drought jk and heat jk ), an indicator variable for urban origin (urbo jk coded: 1 = urban, 0 = rural), and interactions between each climate measure and the urban origin indicator variable (drought jk x urbo jk ; heat jk x urbo jk ). Instead of stratifying the complete sample by urban/rural, we use interactions for increased power and parsimony of the statistical tests. The climate coefficients, β 1 and β 2 , reflect the effects of drought and heat in rural origins (urbo jk  = 0). For migration to rural destinations (C1), these coefficients refer to rural-rural migration. For migration to urban destinations (C2), these coefficients refer to rural-urban migration. Adding the climate and interaction coefficients (joint effect), we obtain the effects of drought (β 1  + β 4 ) and heat (β 2  + β 5 ) for urban origins (urbo jk  = 1). For migration to rural destinations (C1), the joint effects refer to urban-rural migration. For migration to urban destinations (C2), the joint effects refer to urban-urban migration. Significance tests are conducted for each effect, including post-estimation tests of the joint effects.

All models control for the effects (β z ) of various control variables (X zn ), operating at the individual-, municipality-, and state-levels, as indicated by the generic subscript n. Finally, the parameters u jk and v k are municipality and state random effects, which help to control for the nested data structure, differences in group size, and heteroskedastic error terms (Luke 2004).

Employing the above model and contrasts, we test for nonlinear climate effects via quadratic and cubic specifications of the climate variables, and use these results to identify possible thresholds. The Bayesian Information Criterion (BIC) (Raftery 1995; Schwarz 1978) permits evaluating the model fit and, ultimately, to select the best specifications of our climate measures. As a rule of thumb, evidence that a model with a lower BIC provides a better fit, relative to a baseline model, is weak if ΔBIC = 0–2, moderate if ΔBIC = 2–6, strong if ΔBIC = 6–10, and very strong if ΔBIC > 10 (Raftery 1995).

3 Results

We began by estimating a baseline model to account for socioeconomic and contextual characteristics that influence internal migration in Mexico (see supplement S4; Table S1). Building on this model, Table 2 shows the results of adding the two climate measures (Model 1), an indicator variable for urban origin (Model 2), and interactions between each climate measure and the indicator variable for urban origin (Model 3). Models 4 and 5 are the multinomial contrasts for migration to rural and urban destinations, respectively. The coefficients in Table 2 permit the calculation of climate effects for each of the four migration streams between rural and urban municipalities. Figure 3 provides a visual representation of the predicted probabilities.

Table 2 Linear effects of climate shocks on internal outmigration to all (rural and urban) destinations (Models 1–3), to rural destinations (Model 4), and urban destinations (Model 5) in Mexico during 2000 and 2010
Fig. 3
figure 3

Predicted probabilities of internal out-migration in response to linear changes in drought months and heat months

An increase in cumulative exposure to drought months is significant and positive associated with rural-rural migration (β 1=0.23 in Model 4, p < 0.001) and rural-urban migration (β 1=0.31 in Model 5, p < 0.001), but negatively associated with urban-urban migration (β 1 + β 4=0.31–0.47 = −0.16 in Model 5, p < 0.001) and shows no significant association with urban-rural migration (β 1 + β 4=0.23–0.25 = −0.02 in Model 4, n.s.). In contrast, an increase in cumulative exposure to heat months is significant and negatively associated with rural-rural migration (β 2= − 0.20 in Model 4, p < 0.001), rural-urban migration (β 2= − 0.11 in Model 5, p < 0.001), and urban-rural migration (β 2 + β 5= − 0.20 + 0.08 = −0.12 in Model 4, p < 0.001), but has no effect on urban-urban migration (β 2 + β 5= − 0.11 + 0.12 = 0.01 in Model 5, n.s.). In response to our first research question, climate shocks clearly influence rural-urban migration and to a lesser degree other internal migration streams in Mexico.

Odds ratios (OR = exp(β)) and predicted probabilities (P = 1/(1 + exp(−β)) can be calculated to provide a more intuitive sense of the directions and magnitudes of these associations (Singer and Willett 2003). For example, each additional drought month increases the odds of rural-urban migration by 3.6% ((exp(0.31)-1)*10), while each additional heat month decreases the odds of rural-urban migration by 1.0% ((exp(−0.11)-1)*10). As shown in Fig. 3, the corresponding predicted probabilities of rural-urban migration (blue series) increase by 0.017 over the observed range of 26 drought months (Fig. 3b) and decrease by 0.01 over the observed range of 59 heat months (Fig. 3f).

To test for nonlinearities and explore thresholds in the relationships between climate shocks and the four internal migration streams, we further estimated the effects of quadratic and cubic transformations of drought and heat months. We began by estimating models using the same transformation for both climate predictors (see supplement S5, Table S2). However, because drought and heat effects may exhibit different nonlinear patterns (Bohra-Mishra et al. 2014; Joseph et al. 2014), we estimated models that exploited all possible combinations of linear, quadratic, and cubic specifications. In Table 3, we report differences in the BIC statistics for models including each combination of specifications relative to the default linear-linear specification (top left cells in Tables 3a and b). The best fitting model is highlighted in grey.

Table 3 Difference in model fit statistics (BIC) for various combinations of linear and nonlinear specifications of drought and heat months predicting internal migration to rural (a) and urban (b) destinations in Mexico during 2000 and 2010

For migration to rural destinations (Table 3a), the linear-linear specification produces the lowest BIC statistic, although it is worth noting that the model using a quadratic specification of drought months in combination with a linear specification of heat months shows only a slightly worse fit with an increase in BIC by 0.1 points. For migration to urban destinations (Table 3b), there is clear evidence of a nonlinear relationship. The model using a linear specification for drought months and a quadratic specification for heat months produces a BIC statistic that is 22 points lower than the default linear-linear specification, indicating superior model fit. Tables of parameter estimates for the best fitting models are reported in the supplementary material (Table S3).

Plotting the predicted probabilities for the best fitting models (Fig. 4) shows similar patterns to those reported earlier (Fig. 3) with the exceptions of rural-urban and urban-urban migration in response to heat months (Fig. 4f and h). An increase in heat months initially leads to a decrease in rural-urban migration until an inflection point is reached at ~34 months, beyond which the relationship becomes increasingly positive. A similar, but less pronounced pattern holds for urban-urban migration. We subsequently performed a number of sensitivity tests, which demonstrated a high degree of robustness of the reported relationships (see supplement S6: Sensitivity tests).

Fig. 4
figure 4

Predicted probabilities of internal out-migration in response to linear and non-linear changes in drought months and heat months obtained from the best fitting models (supplement Table S3)

4 Discussion

This research constitutes the first empirical study of internal migration in response to climate shocks in Mexico, with particular focus on migration between rural and urban areas and the identification of nonlinearities and thresholds in the climate-migration relationship. For most internal migration flows, linear specifications of our two climate measures produced the best fitting models. However, we also detected important nonlinearities in the relationship between cumulative exposure to heat months and migration to urban destinations. Migration to rural destinations (e.g., rural-rural, urban-rural) is only weakly associated with climate factors. We therefore focus the following discussion on migration to urban areas, specifically rural-urban migration due its policy relevance. Our measures of cumulative exposure to climate extremes are highly correlated with alternative measures of the magnitude of climate shocks and the spell length (see supplement S6: Sensitivity tests), thereby permitting comparison with more traditional measures of temperature and precipitation.

Our detection of a positive association between cumulative exposure to drought months and rural-urban migration is in line with prior research on international climate migration documenting increases in international moves under conditions of declining rainfall and droughts (Barrios Puente et al. 2015; Hunter et al. 2013; Nawrotzki et al. 2013). Droughts can adversely impact crop production and undermine agriculture-based income generation and employment opportunities in rural areas (Feng and Oppenheimer 2012). Under conditions of adverse climatic change and associated declines in livelihood security, individuals in rural areas may choose to relocate to urban areas in search of non-agricultural employment opportunities. Although rural-rural migration is also an option, we find that rural-urban migration is a more common response to droughts, as indicated by the much steeper slope in the relationship between drought months and rural-urban (vs. rural-rural) migration. Our study therefore breaks new ground by providing the first empirical evidence that droughts differentially and disproportionately drive rural-urban internal migration in Mexico.

With respect to temperature effects, we find that an increase in heat months is likewise associated with rural-urban migration, but in a nonlinear fashion. We found evidence for a U-shaped, quadratic functional form, similar to studies of temperature and internal migration in Yemen (Joseph et al. 2014) and Indonesia (Bohra-Mishra et al. 2014). A moderate increase in heat months is associated with a decrease in rural-urban migration until ~34 months (47% of the 72 months observation period). With a further increase in heat months, this relationship becomes increasingly positive, resulting in higher out-migration under warming conditions. Although our study employs measures of cumulative heat exposure that differ from crude temperature measures or degree days used in agronomic research, this nonlinear relationship can be explained substantively by considering agricultural pathways (Nawrotzki and Bakhtsiyarava 2016; Stark and Bloom 1985). An increase in the number of months with warmer temperatures may initially lead to higher crop yields due to increased plant metabolism and longer growing seasons (Mendelsohn 2007). Under favorable climatic conditions of an extended period of warm months and sufficient rainfall, individuals may invest their efforts in agricultural production at home instead of migrating, evidenced by the initial decrease in mobility (Ward and Shively 2015). However, once the optimal temperature has been surpassed and cumulative heat exposure becomes severe, crop yields can decline dramatically (Sanchez et al. 2014). Individuals may therefore choose to migrate to urban areas to seek employment in non-agricultural occupations, resulting in an increase in the probability of migration at the upper range of the cumulative heat-months exposure spectrum. Additionally, in response to extended heat periods, economic losses may occur in the nonagricultural sector due to a decline in labor productivity (Hsiang 2010), which helps to explain the observed upward trend in urban-urban migration.

Keeping the limitations of this study in mind (see supplement S7: Limitations), our findings have important policy implications. Future projections for Mexico suggest a warming in temperatures (Romero-Lankao et al. 2014) and an increase in the frequency and severity of droughts (Wehner et al. 2011). Our results demonstrate that increases in cumulative exposure to drought and heat months at the upper ends of these distributions can substantially increase rural-urban migration and, to a lesser extent, other migration streams in Mexico. These migration patterns will be potentially consequential for changes in population size and density, infrastructure and resource access, and the capacity to deliver essential goods and services in urban areas (Adamo 2010). Policy and programmatic interventions should therefore be designed and implemented to assist migrants from rural areas in finding employment and housing in urban areas to prevent, for example, increases in unemployment and/or the growth of shantytowns and urban slums.

The implementation of livelihood-based climate adaptation programs may also help to prevent excessive migration from rural areas due to climate factors. Climate adaptation programs might include, for example, financing the construction of small-scale irrigation systems (Burney et al. 2013), distribution of climate monitoring and warning systems (Cooper et al. 2008), support for selective breeding of local crop varieties, and facilitating the exchange of crop varieties between agro-ecological zones (Mercer et al. 2012). Such programs will not only improve livelihoods and thereby prevent migration from rural areas, but, in the process, will provide incentives to maintain a sizable rural labor force to guarantee sufficient food production for the entire country.

In conclusion, our study has shown that adverse climate impacts led to increased internal migration in Mexico in 2000 and 2010. Higher levels of cumulative exposure to drought and heat months differentially drove rural-urban migration. Planners and policy makers, especially those in urban areas, should therefore prepare for increased inflows of migrants from rural areas in response to climate variability and change in future decades.