1 Introduction

Debates on income inequality and its effects have become a common issue in the recent theoretical and empirical literature. After many years of ignoring issues of income distribution and equity, targeting poverty, and reducing inequality have now occupied an important part of the main mission objectives for many international financial and development agencies. The World Bank announced in April 2013 its interest in ending extreme poverty and reducing inequality via sharing prosperity in every country by 2030 (World Bank 2016). The World Bank has re-evaluated the relevance of eradicating poverty and lowering income inequality by adopting economic policies that accelerate growth in income of the bottom 40% of the population (Basu and Stiglitz 2016).

For many years, reducing income inequality has not been a priority for the World Bank or the International Monetary Fund, and has not occupied the interests of the mainstream macroeconomists who believed that reducing inequality was a matter of time and would happen automatically after the economy had achieved a certain level of economic development. This hypothesis, known as the inverted U-curve, presented by Simon Kuznets in the mid-1950s (Kuznets 1955), was supported by the decline in income inequality in many economies especially in the USA after World War II until the late 1970s (Atkinson 2016). However, the golden age of capitalism did not last long as income inequality began to rise significantly in the USA and many Western economies since the late 1970s (Lee 2021). These new trends in inequality led to the emergence of some new facts about the pattern of economic growth and income distribution that are fundamentally different from Kuznets’ inverted U-curve hypothesis. One of the new stylized facts that contradict the mainstream views and observed by Joseph Stiglitz is that inequality in both wages and non-wages besides overall income inequality has increased in many countries since the 1980s, and that, unlike the historical constancy of capital/output ratio confirmed by Nicholas Kaldor, more than half a century ago, as a central stereotyped fact of modern economic growth characteristics (Kaldor 1955, 1961), there is a marked increase in this ratio in many countries at least during the past three decades (Stiglitz 2016). Increasing the capital/output ratio means a further deterioration in the structure of income distribution at the expense of wage incomes, thus exacerbating income inequality. These new facts are driven and supported by new data about inequality and economic growth in many countries and directed researchers to reconsider the inequality–growth relationship. In this context, the availability of data on the evolution of income distribution for most countries of the world has helped scholars to study income inequality from a global rather than a national perspective (Lakner and Milanovic 2016; Milanovic 2016). The new perspective revealed new features of the effect of growth on inequality that differ greatly from the Kuznets theory of inverted U-curve to describe the evolution of global inequality. Using data from the World and Wealth Income Database over the period 1980–2016, Alvaredo et al. (2018) found an elephant shape of the global income inequality which is reflected in the high growth rate in income of the median affected by progress in both India and China and sharping growth rates at the top, while the performance of income growth above the median was modest.

Increasing global interest in reconsidering the importance of reducing income inequality was not a coincidence. Rather, many writings that analyzed the drivers of the 2007–2008 global recession shed light on the importance of increasing income inequality to be one of the main causes that strongly led to this sharp recession (Irvin 2011; Stefani 2020). Some works support the role of increasing inequality in explaining the recession via its role in boosting loans to finance consumption. In light of low incomes and high inequality, increasing borrowing from banks to finance consumption resulted in the inability of the majority of borrowers to repay, a dangerous situation resulting in weakening consumer debt sustainability (McCombie and Spreafico 2017). Then, the banking crisis was exploited in the USA and transmitted to the world.

Global interest in reconsidering income inequality did not find an equivalent interest in Egypt. Egypt is still a developing country and classified as a low-middle-income country according to the World Bank classification. As Egypt is still struggling to achieve economic development, notable structural changes have occurred during the last four decades. Industry’s contribution in the total value added has increased from 25.4 to 33.65% while agriculture share has significantly shrunk from 27.6 to 11.4%. On the other hand, the rate of urbanization in Egypt has decreased from 43.3% in 1975 to 42.7% in 2017. The same decreasing trend has occurred in the percentage of foreign trade in GDP from 53.7 to 45.12% during the period 1975–2017 (World Bank 2021). Despite these structural changes, Egypt achieved a relatively low average growth rate in real GDP per capita that did not exceed 3.14% during the period 1975–2017. This growth performance is relatively low compared to the growth rates achieved by many other countries such as Malaysia, Singapore, and South Korea, during the same period.

It is worth noting that the previous developments in economic growth and the structural changes that occurred in Egypt during the past four decades were accompanied by the exacerbation of income inequality. According to the Standardized World Income Inequality Database (SWIID), the Gini coefficient, which measures the degree of income inequality, has increased in Egypt from 0.36 in 1975 to 0.41 in 2017 (Solt 2020). Moreover, the income share of the richest 10% of the population increased from 26.7% in 1990 to 27.9% in 2015, whereas the income share of the richest 20% increased from 39.9% in 1995 to 41.5% in 2015 (World Bank 2021). These developments in economic growth and structural changes, as well as the increasing trend in income inequality during this relatively long period, require more analysis to capture the potential long-run relationships among these variables to amend any shortcomings in economic policies and support the development path in Egypt. Figure 1 supports a positive relationship between GDP per capita and income inequality measured by the Gini coefficient in Egypt over the period 1975–2017.

Fig. 1
figure 1

Gini coefficient at different levels of GDP per capita in Egypt over the period 1975–2017. Data on GDP per capita are extracted from the World Bank (2021) and fixed at 2010 prices in local currency. The Gini coefficient data are extracted from versions 8–9 of the Standardized World Income Inequality Database (SWIID) based on Solt (2020)

The worsening trend in income distribution pattern over the last four decades raises several questions about its causes besides its effects on achieving sustainable economic growth in Egypt, as a developing country seeks to get out of the middle-income countries’ trap to catch up with advanced economies. Rising inequality may hurt economic growth (Adams and Page 2003; Qin et al. 2009) as growth loses the sustainability that may not be achieved considering increasing inequality in favor of the rich. Income concentration in the hands of a small percent of the population reduces the aggregate demand by most of the society (Auclert and Rognlie 2017), and with the inability of the Egyptian economy, in its current state, to compete in global markets of goods and services, it has become difficult to compensate the decline in domestic demand relying on external demand for Egyptian exports. This critical situation confirms the need to reconsider income inequality because of its potential effects on the sustainability of economic growth in Egypt.

Despite the overlapping relationship of inequality with growth, the main task of this study is to determine the impact of both economic growth and structural changes accompanying the liberal-oriented economic development policies on income inequality in Egypt during the period 1975–2017. Several reasons call for further analysis concerning the causes of income inequality in Egypt. First, there is a dearth of published empirical studies on the determinants of income inequality in Egypt. Moreover, much of the published work is only concerned with monitoring the evolution of income distribution structure without exploring the reasons that produced this structure (Krafft and Davis 2021; Majbouri 2017). Second, as explained above, income inequality is an important factor affecting the sustainability of economic growth. Empirical works that investigated the drivers of economic growth concluded that many developing and emerging economies that achieved continuous and high economic growth rates during the previous four or five decades were characterized by a low level of income inequality (Forbes 2000). For example, the average real GDP per capita in South Korea grew by 5.8% annually, while the average Gini index of income inequality did not exceed 0.31 during the period 1975–2017 based on Solt (2020) compared to the average growth of 3.14% and high average Gini coefficient of 0.41 in Egypt during the same period. In the opposite case, studies also indicated that countries with high levels of inequality, such as Latin American countries, failed in achieving high and sustained growth rates (Amarante 2014; Williamson 2015). This uneven performance in growth rates at different levels of inequality means that inequality and equity may make a fundamental difference in economic performance (Stiglitz and Yusuf 2001), and then, inequality does matter for Egypt.

