1 Introduction

Military spending is the monetary quantification of the resources allocated to national defence. It represents the costs of the inputs that go into the production of military capabilities and strength. As shown by the seminal contributions of Smith (1980, 1989), a cohort of factors determine the level of the resources allocated to the defence sector. They include external as well as domestic security considerations, economic constraints, strategic aspirations, and the ideological and political orientation of the incumbent government (inter alia: Pamp and Thurner 2017; Bove and Brauner 2016; Douch and Solomon 2016; Dunne et al. 2003, 2008).

External security determinants of such spending take the form of actual or potential threats emanating from other states thus generating the need to produce credible defence capabilities to deter them. Ceteris paribus, during periods of tension and even more so during military conflict the allocation of resources to defence increases. The reverse effect is the case when international or regional tensions recede (inter alia: Cavatorta and Smith 2017; Sandler and George 2016; Nordhaus et al. 2012; Solarin 2017).

Given that armed forces are often used to maintain internal law and order, internal security determinants such as civil war, insurgencies, civil strife often affect the levels of such spending. To this, one may also add the political inclinations of the incumbent government and hence its defence and broader policy traits (inter alia: Kauder and Potrafke 2016; Albalate et al. 2012; Bove and Nisticò 2014; Yildirim and Sezgin 2005). Clearly, the inevitable budgetary constraint that influences the level of public expenditures, also affects the annual defence budget and the resources allocated to the military (Christie 2017).

As noted by Dunne et al. (2003), case studies of individual countries or studies of groups of relatively homogeneous countries that belong to the same geopolitical region offer a suitable context within which the determinants of military spending can be examined empirically. Within the strand of this growing body of literature, this paper sets out to investigate the factors that influence the yearly budgetary allocations to defence by Latin American countries. This is a theme that has been addressed in the past for individual Latin American countries by studies such as Looney and Fredericksen (1986, 1988) for Argentina, Klein (2004) for Peru, Peláez (2007) for Uruguay, Ramos (2004) for Mexico. However, to the best of our knowledge, no previous study has probed into the determinants of defence expenditures for Latin American countries as a group of states that belong to the same geopolitical region.

A further contribution of this paper is the fact that, in the empirical investigation that follows, we use SIPRI’s new consistent database on military spending (Perlo-Freeman 2017; Perlo-Freeman and Sköns 2016). In some cases, the time-series of the dataset extend back to 1949 and hence offer the opportunity for researchers to obtain more robust and reliable inferences over a longer time horizon as recent studies have done addressing various aspects of military spending (inter alia: Dunne and Tian 2016; Kollias et al. 2017; Malizard 2016; d’Agostino et al. 2017).

To address the issue at hand, we use a panel of 12 Latin American countries: Dominican Republic, El Salvador, Guatemala, Mexico, Argentina, Bolivia, Brazil, Chile, Colombia, Ecuador, Peru and Venezuela. Quantile regression analysis for the period 1965–2015 is used to estimate the demand function for military expenditure. Data availability considerations and the inevitable compromise between T and N, dictated the choice of the 12 countries.

The paper is structured as follows. The section that follows contains a brief discussion on the determinants of military spending. Section three is a descriptive and comparative presentation of the data used for the 12 Latin American countries that make-up the sample. The empirical methodology is presented in section four and the findings from the quantile regressions estimations are presented and discussed in section five. Finally, section six concludes the paper.

2 The determinants of defence expenditures: a primer

As observed by Abdelfattah et al. (2014), if one attempts to summarise the literature that focuses on the determinants of military spending, two broad strands of approaches can be identified in the empirical studies that probe into this subject. One group of papers employs Richardsonian type arms race modelling. It focuses on the dynamics of the interaction between states that are either engaged in conflict or, have strong antagonistic relations with the potential to escalate to an armed confrontation. The USA–USSR dyad during the Cold War era is perhaps the most representative example of such a case where Richardson (1960) type models are used to explain the dynamics of defence expenditures in an arms race context. A second group of studies of the determinants of defence outlays consists of a range of models of the demand for military spending that have been developed and empirically tested drawing on different approaches to the decision-making process and the influence exerted by a cohort of strategic, security, political and economic factors (Smith 1989, 1995; Paleologou 2015).

