Files associated with analysis of IPUM-MICS dataset on subjective wellbeing of Nigeria youth between 2016-2021
# READ ME
# Temporal Changes in Youth Subjective Well-Being in Nigeria, 2016–2021
Analysis of affective and evaluative well-being among Nigerian youth aged 15–24 using IPUMS-harmonised MICS data (2016–2017 and 2021), linked with state-year structural indicators from the Global Data Lab (GVI, Cleanliness Index, Gini inequality). Examines temporal decline and whether state-level vulnerability moderates the trend (Year × GVI interaction).
### Table of Contents
- Overview
- Key Findings
- Data Sources
- Requirements
- How to Reproduce
- Folder Structure
- Results Summary
- License
- Contact & Citation
## Overview
This repository contains the code and documentation for the study examining changes in youth subjective well-being (SWB) in Nigeria between 2016 and 2021, with a focus on the role of state-level structural factors.
## Key Findings
- Affective happiness declined significantly from 2016 (mean 4.5, 61% very happy) to 2021 (mean 4.1, 41% very happy; p < 0.001)
- The negative association between state-level vulnerability (GVI) and happiness strengthened in 2021 (Year × GVI interaction)
- Female gender, higher education, and rural residence were protective
- Formerly/never married status, non-Hausa ethnicity, and worsened perceived well-being trajectories were strong risk factors
- Low between-state variation (ICC ≈ 3.4%) supports survey-weighted models as primary
## Data Sources
- **Individual-level**: IPUMS-harmonised Nigeria MICS 2016 (MICS5) and 2021 (MICS6) → youth aged 15–24 (unweighted n = 41,175)
- **Contextual**: Global Data Lab (GDL) → state-year values for:
- Global Vulnerability Index (GVI)
- Institutional quality (Cleanliness Index / fullsci)
- Gini coefficient of income inequality
- **GDL data of years 2016 and 2021 were downloaded**
- Final cleaned dataset: `4youth_happiness.rds`
## Requirements
tidyverse,
srvyr,
survey,
janitor,
broom,
gtsummary,
car,
sandwich,
questionr,
jtools,
lme4,
lmeSurvey,
sjPlot,
ggplot2
- R version ≥ 4.4.1
- Requi …