Third, the study argues that augmenting the effects of structural changes on income distribution is necessary to understand the drivers of inequality in a developing country like Egypt. The advanced stages of economic development that Simon Kuznets talked about, in which economic growth reduces inequality, are resulted from deep structural changes within the economy. Despite this, many recent studies have overlooked the impact of structural changes when examining the distributional effects of growth in different developing economies (e.g., Nandan and Mallick 2021; Shahbaz et al. 2014; Suárez Álvarez and López Menéndez 2020). This shortcoming makes the analysis incomplete, especially when it concerns developing economies. Therefore, when investigating the determinants of income inequality in Egypt, it is important to include structural changes in the estimable model. To do this, the study uses both the share of industry in the total value added and the evolution of the urbanization rate to express the structural changes in Egypt. Also, the study adds the contribution of agriculture and the percentage of foreign trade in GDP to capture their effects on income distribution over the past four decades.

Finally, despite the valuable findings of recent empirical studies in understanding the inequality–growth relationship, most of these studies have been generated under a linear hypothesis between these two variables (e.g., Bartak and Jabłoński 2020; Caraballo et al. 2017; El-Shagi and Shao 2019; Qin et al. 2009). However, the current study adopts a different methodology benefiting from recent advanced developments in econometric techniques introduced by Cho et al. (2015). These developments enable us to explore the drivers of income inequality under an asymmetric or nonlinear framework based on the quantile autoregressive distributed lags approach QARDL developed by Cho et al. (2015). Studying the distributional effects of economic growth and structural changes within an error correction model (ECM) helps to capture the different potential distributional effects in both the short and long runs. This is of importance to the policy implications for monitoring the behavior of these variables in the short and long periods through the economic development path in Egypt over the previous four decades. Many empirical studies employed the ECM and confirmed a long-run equilibrium relationship between growth and income inequality. Risso et al. (2013) studied the long-run equilibrium relationship between economic growth and income inequality in Mexico over the period 1968–2010. They concluded that there is a cointegration relationship between these two variables. Hoover et al. (2009) studied the effect of the business cycles on income inequality using both linear ARDL of and nonlinear asymmetric cointegration tests in Italy during the period 1967–2012. Shahbaz (2010) applied an ECM to investigate the cointegration relationship between income inequality and economic growth in Pakistan over the period 1971–2005. The results of the ARDL supported the validity of the Kuznets inverted U-curve relationship hypothesis in explaining the effect of economic growth on income inequality. On the other hand, nonlinear cointegration was tested by Ghosh (2020) who applied the Shin et al. (2014) methodology to data for the period 1980–2015 to explore the asymmetric cointegration between economic growth and income inequality in ASEAN countries. It is noted that studying cointegration according to previous studies assumes that the speed of error correction process is symmetric according to the ARDL model, but this speed may differ across different levels of income inequality and then the distributional effects of economic growth and structural change may be asymmetric across different locations or quantiles of the conditional distribution of income inequality. In this regard, the study aims at exploring the potential asymmetric cointegration among income inequality, economic growth, and structural changes in Egypt over the period 1975–2017. To our knowledge, this is the first study that employs the QARDL model to capture the income inequality drivers in Egypt.

The study is organized as follows, the second section briefly surveys the relevant literature, while the third section runs a preliminary analysis of the data used and illustrates the QARDL methodology. The fourth section presents results and discussions. Finally, the fifth section concludes.

2 Relevant literature

Despite the large number of studies that attempted to understand the relationship between growth, structural changes, and income distribution, the results are still not conclusive, and no consensus is settled on the interrelationships among these variables. As argued by Caraballo et al. (2017), there are two main approaches in the theoretical works describing the inequality–growth relationship, the classic and the political economy. The classic or standard approach advocates a positive relationship between inequality and growth described in many works (Bénabou 1996; Forbes 2000; Galor and Tsiddon 1997; Kaldor 1955; Saint-Paul and Verdier 1993; Stiglitz 1969). These studies attribute the positive effect of inequality on growth to its positive impact on some factors necessary to stimulate economic growth, such as the saving rate, technological change, and capital accumulation. Poor classes have a lower marginal propensity to save, so increasing their incomes via redistribution policies results in rising consumption not saving (Brida et al. 2020). Therefore, the rate of capital accumulation that supports economic growth will be negatively affected if income inequality decreases. As the rich have a greater marginal propensity to save compared to the poor, more unequal income will be reflected in high saving rates (Stiglitz 1969).

Several recent empirical studies supported the classic view of the positive effect of inequality on the saving rate and economic growth. Using the panel GMM methodology, Koo and Song (2016) introduce empirical evidence that supported the positive effect of inequality on saving rates. They argue that this positive effect is stronger in countries with an advanced system of financial development. Moreover, the effect of inequality becomes more powerful the greater the difference between the marginal propensity to save between rich and poor. Chen et al. (2017) find evidence that supports the positive impact of income inequality on the saving rate in China; they argue that aggregate saving is not only affected by income level but also increased in cases of high levels of income inequality. Other scholars (e.g., Chu and Wen 2017; Gu et al. 2020) attributed the significant increase in saving rates that occurred in China to the remarkable increase in income inequality since the beginning of the 2000s. On the other hand, Smith (2001) finds that credit market imperfections that do not provide financing to the poor are one of the most important channels in explaining the positive effect of inequality on private saving rates.

Contrary to the classic views, the political economy approach holds that income inequality negatively affects growth (Alesina and Perotti 1996; Alesina and Rodrik 1994; Persson and Tabellini 1991, 2002). A high level of income inequality leads to social and political instability, and then the investment rate decreases, and economic growth stagnates. In highly unequal economies, applying income redistribution policies to reduce inequality may harm investment if income redistribution depends on increasing tax rates (Brida et al. 2020). Thus, low levels of income inequality will not require applying redistribution policies that harm investment and, consequently, durable economic growth (Berg et al. 2018). There are a few recent studies that came out of these two approaches. These studies affirm a non-monotonic relationship between inequality to growth. For example, Balcilar et al. (2021) indicated that the effect of inequality on economic growth is shaped by an inverted U-curve relationship, where economic growth is positively affected when inequality is relatively low and after a certain threshold of the Gini coefficient (0.359), the effect of inequality on growth becomes negative.

Just as the effect of inequality on economic growth has been debated, there is also much debate about the effect of growth and structural changes on income inequality. There was a lack of interest in the determinants of inequality until the late 1970s influenced by the dominance of Friedman’s consumption theory and Kuznets’s inverted U-curve hypothesis. Experience of the post-World War II in the USA and other Western countries proved that rising economic growth did not result in decreasing average propensity to consume as predicted by Keynesian proponents. Rather, the APC remained stable (Drennan 2017). Thus, there is no need to reduce inequality to prevent lower consumption and effective demand. Moreover, as predicted by Simon Kuznets, income inequality began to decrease in many Western economies, influenced by the high growth achieved until the late 1970s. These developments were enough to ignore income inequality because it will be improved automatically, and it will not harm aggregate demand and thus economic growth. The nonlinear relationship described by Kuznets to explain the behavior of inequality during different economic growth stages was also confirmed in several empirical works. However, other studies rejected this hypothesis and considered that the relationship between growth and inequality is shaped by U-curve rather than Kuznets inverted U-curve (Blanco and Ram 2019). Kim et al. (2011) employ panel mean group estimator PMG using data from the USA over the period 1945–2004 to capture the long-run relationship between income inequality and development. They find a U-curve between these two variables where inequality declines during the early phase and then increases in the later phases of development.