In applied studies that estimate demand functions, military expenditures are invariably expressed in shares of GDP while political and strategic variables that can affect such public outlays are quantified through various indices (inter alia: Bove and Brauner 2016; Kauder and Potrafke 2016; Dunne et al. 2003, 2008; Albalate et al. 2012; Dunne and Perlo-Freeman 2003). For example, to allow for the possible effects that the ideological and political traits of the government exert on foreign and defence policy and hence on defence spending, indices that quantify the regime type can be introduced in the estimations.

One such index, that is also used in the quantile regressions estimations that follow, is the Composite Polity 2 index from the Polity IV project. As Papaioannou and Siourounis (2008) note, this index is widely considered to be the most comprehensive one, quantifying key facets of the regime type and the quality of democratic rule, or the absence of it. The Polity Index, takes values from − 10 for autocracies to + 10 for full democracies. Intuitively, one would expect less democratic governments to be more inclined to spend more on the armed forces since they can also be used for internal security purposes quashing opposition and dissident political and social movements. Indeed, as noted by Kollias et al. (2017), a particular feature of Latin American countries is the role that the armed forces have historically played in domestic politics (inter alia: Catoggio 2011; Frantz and Geddes 2016; Biglaiser 2002).

The effect exerted on the demand for defence spending by the geopolitical circumstances of the region, can be captured via the military strength of other neighbouring states as this is reflected in their respective military expenditures. If tensions and frictions are a characteristic of the area, then, ceteris paribus, one would expect that an upward pressure will be the effect on the defence budgets of the countries that make up the region (Markowski et al. 2017). The reverse is the case during periods when tensions recede. The external environment that affects the levels of resources allocated to defence is termed by Rosh (1988) as a country’s Security Web. The Web includes the neighbouring states and other international powers that can potentially affect national security and hence defence spending while dummy variables can capture events such an armed confrontation and/or an insurgency. Invariably, national defence is cited as the typical example of a public good. Thus, population is also included in the estimated models to allow for possible public good effects.

Variables encapsulating the openness of the economy are often included in the empirical estimations (inter alia: Nikolaidou 2008; Dunne et al. 2003). The sum of exports and imports of goods and services measured as a share of GDP is the variable most preferred to quantify openness. The effect of openness on military spending is ambiguous. For example, Rosh (1988) postulates that countries highly integrated in the global economy probably find it easier to access arms markets and finance for arms procurement. On the other hand, however, it has been shown that international trade has a peace promoting influence both between belligerent countries as well as within countries (Seitz et al. 2015; Huang and Throsby 2011; Kollias and Paleologou 2017). The openness of the economy and increased access and participation of countries in international trade is a factor that reduces the probability of conflict (Huang and Throsby 2011) whereas the benefits from increased peacefulness also take the form of reductions in defence spending with the concomitant welfare effects (Seitz et al. 2015).

Finally, in the case of the Latin American sample of countries examined here, a further driver of military spending could be the fight against organized crime such as drug cartels. As noted in a number of studies (Blanco and Ruiz 2013; Soares and Naritomi 2010; Di Tella et al. 2010), Latin America is a region with fairly intense organized crime activity and the armed forces are often used in thwarting organized criminal networks.

3 The data: a descriptive and comparative presentation

We start the descriptive presentation of the data by taking a bird’s eye view of how the entire sample of the 12 Latin American countries has fared in terms of the defence burden (military spending as a share of GDP) during the period in question, i.e., 1965–2015.Footnote 1 As can be seen in Fig. 1, two distinct trends are identifiable. A generally upward one up to the mid-1980s and then a steady downward trend that has leveled off in recent years around the 1.5% level in terms of defence burden. This broad picture is roughly similar with the trend of the average defence burden globally (Arvanitidis and Kollias 2016). In general, the Latin American countries of the sample seem to be converging towards lower levels of defence burdens albeit strictly speaking such an inference requires formal analysis that does not fall within the scope of this paper.

Fig. 1
figure 1

Average defence burden

A closer, country-level inspection reveals noteworthy differences between the 12 countries as can be observed from Table 1. In terms of military spending as a share of GDP, Chile emerges as the country with the highest average (4%) during the period examined here and Mexico with the lowest (0.6%). Chile along with Peru are the two countries with the highest maximum value: 8.9% in 1982 and 8.2% in 1977, respectively. As discussed in the previous section, a number of factors both internal and external influence such spending. Apart from the omnipresent budgetary constraint, determinants of military expenditures include intrastate and interstate conflict, the ideological and political traits of the incumbent political party.

