Reproducible Research Repository
Reproducible Research Repository
  • Home
  • Repository
  • Collections
  • About
    Home / Repository / PRWP / RR_MYS_2026_587
PRWP

Reproducibility package for Counteracting The Impact Of Societal Aging On Income Inequality: A Case Study Of Malaysia

2026
Get Reproducibility Package
Reference ID
RR_MYS_2026_587
Author(s)
Gerton Rongen, Matthew Dornan, Philip O'Keefe, Peter Lanjouw
Collections
World Bank Policy Research Working Papers
Metadata
JSON
Created on
Mar 16, 2026
Last modified
Mar 16, 2026
  • Project Description
  • Downloads
  • Overview
  • Reproducibility Package
  • Description
  • Scope and coverage
  • Disclaimer
  • Access and rights
  • Contacts
  • Information on metadata
  • Overview

    Abstract

    This paper analyzes the effect of societal aging on income inequality in Malaysia, to date and in coming decades. The study starts from the hypothesis that, all things equal, aging exerts upward pressure on inequality (Deaton and Paxson (1994, 1995)). Drawing on nationally representative household survey data over the past two decades, the study finds evidence in support of this hypothesis in Malaysia. This picture becomes even sharper when projecting inequality levels for the years when Malaysia is forecast to reach aged (2045) and super-aged (2056) status. Estimates show that between 2022 and 2056, overall inequality of individual incomes could rise by as much as 13 percent due to aging. The analysis then demonstrates that expansion of a social pension system would attenuate this projected rise in inequality. The paper also undertakes counterfactual exercises in which the expansion of an old age social pension with various design variants is simulated. The variants considered would expand existing social transfers for older people; given public revenue and spending patterns in Malaysia some of these design options are potentially manageable from a fiscal perspective. The analysis suggests that, relative to the observed situation in 2022, wider coverage social pensions could have resulted in lower inequality in household per capita income amongst older individuals (by 12 - 26 percent), thereby lowering overall inequality (by 4 - 9 percent). This inequality-reducing effect of social pensions becomes even more marked when projecting estimates of inequality for 2045 and 2056. Findings show, moreover, that expanded pensions would have resulted in a lower headcount poverty rate in 2022 by 1.3 – 4.2 percentage points among the 60+ population, and by 0.5 – 1.9 points among the overall population.

    Reproducibility Package

    Scripts
    Readme Get Reproducibility Package
    Link: https://reproducibility.worldbank.org/catalog/504/download/1447/README.pdf
    Reproducibility package for Counteracting The Impact Of Societal Aging On Income Inequality: A Case Study Of Malaysia
    File name
    RR_MYS_2026_587
    Zip package
    RR_MYS_2026_587.zip
    Title
    Reproducibility package for Counteracting The Impact Of Societal Aging On Income Inequality: A Case Study Of Malaysia
    Date
    2026-03
    Dependencies
    Stata dependencies are listed in the ado folder.
    Instructions
    See README in reproducibility package.
    Notes
    Computational reproducibility verified by Development Impact (DECDI) Analytics team, World Bank.
    Source code repository
    Repository name URI
    Reproducible Research Repository (World Bank) https://reproducibility.worldbank.org
    Software
    Stata
    Name
    Stata
    Version
    19.5

    Reproducibility

    Technology environment

    Paper exhibits were reproduced on a computer with the following specifications:
    • OS: Windows 11 Enterprise
    • Processor: Intel(R) Xeon(R) Gold 5218 CPU @ 2.30GHz (2.30 GHz) (2 processors)
    • Memory available: 5.63 GB

    Technology requirements

    Run time: 9.5 hours

    Reproduction instructions

    To reproduce the findings in the paper, users need to follow the steps below:

    1. Prepare the data

      • Place the following datasets in the appropriate data folder:
        • wpp_projections_2024.dta
        • HIS_ID_2004_2022.dta
      • The dataset HIS_ID_2004_2022.dta is restricted. Users must obtain access to this dataset before attempting to run the code. Please refer to the Data section of the README for more information on how to request access.
    2. Run the master script

      • The replication package contains a master do-file named wb_rep_aging_master located in the code subfolder.
      • This is the only do-file that needs to be executed.
      • In the master file, users must first specify the root directory. All other required folders will be generated automatically.
    3. User-written Stata programs

      • All required user-written Stata programs are included in an ado subfolder.
      • The location of this folder is defined within the master do-file.

    Note: Because one of the required datasets (HIS_ID_2004_2022.dta) is restricted, users without access will not be able to execute the code. For transparency and verification purposes, the package includes a folder containing the outputs generated by the replicators, as well as a log file with the run of the package. These outputs can be used to verify that the results correspond to those reported in the published paper.

    Data

    Datasets
    World Population Prospects 2024
    Name
    World Population Prospects 2024
    Note
    The analysis utilizes a processed subset of the World Population Prospects (2024), accessed in October 2024. While the original source provides global data, the dataset used here (wpp_projections_2024.dta) has been specifically filtered for Malaysia and is located within the /data subfolder. The dataset is restricted to the years 2004, 2022, 2045, and 2056. It includes population distributions across standard age brackets 0–14, 15–24, 25–49, 50–60, 60+, 50–65, 65+, 50–70, and 70+.
    Access policy
    Data is publicly available and included in the reproducibility package
    License
    CC BY 3.0
    License URL
    https://creativecommons.org/licenses/by/3.0/igo/
    Data URL
    https://population.un.org/wpp/assets/Excel%20Files/1_Indicator%20(Standard)/EXCEL_FILES/2_Population/WPP2024_POP_F06_1_POPULATION_PERCENTAGE_SELECT_AGE_GROUPS_BOTH_SEXES.xlsx
    Citation
    United Nations Department of Economic and Social Affairs. 2024. "World Population Prospects 2024" [dataset]. https://population.un.org/wpp/assets/Excel%20Files/1_Indicator%20(Standard)/EXCEL_FILES/2_Population/WPP2024_POP_F06_1_POPULATION_PERCENTAGE_SELECT_AGE_GROUPS_BOTH_SEXES.xlsx. Access date: October 2024.
    Household Income and Expenditure Survey (HIES) 2004-2022
    Name
    Household Income and Expenditure Survey (HIES) 2004-2022
    Note
    Access to this file is restricted and was obtained through a formal agreement between DOSM and the World Bank; redistribution is not permitted. In addition, the code to process this data is also confidential. For more information on this, please get in touch with the author at: a.g.m.j.rongen@vu.nl; mdornan@worldbank.org. Data were processed from source files provided by DOSM and accessed in three waves: 2004-2016, 2019, and 2022. Processing consisted of: 1) harmonisation of variables through recoding and reconstruction; 2) generation of dummy variables for household and individual characteristics; 3) construction of a spatial price index (see Rongen and Lanjouw (2024) for further details); and 4) generation of aggregated income, social assistance, and pension variables. A complete list of variables and labels included in the dataset is contained in the reproducibility package in the file Data_Dictionary.xslx. File location: HIS_ID_2004_2022.dta in subfolder 'data'. Access date: October 2023.
    Access policy
    Data access was granted directly to the study authors by the data owners. It was obtained with a custom data license that does not allow for redistribution, and it is not included in the reproducibility package.
    License
    Custom License
    Citation
    Department of Statistics Malaysia. (n.d). Household Income and Expenditure Survey (HIES) 2004-2022 [dataset]. Unpublished data. Access date: October 2023.
    Data statement

    Some data is restricted and has not been included in the reproducibility package. For more details, please refer to the README file.

    Description

    Output
    Counteracting The Impact Of Societal Aging On Income Inequality: A Case Study Of Malaysia
    Type
    Working Paper
    Title
    Counteracting The Impact Of Societal Aging On Income Inequality: A Case Study Of Malaysia
    Description
    Policy Research Working Papers (PRWP)
    Authors
    Author Affiliation Email
    Gerton Rongen Vrije Universiteit Amsterdam; Amsterdam Institute for Global Health and Development a.g.m.j.rongen@vu.nl
    Matthew Dornan World Bank mdornan@worldbank.org
    Philip O'Keefe University of New South Wales, World Bank pokeefe@worldbank.org
    Peter Lanjouw Vrije Universiteit Amsterdam p.f.lanjouw@vu.nl
    Date of production

    2026-03-09

    Scope and coverage

    Geographic locations
    Location Code
    Malaysia MYS
    Keywords
    Population Aging Income Inequality Poverty Pensions Decomposition Malaysia
    Topics
    ID Topic Parent topic ID Vocabulary Vocabulary URI
    D31 Personal Income, Wealth, and Their Distributions D3 Journal of Economic Literature (JEL)
    H55 Social Security and Public Pensions H5 Journal of Economic Literature (JEL)
    J11 Demographic Trends, Macroeconomic Effects, and Forecasts J1 Journal of Economic Literature (JEL)
    J26 Retirement • Retirement Policies J2 Journal of Economic Literature (JEL)
    O15 Human Resources • Human Development • Income Distribution • Migration O1 Journal of Economic Literature (JEL)

    Disclaimer

    Disclaimer

    The materials in the reproducibility packages are distributed as they were prepared by the staff of the International Bank for Reconstruction and Development/The World Bank. The findings, interpretations, and conclusions expressed in this event do not necessarily reflect the views of the World Bank, the Executive Directors of the World Bank, or the governments they represent. The World Bank does not guarantee the accuracy of the materials included in the reproducibility package.

    Access and rights

    License
    Name URI
    Modified BSD3 https://opensource.org/license/bsd-3-clause/

    Contacts

    Contacts
    Name Affiliation Email
    Gerton Rongen Vrije Universiteit Amsterdam; Amsterdam Institute for Global Health and Development a.g.m.j.rongen@vu.nl
    Reproducibility WBG World Bank reproducibility@worldbank.org

    Information on metadata

    Producers
    Name Abbreviation Affiliation Role
    Reproducibility WBG DECDI World Bank - Development Impact Department Verification and preparation of metadata
    Date of Production

    2026-03-09

    Document version

    1

    Back to Catalog
    The World Bank Working for a World Free of Poverty
    • IBRD IDA IFC MIGA ICSID

    © The World Bank Group, All Rights Reserved.