Few researchers were satisfied with not only monitoring the impact of growth on inequality, but their empirical research extended to find out the effect of structural changes on inequality, given that the economic growth, especially in developing economies, is a result of the structural changes that accompany the development process (Aizenman et al. 2012; Wan et al. 2016). Structural changes include many manifestations, but changes in the relative shares of different sectors in the value added represent the most important phenomenon of structural change. In this context, the empirical literature contains mixed results about the distributional effects of structural changes. Wan et al. (2016) find an inverted U-curve between structural changes and income inequality in China. Structural changes in the early stages of development lead to an increase in income inequality and then decreases in the later stages. Structural changes, like economic growth, do not occur everywhere, and therefore not everyone benefits from them immediately, and this explains increasing inequality in the early stages of structural changes. But with more structural change that requires workers to acquire the skills needed to transfer and work in highly productive sectors such as industry, the wages of these workers begin to increase, and thus inequality decreases as structural changes accelerate and individuals become more skilled and adaptable. This result is compatible with Kuznets’s hypothesis about the growth–inequality nexus; however, it contradicts other studies such as Aizenman et al. (2012) which emphasized U rather than inverted U-shaped relationship between inequality and structural changes. Also, some aspects of structural changes, like the evolution of industry share in output besides urbanization, affect income inequality. Using data from 27 countries over the period 1991–2014, Mehic (2018) finds a negative distributional effect of industrial employment in high and middle-income economies. Wan et al. (2022) find that well-managed urbanization reduces income inequality in developing countries. Given that most of these economies suffering from structural fiscal deficits, relying on fiscal policies to reduce inequality is infeasible considering the limited impact of fiscal policy on redistributing income to reduce inequality. Thus, increasing urbanization rates will play an important role in reducing the income gap between rural and urban areas, in addition to its positive impact on economic growth rates.

3 Methodology and data

3.1 Data and preliminary analysis

The study uses data covering the period 1975–2017. Table 1 describes variables and data sources. Table 2 and Fig. 2 show some statistical characteristics and evolution of time series paths over the period 1975–2017. This period, which extends for more than four decades, enables us to monitor the structural developments that took place in the production structure of the Egyptian economy through accounting for the changes in relative shares of industry and agriculture in total value added, as well as urbanization and foreign trade. Moreover, it allows us to study the behavior of economic growth in the long run and its relationship to the pattern of income distribution to capture any asymmetric behavior. Statistical characteristics indicate that the average Gini coefficient during the period reached 0.401 reached its lowest level at 0.367 and peaked at 0.428. According to the standard deviation, GDP per capita represents the most volatile variable during the study period. This relatively high volatility in GDP per capita indicates that the economic growth in Egypt is subject to factors that are not stable such as oil prices and tourism and does not depend on more stable factors that are related to the production structure. This variability in GDP per capita supports our view to analyze the effects of economic growth on inequality in a nonlinear framework rather than the traditional linear approach that has dominated many empirical studies.

Table 1 Variables and data sources
Table 2 Descriptive statistics
Fig. 2
figure 2

Time-series evolution (1975–2017)

3.2 Model specification

This study seeks to estimate the distributional impacts of structural changes accompanying economic development policies implemented in Egypt during the previous four decades starting from 1975. As explained previously, the structural changes are expressed through tracking what happened in both industrialization and urbanization in Egypt during this period. So, our initial econometric specification can be expressed as follows:

$${\mathrm{gini}}_{t}= {\beta }_{0}+{\beta }_{1}{\mathrm{gdp}}_{t}+{{\beta }_{2}{\mathrm{gdp}}}_{t}^{2}+{\beta }_{3}{\mathrm{ind}}_{t}+{{\beta }_{4}{\mathrm{urb}}}_{t}+{{\beta }_{5}{\mathrm{agri}}}_{t}+{{\beta }_{6}{\mathrm{open}}}_{t}+{\epsilon }_{t}$$
(1)

where \({\beta }_{0}\) and \({\epsilon }_{t}\) refer to constant and the error term, respectively, all the variables are expressed in logarithm, the coefficients \({\beta }_{i}\) where \(i=1, 2, 3,4, 5 \,{\mathrm{and}}\, 6\), estimate the long-run elasticities of the Gini coefficient (\({\mathrm{gini}})\) as a measure of income inequality with respect to gross domestic product per capita (\({\mathrm{gdp}}\)), gross domestic product per capita squared (\({\mathrm{gdp}}^{2}\)), industrialization (\({\mathrm{ind}}\)), urbanization (\({\mathrm{urb}}\)), agriculture (\({\mathrm{agri}}\)), and openness (\({\mathrm{open}}\)) in time \(t\). Equation (1) includes several variables commonly used in empirical studies that analyze the determinants of patterns of income distribution and income inequality. The Gini coefficient data are extracted from versions 8–9 of the Standardized World Income Inequality Database (SWIID) based on Solt (2020).

The Kuznets inequality inverted U-curve hypothesis introduced by Kuznets (1955) has been considered by including both \({\mathrm{gdp}}\) and \({\mathrm{gdp}}^{2}\) to capture potential nonlinear relationship between income inequality and economic growth. Kuznets’s hypothesis indicates that income inequality increases in the early stages of economic growth, and then decreases gradually in the advanced stages after achieving a certain income level. Thus, Kuznets’ inequality–growth hypothesis will be satisfied in Eq. (1) if \({\beta }_{1}>0\) and \({\beta }_{2}<0\). Although this hypothesis has been extensively studied in many empirical studies [see the recent survey by Mdingi and Ho (2021)], there is a dearth of studies that have tested this hypothesis in Egypt.

The study covers a period from 1975 to 2017. This period is relatively sufficient to capture the structural changes that have taken place in the Egyptian economy. Structural change is a multidimensional issue. According to Syrquin and Chenery (1989) structural change refers to a shift in resources from traditional sectors (agriculture) to advanced sectors (manufacturing and services). Thus, the contributions of economic sectors to value added will change reflecting the structural changes accompanying economic development process. Moreover, the transfer of production factors, especially labor, from the traditional sectors to the industrial areas leads to the growth of cities and expands the urban areas within the economy (McGowan and Vasilakis 2019). Accordingly, to express the structural change in the model, the study uses both the ratio of value added of the industrial sector to GDP and the evolution of population proportion living in urban areas. We believe that including both industrialization and urbanization in the estimable model contributes to understanding the distributional impacts of structural change that occurred in Egypt during the last four decades. Many empirical and theoretical studies analyzed the distributional effect of industrialization (e.g., Dumke 1991; Foster and Rosenzweig 2003; Koo 1984; Rozelle 1994; Wang 2019; Yao 1997), and recently, the impact of both industrialization and urbanization on income inequality has been reviewed in many countries that differ in their income levels. It is noted that different levels of income lead to different impacts on income inequality (Ali et al. 2022). Recently, some studies have shown that the change in the relative weight of agriculture in GDP and trade openness can contribute to explaining the changes that have occurred in income inequality in many economies (Cheng and Wu 2017; İşcan and Lim 2022). So, the study also adds both the evolution of the agriculture added value (\({\mathrm{agri}})\) as well as trade openness (\({\mathrm{open}}\)) proxied by the percentage of foreign trade to GDP to monitor the impact of other structural changes that may affect income distribution pattern in Egypt during the study period.