Table 1 The defence burden (%)

Latin American countries have experience significant levels of often protracted conflict, mostly domestic in the form of insurgencies and civil war. Limiting the discussion to the 12 countries that make up the sample, a brief historical summary of both interstate and intrastate conflict is shown in Table 2. Peru and Ecuador are two of the 12 countries in the sample that have engaged in armed confrontation with each other on two occasions during the period examined here: in 1981 and 1995. Argentina on the other hand is the only one that had an armed confrontation with a state outside Latin America: the UK in 1982 (Table 2). Intrastate is the dominant form of conflict that has afflicted the 12 Latin American countries of the sample. Peru, Colombia, Guatemala, El Salvador are countries that have experienced protracted internal conflict.

Table 2 Conflict and military rule

For example, in the case of Peru the second highest average defence burden (Table 1) can partially be attributed to the long-running territorial disputes with Ecuador as well as domestic conflict associated with terrorist activity by Sendero Luminoso and the Tupac Amaru Revolutionary Movement (Klein 2004). In a similar vein, insurgency and the concomitant armed confrontation between government forces and paramilitaries such as FARC and ELN can be cited as possible explanatory factors of the comparatively higher defence burden of Colombia (Vargas 2012).

As noted by Kollias et al. (2017), a particular feature of Latin American countries is the role that the armed forces have historically played in the domestic political scene of many Latin American countries. During the period in question, Argentina, Bolivia, Brazil, Chile and Peru are five countries out of the 12 included in the sample that have known overt military rule (Table 2). Kollias et al. (2017) observe that the overt or indirect involvement of the military in the domestic political life of almost all countries was for decades an endemic characteristic of Latin America and its legacy has left an indelible imprint in the region’s history. However, as many have pointed out, the dominant presence and central role of the military in Latin American politics, either in the form of direct military rule or military coups, rapidly withered away towards the late 1980s (inter alia: Norden 1996; Dix 1994).

The authoritarian regime past of the region is reflected in the average values of Polity 2 IndexFootnote 2 mentioned in the previous section. As can be seen in Fig. 2, on average the Polity 2 index score of the 12 countries in the sample was negative up to the end of the 1970s. Since then, a fairly rapid improvement is recorded as the 12 countries progressed towards more democratic political regimes during the 1980s. Colombia is the country that scores the best average in the index’s scale of − 10 to + 10 during the period under examination here, followed by Ecuador and Dominican Republic (Table 3). Overall, with the exception of Venezuela, the sample countries exhibit a steady pace towards more democratic rule. As already mentioned, the Polity 2 index will be introduced in the empirical estimations.

Fig. 2
figure 2

Average Polity index score

Table 3 Polity index scores

As the case is for all types of public expenditures, military spending is also influenced by economic factors. In the relevant literature on the demand for military expenditure, the growth rate of the economy is invariably included in empirical studies while the openness of the economy is captured by the share of exports and imports to GDP (inter alia: Pamp and Thurner 2017; Bove and Brauner 2016; Abdelfattah et al. 2014). Table 4 offers a comparative summary in terms of these two macroeconomic variables for the sample of the 12 countries. Data on the growth rate of the economy and the indicator are drawn from the World Bank’s World Development Indicators database.Footnote 3

Table 4 Growth rates and openness

In terms of average growth performance during the period examined here, the Dominican Republic emerges as the country with the highest annual average of 5.2%, followed by Brazil, Chile and Colombia with 4.3% average annual growth rate each. El Salvador, Argentina and Venezuela are the countries with the lowest annual averages (2.5%, 2.7%, and 2.7%, respectively). In terms of the economic openness indicator El Salvador and the Dominican Republic lead the group. As a percentage of GDP, the sum of exports and imports during the period under examination averaged 61% and 60.4%, respectively. Brazil and Argentina are the two countries with the lowest annual averages in terms of this indicator: 19% and 20.4% respectively.

4 The methodology: an epigrammatic presentation

