The impact of demographic changes on income distribution in a developing country