3.3 Quantile autoregressive distributed lags model

The study applies the QARDL methodology developed by Cho et al. (2015) to explore the potential cointegration and asymmetric effects of economic growth and structural changes variables on income inequality in Egypt. To understand the QARDL model, we follow (Aziz et al. 2020; Baek 2020; Lahiani et al. 2019) by presenting first the basic ARDL model as follows:

$$\begin{aligned}\Delta {\mathrm{gini}}_{t}&={a}_{0}+\sum_{i=1}^{p}{a}_{1i}\Delta {\mathrm{gini}}_{t-1}+\sum_{i=0}^{q1}{a}_{2i}{\Delta {\mathrm{gdp}}}_{t-i}+\sum_{i=0}^{q2}{a}_{3i}{\mathrm{gdp}}_{t-i}^{2}+\sum_{i=0}^{q3}{a}_{4i}{\Delta {\mathrm{ind}}}_{t-i}\\ &\quad+\sum_{i=0}^{q4}{a}_{5i}{\Delta {\mathrm{urb}}}_{t-i}+\sum_{i=0}^{q5}{a}_{6i}{\Delta {\mathrm{agri}}}_{t-i}+\sum_{i=0}^{q6}{a}_{7i}{\Delta {\mathrm{open}}}_{t-i}+{b}_{1}{\mathrm{gini}}_{t-1}+{b}_{2}{\mathrm{gdp}}_{t-1}\\ &\quad+{{b}_{3}{\mathrm{gdp}}}_{t-1}^{2}+{b}_{4}{\mathrm{ind}}_{t-1}+{b}_{5}{\mathrm{urb}}_{t-1}+{b}_{6}{\mathrm{agri}}_{t-1}+{b}_{7}{\mathrm{open}}_{t-1}+{e}_{t} \end{aligned}$$
(2)

where \(\Delta\) represents difference operator, \({a}_{0}\) is the constant and the error term is represented by \({e}_{t}\). All the variables are defined above. The short-run behavior of the Gini coefficient of income inequality, GDP per capita, GDP per capita squared\(,\) industrialization, urbanization, agriculture, and openness can be captured by the coefficients \({a}_{1}\), \({a}_{2}\), \({a}_{3}\), \({a}_{4}\), \({a}_{5}, {a}_{6} ,\) and \({a}_{7},\) respectively, depending on the Akaike Information Criterion (AIC) in determining the lag lengths \(p\), \({q}_{1}\), \({q}_{2}\), \({q}_{3}\), \({q}_{4}\), \({q}_{5}\), \({q}_{6},\) while the long-run behavior of these variables can be estimated by the coefficients \({b}_{1}\), \({b}_{2, }{b}_{3, }{b}_{4, }{b}_{5}\), \({b}_{6}\), and \({b}_{7}\), respectively.

The problem with the ARDL model is its inability in detecting nonlinear relationships that may exist among variables. This defect may result in losing important information about the nature of the relationships between variables in both the short and long runs. Although this problem has been considered in the nonlinear autoregressive distributed lags model (NARDL) developed by Shin et al. (2014), which has been used in many recent studies (e.g., Ali 2021; Zribi and Boufateh 2020); however, the nonlinearity in NARDL model does not determine by data-proceeding (Razzaq et al. 2021). The nonlinearity in NARDL is exogenously determined by taking a value of zero to the threshold not via data processing (Baek 2020, 2021). Despite the advantages of NARDL, compared to the traditional linear ARDL, in monitoring asymmetric relationships between variables in both short and long runs, it is still providing a partial picture of the effect of the independent variables across different locations or quantiles in the response variable (Guo et al. 2021; Zaighum et al. 2021).

To overcome the shortcomings of both ARDL and NARDL models, Cho et al. (2015) modified the basic ARDL model of Pesaran et al. (2001) and proposed the QARDL model to study the behavior of variables in the short and long terms across different quantiles. According to Guo et al. (2021), the QARDL has the advantages of both the ARDL model introduced by Pesaran et al. (2001) and the quantile regression technique proposed by Koenker and Bassett (1978). Using QARDL gives us the ability to understand the relationships between variables in the short and long terms, and then, we can discover the extent of the long-run equilibrium relationship between variables, as well as monitor the error correction coefficient in the short run. QARDL also provides the possibility to explore the nonlinearity relationship (Shafiullah et al. 2020) and potential cointegration among variables at different locations or quantiles of the response variable. Thus, the long-term equilibrium relationship between the Gini coefficient and the independent variables can be monitored across different quantiles through the QARDL model as follows:

$$\begin{aligned}Q\Delta {\mathrm{gini}}_{t}&={a}_{0}\left(\tau \right)+\sum_{i=1}^{p-1}{\varphi }_{i}^{\mathrm{gini}}\left(\tau \right)\Delta {\mathrm{gini}}_{t-i}+\sum_{i=0}^{{q}_{1}-1}{\gamma }_{i}^{\mathrm{gdp}}\left(\tau \right){\Delta {\mathrm{gdp}}}_{t-i}+\sum_{i=0}^{{q}_{2}-1}{\omega }_{i}^{{\mathrm{gdp}}^{2}}\left(\tau \right){\Delta {\mathrm{gdp}}}_{t-i}^{2}\\ &\quad+\sum_{i=0}^{{q}_{3}-1}{{\theta }_{i}^{\mathrm{ind}}\left(\tau \right)\Delta {\mathrm{ind}}}_{t-i}+\sum_{i=0}^{{q}_{4}-1}{\delta }_{i}^{\mathrm{urb}}\left(\tau \right){\Delta {\mathrm{urb}}}_{t-i}\\ &\quad+\sum_{i=0}^{{q}_{5}-1}{\vartheta }_{i}^{\mathrm{agri} }\left(\tau \right){\Delta {\mathrm{agri}}}_{t-i}+\sum_{i=0}^{{q}_{6}-1}{\gamma }_{i}^{\mathrm{open}}\left(\tau \right){\Delta {\mathrm{open}}}_{t-i}+\xi (\tau ){\mathrm{gini}}_{t-1}+{\beta }_{\mathrm{gdp}}{\left(\tau \right){\mathrm{gdp}}}_{t-1}\\ &\quad+{{\beta }_{{\mathrm{gdp}}^{2}}\left(\tau \right){\mathrm{gdp}}}_{t-1}^{2}+{\beta }_{\mathrm{ind}}\left(\tau \right){\mathrm{ind}}_{t-1}+{\beta }_{\mathrm{urb}}\left(\tau \right){\mathrm{urb}}_{t-1}+{\beta }_{\mathrm{agri}}\left(\tau \right){\mathrm{agri}}_{t-1}\\ &\quad+{\beta }_{\mathrm{open}}\left(\tau \right){\mathrm{open}}_{t-1}+{\varepsilon }_{t}\left(\tau \right)\end{aligned}$$
(3)

To avoid the potential contemporaneous correlation between the error term \({\varepsilon }_{t}\) with \(\Delta {\mathrm{gdp}}, { \Delta {\mathrm{gdp}}}^{2}\), \(\Delta {\mathrm{ind}}\), \(\Delta {\mathrm{urb}}\), \(\Delta {\mathrm{agri}}\), and \(\Delta {\mathrm{open}}\), Eq. (3) can be represented as an error correction quantile autoregressive distributed lag model ECM-QARDL:

$$\begin{aligned}Q\Delta {\mathrm{gini}}_{t}&={a}_{0}\left(\tau \right)+\sum_{i=1}^{p-1}{\varphi }_{i}^{\mathrm{gini}}\left(\tau \right)\Delta {\mathrm{gini}}_{t-i}+\sum_{i=0}^{{q}_{1}-1}{\gamma }_{i}^{\mathrm{gdp}}\left(\tau \right){\Delta {\mathrm{gdp}}}_{t-i}+\sum_{i=0}^{{q}_{2}-1}{\omega }_{i}^{{\mathrm{gdp}}^{2}}\left(\tau \right){\Delta {\mathrm{gdp}}}_{t-i}^{2}\\ & \quad+\sum_{i=0}^{{q}_{3}-1}{{\theta }_{i}^{\mathrm{ind}}\left(\tau \right)\Delta {\mathrm{ind}}}_{t-i}+\sum_{i=0}^{{q}_{4}-1}{\delta }_{i}^{\mathrm{urb}}\left(\tau \right){\Delta {\mathrm{urb}}}_{t-i}\\ & \quad+\sum_{i=0}^{{q}_{5}-1}{\vartheta }_{i}^{\mathrm{agri} }\left(\tau \right){\Delta {\mathrm{agri}}}_{t-i}+\sum_{i=0}^{{q}_{6}-1}{\pi }_{i}^{\mathrm{open}}\left(\tau \right){\Delta {\mathrm{open}}}_{t-i}\\ & \quad+ \xi (\tau )\left({\mathrm{gini}}_{t-1}-{\beta }_{\mathrm{gdp}}{\left(\tau \right){\mathrm{gdp}}}_{t-1}-{{\beta }_{{\mathrm{gdp}}^{2}}\left(\tau \right){\mathrm{gdp}}}_{t-1}^{2}-{\beta }_{\mathrm{ind}}\left(\tau \right){\mathrm{ind}}_{t-1} \right.\\ & \left.\quad-{\beta }_{\mathrm{urb}}\left(\tau \right){\mathrm{urb}}_{t-1}-{\beta }_{\mathrm{agri}}\left(\tau \right){\mathrm{agri}}_{t-1}-{\beta }_{\mathrm{open}}\left(\tau \right){\mathrm{open}}_{t-1}\right) +{\varepsilon }_{t}\left(\tau \right)\end{aligned}$$
(4)

where \(\tau \in \left\{0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.95\right\}\) represents the quantiles. The cumulative short-run effect of the previous income inequality can be captured by \({\varphi }_{*}^{\mathrm{gini}}=\sum_{i=1}^{p-1}{\varphi }_{i}^{\mathrm{gini}}\), while the overall short-run effects of current and previous levels of gross domestic product, squared of gross domestic product, industrialization, urbanization, agriculture, and openness are obtained by \({\gamma }_{*}^{\mathrm{gdp}}=\sum_{i=0}^{p-1}{\gamma }_{i}^{\mathrm{gdp}}\), \({\omega }_{*}^{{\mathrm{gdp}}^{2}}=\sum_{i=0}^{p-1}{\omega }_{i}^{{\mathrm{gdp}}^{2}}\), \({\theta }_{*}^{\mathrm{ind}}=\sum_{i=0}^{p-1}{\theta }_{i}^{ind}\), \({\delta }_{*}^{\mathrm{urb}}=\sum_{i=0}^{p-1}{\delta }_{i}^{\mathrm{urb}}\), \({\vartheta }_{*}^{\mathrm{agri} }=\sum_{i=0}^{p-1}{\vartheta }_{i}^{\mathrm{agri}}\), and \({\pi }_{*}^{\mathrm{open}}=\sum_{i=0}^{p-1}{\pi }_{i}^{\mathrm{open}} ,\) respectively. However, the long-run coefficients of gross domestic product, squared of gross domestic product, industrialization, agriculture, and openness can be obtained by \({\beta }_{{\mathrm{gdp}}^{*}}=-\frac{{\beta }_{\mathrm{gdp}}}{\xi }\), \({\beta }_{{\mathrm{gdp}}^{2*}}=-\frac{{\beta }_{{\mathrm{gdp}}^{2}}}{\xi }\), \({\beta }_{{\mathrm{ind}}^{*}}=-\frac{{\beta }_{\mathrm{ind}}}{\xi }\), \({\beta }_{{\mathrm{urb}}^{*}}=-\frac{{\beta }_{\mathrm{urb}}}{\xi },\) \({\beta }_{{\mathrm{agri}}^{*}}=-\frac{{\beta }_{\mathrm{agri}}}{\xi }\) and \({\beta }_{{\mathrm{open}}^{*}}=-\frac{{\beta }_{\mathrm{open}}}{\xi }\), respectively.

In Eq. (4), \(\xi \left(\tau \right)\) represents the error correction term in different locations or quantiles \(\tau\) of the response variable, the Gini coefficient. It must be negative and significant to capture the speed of adjustment of the model in correcting the disequilibrium that occurs in the short run to move the model toward the long-run equilibrium path. Wald test is running to examine the null hypothesis of constancy of the speed of adjustment coefficient \({H}_{0}: \xi \left(0.05\right)=\xi \left(0.10\right)=\xi \left(0.20\right)= \xi \left(0.30\right)=\dots =\xi \left(0.95\right).\) Rejecting the null hypothesis \({H}_{0}\) implies that the error correction term has different values deepening on different locations of the Gini coefficient and supports an asymmetric long-run relationship between considered variables. Equation (4) also requires testing for location nonlinearity or asymmetry among the estimated coefficients across different quantiles in the short and long terms. The null hypotheses of parameter constancy in the short run can be represented as follows:

$$\begin{aligned}&{H}_{0}^{{\mathrm{short}}\, {\mathrm{run}}}: {\varphi }_{i}^{\mathrm{gini}}\left(0.05\right)={\varphi }_{i}^{\mathrm{gini}}\left(0.10\right)={\varphi }_{i}^{\mathrm{gini}}\left(0.20\right)= {\varphi }_{i}^{\mathrm{gini}}\left(0.30\right)=\dots ={\varphi }_{i}^{\mathrm{gini}}\left(0.95\right)\\ &{H}_{0}^{{\mathrm{short}}\, {\mathrm{run}}}: {\gamma }_{i}^{\mathrm{gdp}}\left(0.05\right)={\gamma }_{i}^{\mathrm{gdp}}\left(0.10\right)={\gamma }_{i}^{\mathrm{gdp}}\left(0.20\right)= {\gamma }_{i}^{\mathrm{gdp}}\left(0.30\right)=\dots ={\gamma }_{i}^{\mathrm{gdp}}\left(0.95\right)\\ &{H}_{0}^{{\mathrm{short}}\, {\mathrm{run}}}: {\omega }_{i}^{{\mathrm{gdp}}^{2}}\left(0.05\right)={\omega }_{i}^{{\mathrm{gdp}}^{2}}\left(0.10\right)={\omega }_{i}^{{\mathrm{gdp}}^{2}}\left(0.20\right)= {\omega }_{i}^{{\mathrm{gdp}}^{2}}\left(0.30\right)=\dots ={\omega }_{i}^{{\mathrm{gdp}}^{2}}\left(0.95\right)\\ &{H}_{0}^{{\mathrm{short}}\,{ \mathrm{run}}}: {\theta }_{i}^{\mathrm{ind}}\left(0.05\right)={\theta }_{i}^{\mathrm{ind}}\left(0.10\right)={\theta }_{i}^{\mathrm{ind}}\left(0.20\right)= {\theta }_{i}^{\mathrm{ind}}\left(0.30\right)=\dots ={\theta }_{i}^{\mathrm{ind}}\left(0.95\right)\\ &{H}_{0}^{{\mathrm{short}}\, {\mathrm{run}}}: {\delta }_{i}^{\mathrm{urb}}\left(0.05\right)={\delta }_{i}^{\mathrm{urb}}\left(0.10\right)={\delta }_{i}^{\mathrm{urb}}\left(0.20\right)= {\delta }_{i}^{\mathrm{urb}}\left(0.30\right)=\dots ={\delta }_{i}^{\mathrm{urb}}\left(0.95\right)\\ &{H}_{0}^{{\mathrm{short}}\, {\mathrm{run}}}: {\vartheta }_{i}^{\mathrm{agri} }\left(0.05\right)={\vartheta }_{i}^{\mathrm{agri} }\left(0.10\right)={\vartheta }_{i}^{\mathrm{agri} }\left(0.20\right)= {\vartheta }_{i}^{\mathrm{agri} }\left(0.30\right)=\dots ={\vartheta }_{i}^{\mathrm{agri} }\left(0.95\right)\\ &{H}_{0}^{{\mathrm{short}}\, {\mathrm{run}}}: {\pi }_{i}^{\mathrm{open}}\left(0.05\right)={\pi }_{i}^{\mathrm{open}}\left(0.10\right)={\pi }_{i}^{\mathrm{open}}\left(0.20\right)= {\pi }_{i}^{\mathrm{open}}\left(0.30\right)=\dots ={\pi }_{i}^{\mathrm{open}}\left(0.95\right)\end{aligned}$$