On the basis of the forgone discussion on the demand for military expenditure modelling issues and in line with previous studies such as Dunne et al. (2003, 2008), Kauder and Potrafke (2016), Albalate et al. (2012) we specify the linear regression model:

$${\text{MGDP}}_{i} = \beta_{0} + \beta_{1} {\text{GDP}} + \beta_{2} {\text{POP}} + \beta_{3} {\text{TRD}} + \beta_{4} {\text{POLITY}} + \beta_{5} {\text{INTER}} + \beta_{6} {\text{INTRA}} + \beta_{7} {\text{MN}} + \varepsilon_{i}$$
(1)

In specification (1), the principal model to be estimated, the response variable MGDP is the military spending expressed as a share of GDP; GDP is the growth rate of the gross domestic product; POP is the population variableFootnote 4; TRD is the economy openness variable, i.e., the sum of exports and imports as a share of GDP; POLITY is the index that quantifies the regime type taking values in the − 10, + 10 scale; INTER and INTRA are dummies for interstate and intrastate conflict, respectively (Table 2); MN is the Security Web variable that is the average military spending of the neighbouring countries with common borders. With the exception of POLITY, INTER and INTRA, all variables are log transformed.

Finally, as already mentioned in the previous section, it was decided to include a further explanatory variable in the econometric analysis that follows. As Soares and Naritomi (2010) observe, Latin America has been traditionally seen as a particularly violent region of the world in terms of criminal activity. Often, the armed forces are used in the fight against organized crime in general and drug producing syndicates in particular. Indeed, Latin America has one of the highest crime rates in the world, and deaths due to violence is a much more common occurrence in Latin America than in any other region (Soares and Naritomi 2010; Blanco and Ruiz 2013; Di Tella et al. 2010). Hence, the principal model (1) was augmented with the addition of a Crime RateFootnote 5 variableFootnote 6:

$${\text{MGDP}}_{i} = \beta_{0} + \beta_{1} {\text{GDP}} + \beta_{2} {\text{POP}} + \beta_{3} {\text{TRD}} + \beta_{4} {\text{POLITY}} + \beta_{5} {\text{INTER}} + \beta_{6} {\text{INTRA}} + \beta_{7} {\text{MN}} + \beta_{8} {\text{Crime}} \,{\text{Rate}} + \varepsilon_{i}$$
(2)

In the empirical investigation that follows we apply both parametric and nonparametric analysis to enhance the robustness of our empirical findings and account for non-linear effects. Therefore, alongside with the parametric estimation we apply the quantile regression and then the generalized additive mixed models (GAMMs). Aiming at a more comprehensive picture of all probable relationships between dependent and independent variables, Koenker and Basset (1978) proposed the quantile regression estimation methodology. Unlike the ordinary least squares methodology (OLS) which only captures the conditional mean, this technique generates estimates for every conditional quantile across the distribution of an outcome variable. Additionally, contrary to OLS models, quantile regressions are semiparametric in a manner that the assumptions of: (i) homoscedasticity, (ii) parametric distribution of the disturbance term and (iii) absence of outliers may be relaxed (Johnston and DiNardo 1997). The computational representation of the conditional quantile function is as follows:

$$Q_{q} \left( {y_{i} \left| {x_{i} } \right.} \right) = \alpha \left( q \right) + x_{i}^{\prime } \beta \left( q \right)\,{\text{with}}\,q \in \left( {0, 1} \right)$$
(3)

in which yi is the outcome variable of observation i, x i is the set of regressors corresponding to the discrete observation i, q denotes the qth quantile (which is defined as the value of y that divides the sample in two parts: q below and 1 − q above), and the subscript i = 1, 2, 3, …,κ is a manifestation of individual observations. Qq(yixi) represents the qth conditional quantile of yi given xi. Moreover, quantile regressions categorize the data sample into high-down to low quantiles of the outcome variable in a form that differs from simple categorization. In a quantile regression, on the other hand, the classification of (y) is conditional on the regressor (x) (Koenker 2004). In addition, endogeneity and the possibility for reverse causation in a quantile regression can be addressed with nonparametric instrumental variables quantile regression estimators (Chernozhukov et al. 2007; Horowitz and Lee 2007). In light of the above, the following quantile regression equation was used to test the main hypotheses in this study, we set \(\left( {q \in \left\{ {0.0 5,\,0. 1, \,0. 2 5,\,0. 5,\,0. 7 5,\,0. 9,\,0. 9 5} \right\}} \right)\) so that the MGDP equation obtains the following form:

