1 Introduction

The public sector plays a very influential role in labour markets with its employees representing between 15 and 20% of total salaried employment in many advanced economies. In particular, jobs in the public and private sectors differ in both the nature of the productive tasks they perform (since the public sector is the only provider of certain goods and services except in education and health) and in their working conditions (see, e.g. Garibaldi and Gomes 2020). Accordingly, not only the public sector may enjoy some monopolistic rents but it also becomes a bilateral monopsony in a segment of the labour market that is marked by a strong union establishment and has its own wage-setting mechanisms and recruitment selection procedures.

As a result of these features, public sector employees exhibit specific characteristics—particularly in relation to gender, age or educational attainments—which differ from those present in the private sector. These differences translate into wage gaps which experience substantial variation across workers and also lead to disparate wage distributions in each sector. For example, a stylized fact in most developed countries is the greater compression of public sector wages across different levels of education: less-skilled public employees' pay is higher than in the private sector, while the opposite holds among high-skilled employees.

Spain is no exception to these empirical regularities, as evidenced in an emerging literature on the public–private wage gap that began in the late 80 s but has become somewhat outdated.Footnote 1 Indeed, to our knowledge, the latest available research on this wage gap (see Hospido and Moral-Benito 2016) dates back to the years 2005–2012, that is, a period preceding the end of the sovereign debt crisis and the subsequent recovery of the Spanish economy after 2014. To help fill this gap, our goal in this paper is to update the evidence to 2018.Footnote 2 In effect, while private employment soared during the early 2000s and then plummeted since 2008, public employment and wages experienced large swings, growing until 2011 to then decline until 2013. These fluctuations resulted from the initial stimulus plans (up to 2011) implemented by the Spanish government to fight the impact effects of the Great Recession and the subsequent fiscal consolidation plans (up to 2013) agreed with European authorities (see, e.g. Christofides and Michael 2020). However, once the recovery phase started in 2014, employment in both sectors picked up though at a faster rate in the private sector. Hence, revisiting the empirical evidence on the public–private wage differential beyond the early 2010s helps get a broader picture of how it has evolved in circumstances quite different from those prevailing in the existing literature.

Before summarising our main results, it is worth discussing the choice of the data source that will be used in this paper. To overcome the limitations arising from the scarcity of high-quality data on labour earnings and the use of relatively small samples in the early studies of the 80 s and 90 s, two major advances in data collection have brought substantial research progress with the turn of the century. On the one hand, there is the availability of rich longitudinal information since 2005 in the Continuous Sample of Working Histories (Muestra Contínua de Vidas Laborales–MCVL in short). By linking a large sample of administrative records of the social security to income tax data, the MCVL provides information on annual wages in both sectors, together with several basic job characteristics for samples exceeding 1 million individuals each year. This database, used by Hospido and Moral-Benito (2016) among others, includes information regarding those public sector employees who are affiliated to the General Regime of the Spanish pension system. On the other hand, there have been substantial data-collection improvements in the new waves of the Wage Structure Survey (Encuesta de Estructura Salarial—EES) which, by being harmonised with other similar wage surveys in Europe, has traditionally been considered the most detailed source of information on labour earnings in Spain. Carried out on a four-year basis through a two-stage stratified sampling design at the establishment-worker levels, it collects information on monthly wages and hours of work of employees in the private and public sectors, with samples sizes around 200,000 per wave. The latter are civil servants (personal funcionarial) and other types of employees (personal laboral) in Industry, Construction and Services who, as in the MCVL, are affiliated to the General Regime of the Social Security system.

When comparing both data sources, several pros and cons emerge. The main advantage of EES is that it provides more accurate information regarding employees' education and occupation, whose codifications in MCVL are fairly outdated. Moreover, unlike the MCVL, the EES includes data for the two regions with specific tax regulations (Navarra and País Vasco). Just as relevant is the fact that the latter collects detailed information on type of collective bargaining and hours of work—which are not recorded in MCVL.Footnote 3 Accordingly, we use the three more recent waves of the quadrennial EES (2010, 2014 and 2018) as our database in the rest of the paper, though this choice is not free of problems. In effect, the main disadvantage of using EES is that, as with the MCVL, information on household and family background is very scarce. Hence, by only focusing on employees, it becomes difficult to account for selection into either sector, implying that results will only be representative for individuals in work. However, the EES provides information on maternity and paternity leaves that will allow us to somewhat identify selection corrections for each sector and by gender. Admittedly, this problem can be alleviated by using the MCVL since its longitudinal design allows to control for individual effects affecting sorting and wages in standard or quantile mincerian panel regression models. In addition, it has been argued that survey data could be a matter of concern, again due to non-classical measurement error, though the two-stage stratified design of the EES is likely to reduce this problem (see Casado and Simón 2015). At any rate, we think that, according to the reasons explained above, the EES database used in the sequel incorporates some advantages over previous attempts to measure public–private hourly wage gaps in Spain.