whereas the null hypotheses of parameter constancy in the long run:

$$\begin{aligned}&{H}_{0}^{{\mathrm{Long}}\,{\mathrm{run}}}:{\beta }_{{\mathrm{gdp}}^{*}}\left(0.05\right)={\beta }_{{\mathrm{gdp}}^{*}}\left(0.10\right)={\beta }_{{\mathrm{gdp}}^{*}}\left(0.20\right)= {\beta }_{{\mathrm{gdp}}^{*}}\left(0.30\right)=\dots ={\beta }_{{\mathrm{gdp}}^{*}}\left(0.95\right).\\ &{H}_{0}^{{\mathrm{Long}}\, {\mathrm{run}}}: {\beta }_{{\mathrm{gdp}}^{2*}}\left(0.05\right)={\beta }_{{\mathrm{gdp}}^{2*}}\left(0.10\right)={\beta }_{{\mathrm{gdp}}^{2*}}\left(0.20\right)= {\beta }_{{\mathrm{gdp}}^{2*}}\left(0.30\right)=\dots ={\beta }_{{\mathrm{gdp}}^{2*}}\left(0.95\right).\\ &{H}_{0}^{{\mathrm{Long}}\,{ \mathrm{run}}}: {\beta }_{{\mathrm{ind}}^{*}}\left(0.05\right)={\beta }_{{\mathrm{ind}}^{*}}\left(0.10\right)={\beta }_{{\mathrm{ind}}^{*}}\left(0.20\right)= {\beta }_{{\mathrm{ind}}^{*}}\left(0.30\right)=\dots ={\beta }_{{\mathrm{ind}}^{*}}\left(0.95\right).\\ &{H}_{0}^{{\mathrm{Long}}\, {\mathrm{run}}}: {\beta }_{{\mathrm{urb}}^{*}}\left(0.05\right)={\beta }_{{\mathrm{urb}}^{*}}\left(0.10\right)={\beta }_{{\mathrm{urb}}^{*}}\left(0.20\right)= {\beta }_{{\mathrm{urb}}^{*}}\left(0.30\right)=\dots ={\beta }_{{\mathrm{urb}}^{*}}\left(0.95\right).\\ &{H}_{0}^{{\mathrm{Long}}\,{ \mathrm{run}}}: {\beta }_{{\mathrm{agri}}^{*}}\left(0.05\right)={\beta }_{{\mathrm{agri}}^{*}}\left(0.10\right)={\beta }_{{agri}^{*}}\left(0.20\right)= {\beta }_{{\mathrm{agri}}^{*}}\left(0.30\right)=\dots ={\beta }_{{\mathrm{agri}}^{*}}\left(0.95\right).\\ &{H}_{0}^{{\mathrm{Long}} \,{\mathrm{run}}}: {\beta }_{{\mathrm{open}}^{*}}\left(0.05\right)={\beta }_{{\mathrm{open}}^{*}}\left(0.10\right)={\beta }_{{\mathrm{open}}^{*}}\left(0.20\right)= {\beta }_{{\mathrm{open}}^{*}}\left(0.30\right)=\dots ={\beta }_{{\mathrm{open}}^{*}}\left(0.95\right).\end{aligned}$$

Rejecting the null hypotheses implies that there are locational asymmetries that confirm the heterogeneous effects of GDP, the square of GDP, industrialization, urbanization, agriculture, and openness at different locations of the Gini coefficient of income inequality. These asymmetries imply that the coefficients \({\varphi }_{i}^{\mathrm{gini}}\left(\tau \right)\), \({\gamma }_{i}^{\mathrm{gdp}}\left(\tau \right)\), \({\omega }_{i}^{{\mathrm{gdp}}^{2}}\left(\tau \right)\), \({\theta }_{i}^{\mathrm{ind}}\left(\tau \right)\), \({\delta }_{i}^{\mathrm{urb}}(\tau ),\) \({\vartheta }_{i}^{\mathrm{agri} }\left(\tau \right)\), and \({\pi }_{i}^{\mathrm{open}}\left(\tau \right)\) are quantile dependent on the short run. The same implication can be inferred when rejecting the null hypotheses in the long run, which means that the coefficients \({\beta }_{{\mathrm{gdp}}*}\left(\tau \right)\), \({\beta }_{{\mathrm{gdp}}^{2*}}\left(\tau \right)\), \({\beta }_{{\mathrm{ind}}*}\left(\tau \right)\), \({\beta }_{{\mathrm{urb}}*}\left(\tau \right),\) \({\beta }_{{\mathrm{agri}}*}(\tau ),\) and \({\beta }_{{\mathrm{open}}*}(\tau )\) differ according to different quantiles of income inequality in the long run.

3.4 Unit root testing approach

Employing both ARDL and QARDL techniques requires that the integration order of all series does not exceed I(1) so that the F-statistic remains valid in judging the existence of cointegration (Shahbaz et al. 2012). Both two techniques, ARDL and QARDL, are valid when all variables are integrated of order one or zero, or a mix of I(0) and I(1). To confirm these integration preconditions of the variables, the study applies two different approaches in testing unit roots. The first is represented by the traditional unit root tests commonly used in the empirical literature, which includes a lot of tests like the augmented ADF test (Dickey and Fuller 1979), Phillip–Perron test, Phillips and Perron (1988), and the ADF-GLS test developed by Elliott et al. (1992). These tests ignore the potential impacts of structural breaks on changing the mean or variance of series and therefore, its results may be biased (Shahbaz et al. 2012). Thus, the nonstationarity of the time series in the level may be due to the occurrence of structural breaks in the variables (Mallick et al. 2021). Neglecting this may result in misleading results about the integration order of the time series and the choice of the correct econometric method. To avoid these potential shortcomings and their consequences, the study also uses the second approach of unit root tests, which considers the effect of structural breaks on the time path of both mean and variance of the variables. There are many of these tests that have been used in the empirical literature, some of these tests like Perron (1989) assume prior knowledge of the structural break date and treat it in the model exogenously. Other tests assume that the breaks are unknown and determined endogenously (Lee and Strazicich 2003; Zivot and Andrews 2002). In this study, we follow many empirical studies (Rafindadi and Ozturk 2017; Shahbaz et al. 2012) and recently Ali (2022) in using the two endogenous structural breaks test (CMR) of Clemente et al. (1998), which tests the unit root under two endogenous breakpoints (Valera et al. 2017) and is characterized by its ability to conduct a unit root test in two different cases of structural changes in the mean of the series, the sudden structural breaks case called additive outliers (AO), as well as the gradual structural breaks case which is called innovative outliers (IO). CMR extended the unit root test developed by Perron and Vogelsang (1992) to be able to test the unit root when the series has two structural breaks in its mean.