$$\begin{aligned} Q_{{{\text{MGDP}}_{i} }} \left( q \right) & = \beta_{0} \left( q \right) + \beta_{1} \left( q \right){\text{GDP}} + \beta_{2} \left( q \right){\text{POP}} + \beta_{3} \left( q \right){\text{TRD}} + \beta_{4} \left( q \right){\text{POLITY}} \\ & \quad + \beta_{5} \left( q \right){\text{INTER}} + \beta_{6} \left( q \right){\text{INTRA}} + \beta_{7} \left( q \right){\text{MN}} + \varepsilon_{i} \\ \end{aligned}$$
(4)

and

$$\begin{aligned} Q_{{{\text{MGDP}}_{i} }} \left( q \right) & = \beta_{0} \left( q \right) + \beta_{1} \left( q \right){\text{GDP}} + \beta_{2} \left( q \right){\text{POP}} + \beta_{3} \left( q \right){\text{TRD}} + \beta_{4} \left( q \right){\text{POLITY}} \\ & \quad + \beta_{5} \left( q \right){\text{INTER}} + \beta_{6} \left( q \right){\text{INTRA}} + \beta_{7} \left( q \right){\text{MN}} + \beta_{8} \left( q \right){\text{Crime Rate}} + \varepsilon_{i} \\ \end{aligned}$$
(5)

As a further step, we also use generalized additive mixed models (henceforth GAMMs) to determine patterns between the covariates and MGDP. The GAMMs extend the generalized linear mixed model with a large array of tools for modelling non-linear dependencies among a response variable and one or more numeric predictors (Baayen et al. 2016). The GAMMs offer a flexible mode to build more distribution models because they fit non-linear relationships and account for correlation framework in clustered sample (Wood 2006a, b). According to Wood (2000, 2004, 2006a, b) the GAMMs can be expressed as:

$$y_{i} = \varvec{\theta X}_{i} + w_{1i} f_{1} \left( {x_{1i} } \right) + w_{2i} f_{2} \left( {x_{2i} } \right) + w_{3i} f_{3} \left( {x_{3i} } \right) + \cdots + \varvec{bZ}_{i} + \varepsilon_{i} .$$
(6)

yi indicates the dependent variable, whereas, \(\varvec{X}_{i}\) are the parametric component. In addition the wjis and the fjs are the smooth functions of the estimated covariates. In particular, wjis was denoted employing the tensor product smooth and fjs was denoted employing cubic regression spline (Wood 2003). Moreover, \(\varvec{Z}_{i}\) indicates a row of a random effects model matrix and ɛi is the residual error vector. As has been described by Wood (2006a, b) we apply tensor product smoothers of all the variables estimated in our model. Wood et al. (2013) suggest that the tensor smoother product is appropriate when the variables used are in different units and the relative scaling is arbitrary as the case is here given the mix of variables introduced in the estimations. The aim of such an exercise is to compare the deviance of the model fitting the (continuous) variables non-parametrically with that of the model fitting the terms linearly.

5 The findings

We turn now to the presentation and discussion of the results yielded from estimating (1) and (2). Starting from the principal model, Table 5 reports the OLS estimates for the effect of the above covariates on defence spending expressed as a share of GDP (MGDP) as well as the findings for the various quantiles. By and large, the resulting OLS coefficients conform to the theoretically predicted directions. The defence burden seems to be affected in a statistically significant manner by the economy (GDP), population (POP), the Security Web (MN), intrastate conflict (INTRA) and the regime type (POLITY). Noteworthy is the statistical insignificance of the interstate dummy (INTER) vis-à-vis the positive and statistical effect exerted by intrastate conflict (INTRA).

Table 5 OLS and quantile regression results for the principal model (1)

In view of the fact that domestic conflict in the form of insurgencies and civil war is the most protracted type of conflict that has plagued the countries in the sample this is not a surprising finding given its consistency over all quantiles as will be discussed further down. A strong, positive effect is also exerted by the Security Web coefficient a finding also fairly stable through all quantiles. A negative association is established between the defence burden (MGDP) and increases in income (GDP) although this does not necessarily mean a decline in the level of military spending but simple a negative association with its share in GDP. The negative sign of population (POP) may be indicating that larger population generates greater demand for civilian consumption than it does for defence needs.