Summing up, the questions we try to answer in the sequel are basically whether the recovery phase since 2014 and the effects of the labour market reforms implemented in 2010 and 2012 have brought relevant changes in the regularities uncovered during the Great Recession. Our main findings can be summarised as follows. We document: (i) a wage gap of about 6 points on average in favour of the public sector which is not explained by differences in productivity, (ii) wage compression, with a positive (resp. negative) gap for public employees with less (resp. higher) qualifications and (iii) a wage premium for less-skilled women working in the public sector. In general, these results are qualitatively similar to those reported in the literature but there is some divergence in quantitative terms on which we try to shed light through some theoretical interpretations.

The rest of the paper is organised as follows. Section 2 reviews the existing literature on the differences in employment and wages between both sectors. Section 3 summarises the main descriptive statistics of the EES dataset used in the empirical sections. Section 4 presents the empirical strategy. Section 5 reports the main results. Sections 6 suggests a rationalisation of the main findings. Finally, Sect. 6 concludes. An Appendix gathers several additional Tables and results.

2 Related literature

Public and private sector wages may diverge for multiple reasons, among which differences in workers' socioeconomic characteristics, non-competitive wage setting, employers' objectives and union strength stand out. In effect, factors such as education, experience, gender, age or wage-bargaining regulations differ between the two sectors, thus generating a high degree of heterogeneity in their wage gap.

As already pointed out, a stylized fact that has been studied extensively in the literature is the compression of public wages along the wage and the skill/qualification distributions. As regards jobs held by less-skilled individuals, the public–private wage gap is found to be positive in most countries. On the contrary, a negative gap is observed among workers with higher education. In early contributions to this topic, Borjas (1980, 1984) found a growing compression of public wages in the US from the 1970s onwards, as well as a persistent change in worker flows between sectors. Both findings would explain the increasing difficulty of the US public sector to attract and retain most-qualified workers. As regards the European Union (EU) member states, Campos and Centeno (2012) also conclude that the public–private wage gap narrows along the distribution of skills before the adoption of the euro. Using a fixed-effects approach with longitudinal data from the European Community Household Panel (ECHP) survey, they claim that the public sector attracts the best-qualified individuals for jobs at the bottom of the wage distribution (over-education), but fails to retain the most skilled workers in the best-paying jobs. Along the same lines, Giordano et al. (2011) use the European Union Statistics on Income and Living Conditions (EU-SILC) microdata to argue that the public–private wage gap is greater in Spain, Italy, Greece, Portugal or Ireland than in central European countries. Likewise, the standard Oaxaca-Blinder (OB) decompositions used by Castro et al. (2013), Christofides and Michael (2013) and Depalo et al. (2015), among many others, evidence that the unexplained part of the public–private wage gap is negative in some Scandinavian countries while it is positive in southern Europe.

Other salient features reported at length in the previous literature are the high representation of high-educated workers and women in the public sector. For example, regarding the first fact, Garibaldi et al. (2021) argue that public employment is skewed towards high-skilled labour because governments seek to get better inputs for the production of public goods and services, as well as hire highly qualified staff since they are relatively less costly when public wages are compressed along the skills distribution. As for the second fact, Garibaldi and Gomes (2020) document that the fraction of women in the public sector of 20 OECD countries greatly exceeds their corresponding share in total employment. Yet, only a few studies try to rationalise this fact. Among them, De la Rica et al. (2007) argue that unemployed or inactive women are much more likely to seek public sector jobs than men to avoid statistical discrimination in the private sector, due to their greater job instability, especially when they have small children or are in fertility age. Similarly, by means of a calibrated search and matching model, Gomes and Kuehn (2019) claim that female overrepresentation in the public sector is not due to labour demand forces but rather to a greater supply of women who have stronger preferences for working in the public sector than men. Thus, these studies conclude that women value more the compensation offered by the public sector in the form of reconciling personal and professional lives, in addition to providing more protection against some potential discrimination.

Note that the existence of a positive public–private wage gap goes against the theory of compensating differentials, which predicts that, ceteris paribus, jobs with higher risk or fewer comforts should be compensated with higher pay. The available evidence has shown that public jobs are more stable than jobs in the private sector, where the risk of dismissal is higher. Chassamboulli et al (2020) and Fontaine et al. (2020) analyse labour market flows between the public and private sectors in France, Spain, the UK and the USA, finding lower turnover and job finding rates in the public sector and a higher separation rate in the private sector. Based on similar findings, Gomes (2016, 2018) suggests that, due to greater job security in the public sector and its lower rate of job destruction, the wage differential should be approximately 2.5% higher in the private sector.

In addition, there is a line of research on the role that public wages play as a decision variable to maximise political support. For example, Alesina et al. (1999) argue that governments may ignore efficiency criteria for determining public wages and employment and instead often choose to divert them towards influential minorities and political groups.