To run the CMR unit root test with two structural breaks, we first estimate the following equation:

$${y}_{t}=\mu +{\theta }_{1}{\mathrm{DU}}_{1t}+{\theta }_{2}{\mathrm{DU}}_{2t}+{e}_{t}$$
(5)

where \({\mathrm{DU}}_{1t}\) and \({\mathrm{DU}}_{2t}\) are dummy variables take 1 if \(t>\) the time breaks \({\mathrm{TB}}_{1}\) and \({\mathrm{TB}}_{2},\) and zero otherwise, respectively. Second, the estimated residual \({e}_{t}\) of Eq. (5) is used to generate Eq. (6):

$${e}_{t}=\sum_{i=0}^{k}{\vartheta }_{1t}{\mathrm{DTB}}_{1t-1}+\sum_{i=0}^{k}{\vartheta }_{2t}{\mathrm{DTB}}_{2t-1}+{\varphi e}_{t-1}+\sum_{i=0}^{k}{c}_{i}{e}_{t-i}+{\varepsilon }_{t}$$
(6)

both \({\mathrm{DTB}}_{1t}\) and \({\mathrm{DTB}}_{2t}\) are pulse variables equal to 1 if \(t={\mathrm{TB}}_{1t}+1\), \(t={\mathrm{TB}}_{2t}+1\) and equal to zero otherwise, respectively. If the autoregressive coefficient of the residual \(\varphi\) is significantly different from zero, we reject the null hypothesis of the existence of unit root under two structural breaks.

4 Results and discussion

4.1 Stationarity of the series

As already mentioned, it is necessary to confirm that the conditions for applying the QARDL model are met. Looking at the results reported in Table 3, we find that there is no variable is I(2). It is clear from the results of both the ADF, PP, and ADF-GLS tests that all time series are stationary at the first difference and become integrated with the first difference, except for the \({\mathrm{ind}}\) variable, which showed stationary at the level according to the ADF and PP tests. As shown in Table 4, the breaking points in the various variables, whether under the application of the AO or IO models, reflect the nature of the structural changes that occurred in the Egyptian economy during the study period that extends to more than four decades. For example, according to the sudden change model, the year 1991 marks the beginning of Egypt's implementation of economic reform and structural adjustment program (ERSAP) supported by the International Monetary Fund. The ERSAP represented a structural shift in macroeconomic policy orientations which directed economic policies toward liberalizing many prices, unifying the exchange rates of the Egyptian pound, and implementing a wide program of privatization. The same is true for 2013, when major political regime shifts occurred in that year, representing a sudden turning point.

Table 3 Unit root tests without structural breaks
Table 4 Unit root test with two endogenous breakpoints (Clemente et al. 1998)

4.2 Linear cointegration results

To estimate Eq. (4), we first run the OLS regression to capture the results of the traditional ARDL model as shown in Table 5. According to the Akaike Information Criterion (AIC), the optimal lag lengths chose ARDL (2, 1, 1, 0, 0, 1, 0) model. Results of the ARDL model set a highly significant and negative error correction speed to reach 72.9% yearly. It is a good adjustment speed that enables the model to correct the short-run disequilibrium and catch up with the equilibrium path in the long run. All the long-run coefficients of the model are significant. It is noticed that the Kuznets hypothesis is fulfilled, as the sign of the \({\mathrm{gdp}}\) coefficient is positive and significant, which turned to be significantly negative for \({\mathrm{gdp}}^{2}\) coefficient. The Kuznets inverted U-curve hypothesis has also been confirmed with more distributional effects of both \({\mathrm{gdp}}\) and \({\mathrm{gdp}}^{2}\) in the short run. This result means that the deterioration that occurs in income inequality during the early stages of economic growth will turn into an improvement path during later economic growth stages. In Egypt, linear ARDL results also indicate that urbanization is the most affecting variable on income inequality in the long run. An increase in urbanization by 1% reduces income inequality by 1.09% in the long run, but this effect has disappeared in the short run. Linear ARDL results also indicate that industrialization increases inequality. This effect is low in the long run (a 1% increase in industrialization leads to a 0.06% increase in the Gini coefficient) and does not exist in the short run. Although an increase in the share of agriculture in value added by 1% reduces income inequality during the short term by 0.01%, it leads to a deterioration of the Gini coefficient in the long run by 0.07%. Finally, openness has an improving effect on income distribution in the long run without any distributional effect in the short run.

Table 5 Ordinary least squares and QARDL results

4.3 Asymmetric cointegration results

Despite the importance of the linear ARDL results in exploring the cointegration relationships, this approach assumes that the effect of the model’s independent variables on income inequality is linear in both long and short runs. It also assumes that the error correction term and then the model’s speed in returning to the long-run equilibrium path does not change at different locations or quantiles of income inequality. This assumption may be valid if we reject the potential asymmetric relationship in the model. To confirm or refuse the linearity of the relationship between the model variables, Eq. (4) is estimated, and both Table 5 and Fig. 3 present the results of the QARDL model.

Fig. 3
figure 3

Estimates of parameters behavior across different quantiles

The same lag order specified in the ARDL guided by the AIC is used to estimate the QARDL model. Results show that the error correction terms in different quantiles, \(\xi \left(\tau \right),\) are negative and significant in all locations except for the 0.3th and 0.50th quantiles. Moreover, the error correction process differs in its speed of adjustment according to the conditional distribution of the response variable. Compared with middle and high quantiles, the speed of adjustment is relatively faster in low quantiles, where the errors are corrected at a rate of 64 to 65% per year. This speed decreases in the middle quantiles to range between 39.7 and 45.9%, whereas the model’s ability in removing its short-run disequilibrium to catch up long-run equilibrium path increases to a range between 55.4 and 58% in high quantiles. These different speeds of the adjustment process across different quantiles are confirmed by the Wald test results reported in Table 6. The null hypothesis of parameter constancy is highly rejected for \(\xi \left(\tau \right)\), which implies that the adjustment speed in correcting disequilibrium in the short run is quantile dependent. This result supports our view that the distributional effects of economic growth and structural change variables in Egypt should be analyzed in an asymmetric rather than linear framework.

Table 6 Wald test of parameter constancy