Additionally, we must account for the unobserved heterogeneity across countries. A typical way to do this, is to implement fixed (FE) and random effects (RE) model formulations with the choice depending on the assumption adopted about the correlation among the cross-section specific error-component and the explanatory variables. To decide between FE or RE we applied a Hausman test where the null hypothesis is that the preferred model is RE versus the alternative the FE.Footnote 7 It basically tests whether the unique errors are correlated with the regressors with the null hypothesis being that they are not. On the basis of the Hausman test, the RE model was rejected (p value < 0.05) in favor of the FE model. The FE results are reported in Table 5, column 2. By and large, the findings accord with the results of the OLS estimation.

As already noted previously, a further step in the empirical investigation is to employ the semiparametric framework of quantile regression to test the robustness of the findings that the linear regression estimation yielded. If the explanatory power of the covariates varies with the observed magnitude of the response variable, interesting insights may be gained into the relationships under investigation. Table 5 summarizes the findings, with the supporting panels reporting the effect of the predictors at the 5th, 10th, 25th, 50th, 75th, 90th and 95th quantile of the MGDP distribution. Furthermore, Fig. 3 provides a graphical representation of the contribution of each predictor with the rest variables held constant. The vertical axis indicates the coefficient magnitude and the horizontal axis comprises the quantile scale. The black line starting from the origin joins the point estimates of the regression at each quantile. The red dashed line, running parallel to the horizontal axis, represents the OLS coefficient, hence, it remains constant at all levels. The variety of patterns which the former line adopts compared to the latter is indicative of the information foregone when we simply rely on mean tendency estimates from linear regression models.

Fig. 3
figure 3

Quantile regression for the principal model (1). The red dotted line represents the OLS coefficient; the black solid line indicates zero coefficient

The quantile estimation results justify the methodological choice not to solely rely on findings that stem from estimating only the conditional mean of the reaction variable. We cannot use criteria such as the AIC to select the model type. The quantile regression is recommended for analysis of data that are heterogeneous such that the tails and the central location of the conditional distributions vary differently with the covariates. The quantile regression provides a comprehensive view of the relationships between independent and dependent variables (i.e., not just centrally but also in the tails of the conditional distribution of the dependent variable. Koenker 2004).

As aforementioned, the effect of intrastate conflict (INTRA) and that of the Security Web (MN) remain positive and statistically significant throughout all quantiles albeit with a varying magnitude in the relevant coefficients (Table 5 and Fig. 3, respectively). On the other hand, interstate conflict (INTER) is significant until the 10th quantile and then becomes insignificant. Noteworthy is also the effect exerted by the Polity index (POLITY) introduced in the estimations to capture the regime effects on defence allocations. It appears flat for more than half of the MGDP distribution and steep for the rest. Also interesting to observe is the differences between the median and the tails in the case of GDP, which is significant in tails (5th, 10th, 90th and 95th quantile) and insignificant in median (25th, 50th and 75th quantile).

In Table 6 the findings of the model where the crime rate is included in the estimators are shown. Given the sample size and the time period for which the model is estimatedFootnote 8 the results are not directly comparable to those of Table 5. Furthermore, since the period of the estimation is rather short (2003–15) no robust statistical inferences can be drawn. The crime variable exerts a statistically significant effect on defence spending, but the negative signed coefficient is a counterintuitive finding.Footnote 9 Given that military spending is predominantly influenced by external security considerations or armed insurgencies, a plausible explanation for the negative sign of the crime coefficient is that it may be reflecting a process of a budgetary trade-off between defence spending and public order spending. Crime thwarting policies are primarily if not exclusively the mission of security forces such as the police that are financed through public order expenditures. Clearly, this is a tentative explanation that requires further empirical investigation.

Table 6 OLS and quantile regression results for model (2)

