A just-for-fun reproduction of the regression analysis in Table 2 of the article "Consumer Spending in China: The Past and the Future" by Jun Nie and Andrew Palmer.
The analysis regresses the consumption share in GDP (NE.CON.PETC.ZS) in selected countries against
- the young dependency ratio (SP.POP.DPND.YG),
- the old dependency ratio (SP.POP.DPND.OL), and