Although the results of the linear ARDL confirmed significant distributional effects of all variables, in the long run, the results of the QARDL reported in Table 5 are different and raise several points that need to be explained. First, estimates of QARDL show that Kuznets’ inverted U-shaped relationship between growth and inequality is fulfilled significantly only across the lower half of the quantiles. Signs of both \({\beta }_{{\mathrm{gdp}}^{*}}(\tau )\) and \({\beta }_{{\mathrm{gdp}}^{2*}}\left(\tau \right)\) are significantly positive and negative, respectively, whereas no evidence is found to support the Kuznets’ hypothesis when the Gini coefficient is located at the upper half of quantiles. This means that economic growth does not affect high levels of income inequality according to the path defined by the Kuznets hypothesis, while the Kuznets hypothesis is valid only at low levels of income inequality, specifically when the Gini coefficient is located within the lower half of quantiles. As a result, economic growth will reduce inequality in advanced stages of development for low half quantiles but has no significant effect on income distribution for upper half quantiles in Egypt. This result was not clear in this way according to the reported estimates of the linear ARDL results in Table 5 while the QARDL estimates highlighted that this hypothesis applies only for the lower half quantiles in Egypt in the long run. This result is consistent, to a large extent, with some developments in both poverty rates and income distribution evolution among the wealthy groups in Egypt in recent years. As noted by some World Bank studies, economic growth besides fiscal policies has reduced poverty in Egypt after 2012/2013 (World Bank 2019), which is confirmed by our results. At the same time, income inequality within wealthy classes has been increased according to the World Bank data on poverty and equity. During the period 2010–2017, the income share of the upper 10% population in Egypt has increased from 24.8 to 26.9%, whereas the total share of the upper 20% has ranged between 40.1 and 41% (World Bank 2021). This implies more income concentration in the hands of rich classes, and that economic growth in Egypt does not have any significant effect in reducing inequality across rich classes as captured by our results.

Second, urbanization is the most variable that reduces income inequality in Egypt, as it has a significant effect that reduces the Gini coefficient in all quantiles, and this is consistent with the results of the linear model, but its effect is very strong in the high extreme quantiles, 0.90th, 0.95th. A 1% increase in urbanization ratio reduces income inequality by 1.18%, 1.28%, respectively, compared with 1.05 to 1.1% in low quantiles. This means that the effect of urbanization on reducing income inequality is higher when the Gini coefficient is in the upper quantiles compared with the lower and middle quantiles. The improving and strong impact of urbanization on reducing income inequality in Egypt has seen also in other countries in some recent empirical studies like Padhan et al. (2020), Stiglitz (1969) and Wan et al. (2022) while contradicting the results of other studies that have confirmed the worsening distributional impact of urbanization on other middle and low-income countries (Chen et al. 2016; Kanbur and Zhuang 2013; Sulemana et al. 2019). But in the case of Egypt, it is possible to explain the strong role of urbanization in reducing income inequality in Egypt as a result of the large income gap between urban and rural in favor of the urban (Adams and Page 2003; Korayem 1981); therefore, any increase in the rate of urbanization resulted from economic growth processes will have a significant impact on reducing the overall income inequality in Egypt. The third point noted in the long-run results of the QARDL is the insignificant distributional effects of industrialization, agriculture, and openness across all quantiles. Industrialization had a bad effect on income inequality, except for the lower two quantiles, but it is not significant in all quantiles. This result contrasts with the significant worsening distributional effect of industrialization found in the linear ARDL estimates reported in Table 6. But looking at the value of the estimated industrialization coefficient according to the linear ARDL model, we find that it is very small, an increase in industrialization value added in the total value added by 1% leads to an increase in the Gini coefficient by only 0.06% in the long run. This analysis is relevant also in the cases of both agriculture and openness as shown in the small distributional effects of them in the long run.

For the short-run behavior of the model, estimates of QARDL show that past values of the first difference income inequality captured by \({\varphi }_{1}^{\mathrm{gini}}\left(\tau \right)\) lead to a significant increase in the Gini coefficient. These deteriorated effects are significant at all quantiles and become stronger in high quantiles compared with other middle and low quantiles. This means that inequality leads to more inequality in Egypt during the short run. This result is consistent with failure in capturing the existence of Kuznets inverted U-curve in Egypt during the short run where the coefficients \({\gamma }_{1}^{\mathrm{gdp}}\left(\tau \right)\) and \({\omega }_{1}^{{\mathrm{gdp}}^{2}}\left(\tau \right)\) are insignificant across all quantiles. Though the parameter constancy hypothesis is rejected for \({\gamma }_{1}^{\mathrm{gdp}}\left(\tau \right)\) and \({\omega }_{1}^{{\mathrm{gdp}}^{2}}\left(\tau \right)\). The same applies to the absence of a significant effect of agriculture on income inequality in the short run. Finally, the results of the Wald test for parameter constancy in Table 6 support rejecting the symmetry hypothesis for all parameters except for agricultural coefficients in the short run. This indicates that there is an asymmetry in the effect of the study variables on the income inequality in Egypt across the different quantiles.

5 Conclusion and policy implication

Considering the Egyptian economy’s multiple attempts to get out of the middle-income countries trap that many developing economies suffer from, and move to the ranks of developed countries, there is a need to analyze the distributional effects of both economic growth and structural changes that accompanied economic development path in Egypt during the previous four decades. Many empirical studies did not consider the effect of structural changes when analyzing the drivers of income inequality. In this context, the current study highlights the importance of augmenting the structural changes accompanying economic development policies to capture a more comprehensive picture of the determinants of income inequality in Egypt. To complete the picture, the current study also investigates the impact of both economic growth and structural changes in an asymmetric framework depending on newly econometric techniques that analyze the relationship between variables in an asymmetric and nonlinear framework rather than assuming symmetry. The QARDL methodology developed by Cho et al. (2015) is employed to explore potential asymmetric quantile cointegration between income inequality, economic growth, and structural changes proxied by the evolution of industrialization, urbanization, in addition to the percentage of both agriculture and foreign trade in GDP over the period 1975–2017. Results confirm an asymmetric cointegration between these variables. There is a long-run equilibrium relationship between income inequality, economic growth, and structural changes in Egypt. Speeds of adjustment to catch up with the long-run equilibrium path differ significantly across different quantiles to support the asymmetric behavior. While the disequilibrium is corrected in the short run at a speed of 65 to 64% for the lower quantiles, this correction process slows down to reach 55 to 58% at the upper locations of the Gini coefficient.

Egypt must take care of reducing income inequality as this will support economic growth. To achieve this, it must run different income redistribution policies through fiscal policy. As the results indicated, urbanization has a significant impact in reducing income inequality in the long run across all locations of the Gini index. Thus, the adoption of policies that increase urbanization will contribute significantly to reducing inequality in Egypt in the long run. The infeasibility of depending on fiscal policies in developing countries (Wan et al. 2022), including Egypt, to redistribute income and reduce inequality due to the weak financing capabilities and the permanent and structural budget deficits, accelerating urbanization rates is the most appropriate in reducing inequality in Egypt.

Results also indicated an important finding in which the Kuznets hypothesis is valid only when the Gini coefficient of income inequality is located at the lower half of income inequality quantiles, while it is not working in the upper half of the quantiles. This result is very important in guiding economic policymakers in Egypt and urging them to reduce inequality under its current levels so that the inverted U-shaped curve can be worked, and economic growth can be effective in reducing inequality in the long run.

There are several limits in handling the results of the study. The previous analysis did not address the impact of some potentially important variables that may contribute to explaining the decline in growth rates and related to income inequality at the same time, such as monitoring the impact of inequality on human development, and the impact of inequality on productivity in Egypt during the previous decades. Moreover, it remains said that the results of this study depend on the income inequality indicator that has been used, the Gini coefficient. So, it is possible that we may obtain results that contradict or agree with the results of our study if other indicators of inequality are used, such as the income share of the richest 10% of the population compared to the share of the poorest 40%; however, this remains subject to the availability of data in Egypt.