Similar is the case with the intrastate (INTRA) coefficient in model (2) while noteworthy is the statistical insignificance of the interstate dummy (INTER). The findings for both interstate and intrastate conflict are not particularly surprising given the period for which model (2) is estimated. It is a period in which there is not interstate conflict in this sub-sample of countries and intrastate conflict is present only in Peru and Colombia (Shining Path and FARC & ELN respectively), but appreciable less intense compared to previous periods. The GDP coefficient in the case of the FE results is negative which probably picks up the effect of declining defence burdens vis-à-vis the growth performance of the economies. Just as in the case of the results for model (1), a weakly positive coefficient is the case for the security web variable (MN).

As a final step in the empirical analysis of the determinants of military expenditure in the Latin American countries under investigation. GAMMs is recommended when a model contains non-linear effects since the interpretation of the marginal impact of a single variable (the partial derivative) does not depend on the values of the other variables in the model. Hence, by simply looking at the output of the model, we can make simple statements about the effects of the predictive variables that make sense to a nontechnical person. We can control the smoothness of the predictor functions to prevent overfitting and we don’t have to know up front what type of functions we will need (Wood 2000, 2004, 2006a, b).

The upper part of Tables 7 and 8 shows the generalized regression results which, as it can be observed, coincide with the OLS estimates. The lower part reports the pairs of F-statistics and p values along with the equivalent degrees of freedom (EDF) for each of the smooths. Thus and given this evidence, we reject the null hypothesis of a linear covariance between MGDP and its principal covariates. Moreover, the results confirm the non-linear behaviour (at the 1% level). For some variables, the difference could be negligible, but for others, they are substantial, and non-linear. Notably, the positive estimate for crime, which indicate that the GAMMs methodology is able to overcome the negative sign from the OLS results.

Table 7 Additive regression effect of key covariates on MGDP for the principal model (1)
Table 8 Additive regression effect of key covariates on MGDP for the crime rate model

Visual inspection in Fig. 4 confirms the non-linear effects.Footnote 10 With MGDP on the vertical axis and the continuous predictors on the horizontal axis, the solid black curve passes through the mean values of the nonparametric regression coefficients. Key to the assessment of the effects is the surrounding gray area and the black marking density on the horizontal axis. The former represents a 95% confidence band. The black marking density is determined by the frequency of observations across the distribution of each of the predictors. Accordingly, our sample lends strong support to the estimated relationships. MGDP increases with population and MN, whereas it decreases with GDP and TRD; the thicker the marking density, the more discernible these effects become. In addition, POLITY an horizontal sigmoid type behaviour (decrease–increase–decrease), which is in line with the quantile results reported earlier. However, this is a joint outcome of low coefficient magnitudes and the logarithmic transformation of the variable. Overall, the maximum black marking density (the frequency of observations) in each graph coincides with the minimum surface of the gray area. Furthermore, the evaluated functions disclose the presence of non-linear effect among the MGDP and the selected regressors. Overall, it appears that the robustness of our findings is fairly strong thus, compared to a fully parametric framework, it allows for more reliable insights and inferences on the factors that drive the demand for military spending.

Fig. 4
figure 4

Nonparametric additive regression for the principal model

6 Concluding remarks

Several domestic and external factors affect the allocation of resources to defence. In particular, the relevant literature has identified a cohort of strategic, economic and political factors that drive defence expenditures. This paper set out to examine the determinants of the demand for military spending in the case of 12 Latin American countries: Dominican Republic, El Salvador, Guatemala, Mexico, Argentina, Bolivia, Brazil, Chile, Colombia, Ecuador, Peru and Venezuela. Using SIPRI’s new extended data series the issue was examined for the period 1965–2015 using quantile regression that allows for better insights into the determinants of defence spending.

The results indicate that such public outlays have been driven by both domestic and external factors. The former include the economy as well as the political characteristics of the government as these are quantified by the Polity index of democracy. Intrastate state conflict that has afflicted many Latin American countries also emerged as a strong determinant along with the military spending by neighbouring countries with common borders that constitute the external security environment within which a country operates. Regarding the non-linear results, the quantile pattern findings for the principal model imply that the effect of intrastate conflict and that of the Security Web remain positive and statistically significant throughout all quantiles. On the other hand, intestate conflict is significant up to the 10th quantile and then its significance withers away. Notable is the non-linear effect exerted by the Polity index. In broad terms, it appears that allowing for non-linear effects of the various determinants of defence expenditures offers better insights on the complex relationship that drives resource allocations to the production of national defence.