Finally, regarding the specific literature focusing on the public–private wage gap in Spain, there are several studies related to ours. For example, among the more recent ones, García-Pérez and Jimeno (2007) use the panel dimension of the ECHP survey from 1995 to 2001 to estimate characteristics-adjusted wage gaps across Spanish regions. They find that these gaps are mostly explained by differences in returns rather than by differences in characteristics or selection effects, and that they are higher in less productive regions. However, their samples are very small and the definition of public employees in the ECHP in less accurate than in other data sources, like EES or MCVL. Similar shortcomings affect the EU-SILC dataset used by Giordano et al. (2011) who find a slightly larger unexplained component of the gap among women than among men. Undoubtedly, the closest paper to ours is the above-mentioned study by Hospido and Moral-Benito (2016). They use richer longitudinal data from the MCVL (2005–2012) to show that: (i) a raw gap of 35 percentage points (pp.) in favour of public sector employees is reduced to 10 pp. once observed characteristics and endogenous selection are accounted for, (ii) the public wage premium is highly procyclical reaching a peak in 2009 and declining afterwards and (iii) workers at the top of the wage distribution select negatively into the public sector while the opposite holds at the bottom of the wage distribution. Our results drawn from the EES differ from theirs in that selection seems to be less important, except for less-educated women, possibly due to the richer set of controls available in that dataset. Moreover, the magnitude of the raw public (hourly) wage premium is lower than the one they report, perhaps reflecting measurement errors from their working hours imputation. Yet, in line with their results, we find that the wage premium is procyclical, increasing after the beginning of the recovery period around 2014. Lastly, we provide some theoretical underpinnings for our findings in terms of three important factors: (i) the bilateral monopsonistic position of the public sector, (ii) the objectives of public sector unions and (iii) the potential statistical discrimination effects suffered by less-educated women in the private sector.

3 Data

As discussed above, our data source is the quadrennial EES survey that we believe provides more reliable information than other alternative databases in terms of wages, hours of work and a wide range of demographics and firms' characteristics. We use data on public and private employees from the three last available waves of the EES (2010, 2014 and 2018) where military personnel and individuals under 19 years of age and over 59 have been excluded to homogenise the sample in both sectors. In particular, the 2010 wave allows us to compare our findings with those reported by Hospido and Moral-Benito (2016) for the MCVL (2005–2012) given that this year overlaps in both samples. Descriptive statistics for both sectors are presented in Table 8 (public sector) of the Appendix.

In line with other countries, the first relevant feature is the overrepresentation of women in the Spanish public sector: they account on average for around 55% of employees against 41% in the private sector. Another salient difference is the greater fraction of high-skilled individuals in the public sector (30% have a college or even higher degree vs. 17% in the private sector), which also translates into a higher weight of upper occupations (A0 to D0): 42% vs. 32%.

Further differential patterns are related to age and job tenure: on average 34% of public employees are above 50 years of age vs. 20% in the private sector, while tenure is about 5 years longer. Both figures point to a much higher job stability in the public sector which may be related to the greater proportion of women enjoying maternity leaves in that sector (despite being older on average). As regards labour contract types, temporary contracts are higher in the public sector (31.7% vs. 18.6%) while the opposite holds for part-time work (9.0% vs. 17%).Footnote 4 In any case, outflows to unemployment and inactivity are much lower in the public than in the private sector (see Fontaine et al. 2020).

Figure 1 presents the raw public–private wage gap measured in per cent of private sector wages for all, female and male individuals in each of the EES waves. For comparison, the corresponding raw gaps reported by Hospido and Moral-Benito (2016) for the selected years 2005, 2009, 2010 and 2012 are also included. As can be seen from their figures, the public–private wage gap increases from 2005 to 2009, reaching a peak of 36% in that year, to then fall to 22% by 2012. Our figures in turn show a steady rise from 2010 until 2018, confirming the procyclicality of the wage premium. Interestingly, the overall raw gap with the MCVL is 11.7 pp. higher (= 27.2–15.5) in the common year of both samples, possibly due to measurement errors in the MCVL since working hours are imputed from other databases. At any rate, the results by gender agree in both studies: women in the public sector enjoy much higher wage premia than men.

Fig. 1
figure 1

Raw public–private wage gaps: EES vs. MCVL (whole sample and by gender)

4 Empirical strategy

The dependent variable in all subsequent regressions is the (logged) hourly wage of individual \(i\), \(\mathrm{ln}\left({w}_{i}\right)\), computed as the ratio between the monthly wage (defined as the sum the base salary, monthly extraordinary pay, overtime payments and salary supplements) and monthly working hours (defined as the sum of agreed and overtime weekly working hours). Both wages and hours are collected in October of each year, since this represents a “normal” month as regards seasonal payments or holidays.

