Calibrated Simulation of Individual Level Data for the Basic National Pension Scheme (Tier 1) in Ghana for the Periods 2015 to 2024
Description
This depository is the result of a calibrated microsimulation that generated the first individual-level dataset for Ghana’s Basic National Pension Scheme (Tier 1) for the period 2015 to 2024. The dataset combines publicly available annual aggregates from the Social Security and National Insurance Trust (SSNIT), National Pensions Regulatory Authority (NPRA) and the Ministry of Labour, Jobs and Employment (MLJE) with demographic, labour and mortality inputs from the Ghana Statistical Service (GSS) and the United Nations World Population Prospects. Using stratified sampling, membership transition modeling and poststratification calibration, the dataset recreates contributors, retirees and non-members at fine age-sex resolution while exactly reproducing official totals on contributions and benefits/pensions. The resulting microdata support distributional analysis of earnings, contributions, pensions and replacement rates, as well as actuarial projections, policy simulations and research on pension adequacy, coverage expansion and long-term social protection financing in Ghana.
Files
Steps to reproduce
The microsimulation code is available at: https://github.com/dowusuabeyie/pension_microsimulation_Gh 1. Clone and open the repository (e.g., in VS Code) 2. Install required Python packages by running: pip install -r requirements.txt 3. Run the microsimulation panel, which generates the yearly microdata files (e.g., micro_2015.csv, etc.) together with their diagnostics: python run_panel.py 4. Append all yearly microdata into a single dataset: python append_micro.py The CSV files of the microdata and diagnostics will be produced and saved in the "/output" subfolder. Additionally, all the Python files with filenames "diag_<plotname>.py" can be run. This will produce diagnostic plots and they will be saved in the "/figures" subfolder.