Following the literature on the public–private wage gap, we first estimate a mincerian earnings equation by pooled OLS, where \(\mathrm{ln}\left({w}_{i}\right)\) is regressed on an indicator variable for public sector employment, \({PUS}_{i}\), and a vector of sociodemographic controls, \({{\varvec{X}}}_{i}\) (age, gender, education, etc.) To capture the gender-differential effect of working in the public sector, an interaction term between \({PUS}_{i}\) and a female indicator, \({Fem}_{i}\), is also included, leading to the following regression:

(1)

where \({\varepsilon }_{i}\) is a zero-mean, uncorrelated and homoscedastic error term. As regards the set of observable controls, \({{\varvec{X}}}_{i} ,\) two specifications (I and II) are considered. The first one is a standard mincerian wage equation including dummy variables for human capital and location, such as age (3), region of residence (6), and education (7), plus tenure and tenure-squared. The second one extends the previous set of controls by adding labour demand covariates, such as dummies for fixed-term contract (1), part-time work schedule (1), type of collective bargaining (3), occupation (15) according to the categories established in the National Classification of Occupations CNO-11.Footnote 5 Concerning the different types of collective bargaining, the EES distinguishes among sectoral/state or lower levels (regional, provincial, etc.), firm and work centre, and other forms of regulations which include specific wage agreements for civil servants. To select the maintained specification of the set of controls in the rest of the paper, both models are estimated for the whole sample of individuals in each of the three waves.Footnote 6

Pooled OLS regressions implicitly impose the same returns to observed characteristics for the two sectors, so that the public–private wage gap only depends on the \({PUS}_{i}\) shift factor and its interaction with gender. A conventional method in the literature to relax this restriction is the use of the Oaxaca-Blinder (OB) decomposition, once wage regressions are run separately for each sector: \(\mathrm{ln}\left({w}_{Si}\right)={\beta }_{S}{X}_{Si}+{\varepsilon }_{Si} ,\) with \(S=\){\(G\)=public, \(P\)=private}. In this fashion, the gap in mean logged wages, \(\overline{\mathrm{ln }({w}_{G})}- \overline{\mathrm{ln }\left({w}_{P}\right),}\) is split into two components: an explained part justified by disparity in observed characteristics (for given returns), \(\left(\overline{{x }_{G}}-\overline{{x }_{P}}\right)\widehat{{\beta }_{G},}\) and an unexplained one stemming from differences in returns (for given characteristics), \(\overline{{x }_{P}}(\widehat{{\beta }_{G}}-\widehat{{\beta }_{P})}\).

A common concern with this approach is that, by ignoring the endogeneity of sectoral choice in the OLS regressions, estimated returns could be biased. Lacking longitudinal data to control for fixed effects, we address this issue with a conventional switching regression (SR) approach. The SR model includes two wage equations (one for each sector) and the selection equation, assuming joint Gaussian dependence of the error terms in each wage and selection equations. This leads to a standard two-step Heckit estimation approach where the inverse Mill's ratio of the public sector choice, is estimated with a probit model (\({PUS}_{i}\) =1), and then is added to the set of covariates in the wage equations. To address the identification problem—besides age, location and education—we include in the probit some variable that is likely to influence the choice of the sector but not the wage. In particular, lacking other household characteristics in the EES, we use the information on maternity and paternity leaves as proxies for the presence of small children. As usually argued, these can motivate workers' preferences for more stable jobs and non-pecuniary benefits like those typically linked with public employment. Accordingly, the unexplained part in the OB decomposition gets augmented by the difference in selectivity terms, \({\theta }_{G}{\lambda }_{G}-{\theta }_{P}{\lambda }_{P}\), where \({\lambda }_{S}\) (\(S=G,P\)) are the scaled inverse Mills' ratios, and the statistical significance and the sign of the \({\theta }_{s}\) coefficients indicate whether selection is relevant and if it is positive or negative (Tables 1, 2, 3, 4 and 5).

Table 1 OLS estimates in wage regressions (whole sample) (a) Specification I (b) Specification II

We initially perform the OB decomposition for the whole sample of individuals in each wave of EES using the SR approach and some quantile regressions (Tables 6 and 7). Next, we run separate regressions distinguishing between individuals with at least a completed college degree (college, engineers and PhDs in Table 8) and those with lower educational attainments. Lastly, to examine whether the observed wage gap patterns by education vary across genders, the sample is also split by sex. In short, we compute the OB decomposition for the following four subsamples: men and women with college education, and men and women with lower educational attainments (Tables 9 and 10).

5 Estimation results

First, Table 1 presents the pooled OLS estimates of the coefficients in the two specifications of the basic (hourly) wage regression in (1).

As can be inspected, the estimated coefficient on the public sector dummy, \(PUS\), is positive and highly significant in all instances. Not surprisingly, the conditional public wage premium, which hovers between 2 and 5 logarithmic points (lp., hereafter), is much lower than the raw gaps shown in Fig. 1. The coefficient on the female dummy, Fem, implies that women suffer a wage penalty of about 18–21 lp. vis-á-vis men. Yet, the estimated coefficient on the interaction term, \(Fem*PUS,\) is highly significant and positive (around 8–11 lp.), implying that working in the public sector almost halves the overall gender wage gap.

To analyse the potential role of omitted unobserved components (not captured by the observed controls) in biasing the estimates, we resort to Oster (2019)'s results on the relevance of this bias, based on coefficient movements scaled by the change in R-squared when extra controls are included in the regression (as in specification II). Assuming an equal selection relationship between observables and unobservables, and denoting the vector of estimated coefficients on\(PUS\), \(Fem\) and \(PUS*Fem\) under specifications I and II by \({\widehat{{\varvec{\beta}}}}_{{\varvec{I}}}\) and\({\widehat{{\varvec{\beta}}}}_{{\varvec{I}}{\varvec{I}}}\), respectively, this author derives a consistent estimator of \({\varvec{\beta}}\) given by the vector of adjusted estimates with \(\xi =\frac{{R}_{\mathrm{max}}^{2}-{R}_{II}^{2}}{{R}_{II}^{2}-{R}_{I}^{2}}\). In this expression \({R}_{I}^{2} ,\) \({R}_{II}^{2}\) and \({R}_{\mathrm{max}}^{2}\) are the R-squared from the two specifications and a hypothetical regression including all the relevant observables and unobservables, which Oster (2019) recommends setting equal to 1.3 \({R}_{II}^{2}\) in practice. For illustrative purposes, the estimates for 2010 yield and \({\widehat{{\varvec{\beta}}}}_{{\varvec{I}}{\varvec{I}}}=\left(.049, -.186, .099\right)\boldsymbol{^{\prime}},\) which are fairly close. Similar results hold for the other two waves. Hence, even considering the potential endogeneity of some of the controls included in specification II, we take these findings as indicating that the role of unobservables in generating severe biases is minor. Consequently, for practical purposes, we keep the extended set of controls as the maintained specification in the sequel.

In addition to the previous average effects, Fig. 2 depicts quantile-regression (QR) point estimates (at the 25th, 50th and 75th quartiles) of the effects of public sector employment and gender on the conditional distribution of hourly wages, which are reported in Table 9 of the Appendix.

Fig. 2
figure 2

QR estimates of Public sector (upper panel) and Public sector* Female (lower panel) coefficients. Notes: QR estimates. The set of controls include dummies for age (3), gender (1), region of residence (6), education (7), fixed-term contract (1), part-time work schedule (1), type of collective bargaining (3) and occupation (15) plus tenure and its square

As can be inspected, both the coefficients on \(Pub\) and \(Pub*Fem\) are quite larger at the lower than at the other quartiles, suggesting a wage-compression effect that will be further explored in the next sections.

Second, Table 2 reports the OB decomposition by sector with selection correction (estimated by SR) for the whole sample of individuals.Footnote 7 We distinguish between the coefficients effect (unexplained) and the difference in the SR selectivity terms (selectivity), where the marginal effects of the identifying variables in the selection equation are reported in Table 10 of the Appendix.

Table 2 Oaxaca-Blinder decomposition (whole sample)

These estimates show that enjoying a maternity leave increases the probability of working in the public sector, while paternity leaves do not matter. Yet, one of the main findings in in this Table is that the selectivity term is not significant in either of the two wage equations, also having a rather negligible contribution to the OB decomposition in all the three waves.Footnote 8 In general, the unexplained component accounts for 25–35% of the overall public–private wage gap. This figure is about half of the share reported by Hospido and Moral-Benito (2016, Table 3) for the MCVL that reaches an average of 60% during their sample period (2005–2012).

Table 3 Oaxaca-Blinder decomposition by education levels

Third, we examine how the OB decomposition varies across educational levels using subsamples of college and non-college individuals. Table 3 reports both raw gaps and the corresponding OB decompositions with SR estimates, excluding education from the set of covariates. Anyhow, as in Table 2, the estimates on the selection terms are also not statistically significant. Regarding the raw gaps, those for less-educated individuals (20 lp.) almost double the high-educated ones' (11 lp.). Likewise, the unexplained part (around 10 lp.) points to higher returns in the public sector for the former, whereas, on the contrary, it is negative (−1.5 lp.) for the latter.

In agreement with the evidence shown in Fig. 2 (and in most of the literature), both of these findings confirm that the wage distribution in the public sector is compressed at different levels of education. In other words, in comparison with the private sector, the public sector pays relatively higher wages to workers with lower qualifications while it pays less to those with higher levels of education. In line with this result, another interesting finding is that one of the main factors contributing to the explained part of the raw public–private wage gaps is the type of wage-setting regulation prevailing among civil servants (other forms in Table 8) which covers 34–45% of public employees (against 2–4% in the private sector). In effect, this variable explains about 13% and 21% of that component for college and non-college individuals, respectively, while, e.g. differences in the incidence of temporary employment only contribute by −8% and −16%. Since union density in the public sector more than doubles that in the private sector (33% vs. 15%, see Vandaele 2019), we interpret this evidence as yielding some support to a sword-of-justice effect in the public sector where their stronger unions seek to reduce pay dispersion more than in the private sector (see Metcalf et al. 2001).

Finally, to analyse whether the public–private wage gap by education has a gender dimension, the sample is further split into men and women. Tables 4 and 5 report their SR estimates for those with lower and higher educational attainments, respectively. To do so, different selection equations are estimated for men and women using paternity and maternity leaves separately and excluding gender and education as regressors.

Table 4 Oaxaca-Blinder decomposition by gender (non-college workers)
Table 5 Oaxaca-Blinder decomposition by gender (college workers)

Similar to the estimates in Table 3, the component capturing difference in returns among less-educated individuals (Table 4) is always positive yielding a wage premium of around 10 lp. for both men and women. However, when the focus is on high-educated individuals (Table 6), results differ markedly by gender. Women with a college degree enjoy an unexplained wage premium (7.0 lp.), while men suffer a wage penalty (−4.5 lp.). Moreover, a very interesting novelty in this decomposition is the large magnitude and high statistical significance of the difference in the selection terms for less-educated women. In particular, its positive sign implies that those unobserved female characteristics which increase the probability of public administration employment have a favourable impact on wages. On the contrary, that does not hold for high-educated women, possibly because their higher investment in human capital signals stronger commitment to the labour market. These findings partly agree with Hospido and Moral-Benito (2016)'s result that there was positive selection into the public sector at the bottom of the wage distribution during their sample period. However, we only find this evidence for less-skilled women and not for men. Moreover, unlike these authors, we do not observe negative selection at the top of the distribution. Finally, as regards temporary employment, its contribution to the explained part of the raw gap remains lower (in absolute value) than the contribution of the specific wage-settlement agreements in the public sector, even for less-educated women who are overrepresented in that type of employment (−13% vs. 17%).

Table 6 Public–private wage gap (whole sample and subsamples)

Taken together, these results support the presence of an unfavourable gender pay gap for less-educated women in the private sector. In this respect, Dolado et al. (2013) argue that, due to their lower job stability, women's lower wages could originate from receiving less training financed by firms or having to cover a larger share of the costs of their specific human capital. By contrast, the specific regulations in the public sector aimed at improving the balance of work and family lives turn this wage penalty into a wage premium.Footnote 9

To wrap up all the previous evidence, Table 7 summarises the wage gaps for all the specifications considered above once differences in observed characteristics are accounted for. Overall, these results convey four main messages: (i) there remains a non-explained public wage premium of 6 pp. for the whole sample which is somewhat smaller in 2014, possibly due the wage reduction and freezing policies implemented between 2010 and 2015, (ii) this wage premium is enjoyed by workers with lower educational attainments while in contrast a small wage penalty is suffered by those with higher qualification, (iii) wage compression is a persistent phenomenon, and (iii) positive selection into the public sector mainly pertains to less-skilled women.

Table 7 OLS estimates of the mincerian wage regression with triple interaction (whole sample)

There are a few potential explanations consistent with this evidence. Some are based on different risk attitudes or other behavioural traits which we cannot control with our dataset (see Buurman et al. 2012). However, on the basis of the findings presented so far, we are able to suggest a few key ingredients which could help rationalise these results. First, the opposite sign of the wage gap by education can be explained by the public sector acting as a bilateral monopsonist in several economic activities, where it faces upward sloping labour supplies of its labour inputs. In this respect, a common finding in the literature is that the elasticity of labour supply for less-skilled workers is higher than for high-skilled workers, and that this difference increases the harder the skills and qualification required are (see Borjas 2002). Accordingly, monopsonistic power implies that, vis-á-vis a competitive equilibrium, the public sector reduces the wages of those workers with more inelastic labour supplies relative to those with higher elasticities. Second, the other leg of the bilateral monopsony is the presence of much stronger unions in the public than in the private sector, whose goal is to compress the wage distribution since their median voter is typically a public employee with a low or medium qualification levels. Finally, to explain the different results by gender, a plausible story is the one pointed out before. Women, particularly in their fecundity age, are subject to statistical discrimination in the private sector due to their greater job instability, while stricter regulations in the public sector prevent this type of actions.

To help think how these mechanisms can shape the results, a more formal analysis is sketched in the next section for illustrative purposes.

6 Interpretation of empirical results

Let us consider a cost-minimising monopsonistic employer, akin to the public sector, with high (\(H\)) and less-skilled (\(L\)) workers subject to a Cobb–Douglas production function where parameter \(\alpha >1\) captures the relative efficiency of \(H\) workers, having normalised the efficiency of \(L\) workers to 1.Footnote 10 The employer faces inverse labour supplies denoted as \({w}_{H}\left(H\right)\) and \({w}_{L}\left(L\right)\), respectively. Hence, the demand of \(H\) and \(L\) workers solves the standard cost minimization problem:

$$ \min_{H,L} \left\{ {w_{L} \left( L \right)L + w_{H} \left( H \right)H} \right\} \,\,s.t.\,\,\, \overline{Y} = \left( {\alpha H} \right)^{\alpha } L^{1 - \alpha } , $$
(2)

whose f.o.c. are given by:

$$ w_{H} e_{H} = \lambda \alpha \frac{{\overline{Y}}}{H} \,\,\&\,\,\, w_{L} e_{L} = \lambda \left( {1 - \alpha } \right)\frac{{\overline{Y}}}{L} , $$

where \(\lambda \) is the Lagrange multiplier and \( e_{i} = 1 + {\raise0.7ex\hbox{$1$} \!\mathord{\left/ {\vphantom {1 {d_{i} }}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{${\epsilon_{i} }$}},\,i{\mkern 1mu} = {\mkern 1mu} H,L \). Following the labour-supply arguments in Sect. 5, it is assumed that \({\epsilon }_{L}>{\epsilon }_{H},\) so that \({e}_{H}>{ e}_{L}\). Then,

$$ \frac{{w_{H} H}}{{w_{L} L}} = \frac{\alpha }{1 - \alpha } \frac{{e_{L} }}{{e_{H} { }}} < \frac{\alpha }{1 - \alpha } , $$
(3)

implying that the relative wage bill between \(H\) and \(L\) workers will be lower than in the competitive equilibrium, akin to the private sector, where \({e}_{L}={e}_{H}=1\) since both labour supplies are perfectly elastic, i.e.\({\epsilon }_{L},{\epsilon }_{H}\to \infty .\)

The corresponding labour demands (conditional on output) are as follows

$$ H = \left( {\frac{1 - \alpha }{\alpha }} \right)^{{ - \left( {1 - \alpha } \right)}} \left( {\frac{{w_{H} e_{H} }}{{w_{L} e_{L} }}} \right)^{{ - \left( {1 - \alpha } \right)}} \frac{{\overline{Y}}}{{a^{\alpha } }} , $$
(4)
$$ L = \left( {\frac{1 - \alpha }{\alpha }} \right)^{\alpha } \left( {\frac{{w_{H} e_{H} }}{{w_{L} e_{L} }}} \right)^{\alpha } \frac{{\overline{Y}}}{{a^{\alpha } }} . $$
(5)

Next, let us assume that wages of both types of workers are determined in a monopoly union model where a trade union maximises its utility function \(\Omega \) subject to the above labour demand functions. As usual in this kind of wage-bargaining models, the union's goal is to maximise a combination of the wage surplus in relation to an alternative wage in the absence of agreement, \(\overline{w }\) (which we take to be the competitive wage) and employment, with weights given by \(\eta \) and \(1-\eta \) for \(H\) and \(L\) workers, respectively. The novelty here that the utility function also includes the union's objective of achieving wage compression, captured by the quadratic penalty term \({0.5 \varphi (\mathrm{ln}{w}_{H}-ln{w}_{L})}^{2}\). Hence, the union solves the problem,

\(\max _{{W_{H} , W_{L} }} \Omega = [ \eta ( {\ln ( {w_{H} - \overline{w}_{H} } ) + \ln H} ) + ( {1 - \eta } )( {\ln ( {w_{L} - \overline{w}_{L} } ) + \ln L} ) - \frac{\varphi }{2}(\ln w_{H} - \ln w_{L} )^{2}]\) subject to (4) and (5),whose corresponding f.o.c. are

$$ \frac{{\partial {\Omega }}}{{\partial w_{H} }} = \left( {1 - \eta } \right)\alpha + \eta \left[ \frac{{Z_{H} }}{{Z_{H} - 1}} - \left( {1 - \alpha } \right) \right] - \varphi \ln (w_{H} /w_{L} ) = 0, $$
$$ \frac{{\partial {\Omega }}}{{\partial w_{L} }} = \eta \left( {1 - \alpha } \right) + \left( {1 - \eta } \right)\left[ {\frac{{z_{L} }}{{z_{L} - 1}} - \alpha } \right] + \varphi \ln (w_{H} /w_{L} ) = 0 $$

where \(z_{i} = w_{i} /\overline{w}_{i} .\)

Combining both f.o.c. yields, or alternatively,

$$ \frac{{z_{H} }}{{z_{L} }} = 1 + \frac{1}{{\varphi \ln (w_{H} /w_{L} ) - \alpha }} \equiv 1 + \delta (w_{H} /w_{L} ) $$
$$ \frac{{w_{H} }}{{w_{L} }} = \left( {1 + \delta \left( {w_{H} /w_{L} } \right)} \right)\frac{{\overline{w}_{H} }}{{\overline{w}_{L} }} $$
(6)

where \(\delta \left(\cdot\right)\) is a decreasing function of the relative wage. Hence, differentiating both sides of (6) w.r.t. the wage-compression parameter \(\varphi \) yields the required result: the relative wage of \(H\) workers with respect to \(L\) workers will be smaller than in the competitive equilibrium if \(-1<\delta <0,\) which holds for a sufficiently high values of that parameter.

The previous model has not distinguished workers by gender. However, it is well documented in the literature (see, e.g. Alesina, et al. 2012) that male labour supply is much more inelastic (especially at the extensive margin) than female’s. Thus, the monopsonistic “exploitation” result in (3) on its own would apply to men more than women, which would go against an overwhelming evidence in favour of a positive male–female wage gap in most countries. Thus, an additional ingredient is needed to revert this result.

A plausible one is the statistical discrimination channel proposed by in De la Rica et al. (2007) and Dolado et al. (2013) that we summarise in what follows. Let us think of men and women being equally productive ex ante with productivity equal to 1, and that, to perform a job, those with less education require training, \(\tau ,\) which is provided by the employer at a convex cost \(c\left(\tau \right)={\tau }^{2}\) and increases productivity to 1 + \(\tau \). The employer makes a wage offer, \(w\left(\tau \right)\), which workers get before receiving a disutility shock, ω, which forces them to quit the job (say, for family duties) after being trained when \(\omega \ge w\left(\tau \right).\) The \(\omega \) shock is a random variable with c.d.f. \(F(\omega \)) which for simplicity is assumed to be uniform \(U\left[0, \epsilon \right],\) with \(\epsilon >\) 0.25 (see expression 8). The employer chooses the function \(w\left(\tau \right)\) to maximise profits, \(\Pi \), given by:

(7)

whose f.o.c. yields the optimal wage schedule \({w}^{*} \left(\tau \right)= \frac{1+\tau }{2}\). Then, replacing this expression into (7) and maximising again w.r.t.\(\tau \) implies that the optimal training level and optimal wages are given by:

$$ \tau^{*}= \frac{1}{4 \epsilon -1 }\qquad \& \qquad w^{*}=\frac{1 - \tau^{*}}{2} $$
(8)

So that the higher ϵ, the lower \({\tau }^{*}\) and \({w}^{*}.\) Now suppose that employers in the private sector believe than women on average have a higher value of ϵ (i.e. a higher probability of quitting) than men. Then, to the extent that they observe imperfectly the individual ϵ′s they will offer a lower wage to this group of women (i.e. statistical discrimination) than in the public sector, where gender-equity regulations rule out that type of believes. Note that this type of argument would not apply to high-educated workers since they do not need training to perform the job.

To verify that statistical discrimination plays a key role in the private sector, we follow Altonji and Pierret (2001) who argue that such a type of discrimination should decrease as the individual is older or has longer job tenure. The insight is that employers should be able to learn much faster about the true productivity of more stable and senior workers because this learning investment process would be in their benefit. To do so, we run a similar regression to (1) but this time using a private sector dummy, \(PRI\), its interaction with \(Fem\) and its triple interaction with \(Fem\) and tenure (\(Ten\)), \(PRI*Fem*Ten\).

The results are gathered in Table 7 where we report the estimated coefficients in the model with the above-mentioned triple interaction. The coefficient on \(Ten\) is 0.4 lp. Lower for females than for males in the private sector but the coefficients on the triple interaction term are all positive and statistically significant, suggesting that statistical discrimination exerted in the private sector seems a plausible hypothesis.

7 Conclusions

This paper revisits and updates the existing evidence about the (hourly) wage gap between employees in the public and private sectors in Spain during and after the Great Recession. Using wage and demographics microdata from the three latest waves of the EES survey (2010, 2014, 2018), we compute standard and selectivity-corrected Oaxaca-Blinder decompositions in mincerian equations of hourly wages for each sector to estimate the wage gap component which is not explained by differences in observed productivity-related characteristics. In line with previous results for Spain and other southern European countries, we find a procyclical public wage premium due to differences in returns and endogenous selections of around six logarithmic points which has remained stable over the period under consideration. However, this premium is lower than the ones derived in other related studies using alternative data sources, as the MCVL. In agreement with previous findings, conclusive evidence is reported in favour of wage compression by education levels. When looking at gender, there is a public wage premium for females but only for non-college women. We interpret these results in terms of higher monopsonistic power of the public sector in regards men and high-educated workers (since they are likely to have less elastic labour supplies), greater unionisation and stronger preferences of less-skilled women to work in this sector in order to reconcile family and work.