Skip to content

About

Structural equation model of social trust, institutional satisfaction and social wellbeing as predictors of happiness in Europe (ESS Round 11, N ~ 50k). EFA, CFA and SEM in R with lavaan.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Architecture of Happiness: A Structural Equation Model Disentangling Interpersonal and Institutional Predictors of Happiness

Authors

  • Thauri Dattadeen
  • Fabian Lindh
  • Pontus Samnegård

Question

How do social trust, satisfaction with institutions, and social wellbeing relate to self-reported happiness across Europe?

Constructs

Latent factor Indicators (ESS variables)
Social Trust ppltrst, pplfair, pplhlp
Institutional Satisfaction stfeco, stfgov, stfdem
Social Wellbeing sclmeet, sclact, inprdsc
Happiness (single indicator) happy

Method

  1. Missing-data diagnostics (Little's MCAR test), so models use FIML.
  2. EFA: KMO, Bartlett, parallel analysis, 3-factor oblimin solution.
  3. CFA of the three-factor measurement model (MLR estimator, FIML).
  4. Full SEM regressing Happiness on the three latent factors.

Headline result

Using ~50,000 respondents from ESS Round 11, all three factors significantly predict happiness (p < .001). Social Wellbeing matters most, ahead of trust in institutions or in other people.

Predictor of Happiness Standardised γ
Social Wellbeing 0.32
Institutional Satisfaction 0.19
Social Trust 0.12

SEM path diagram with standardised estimates

Standardised solution (MLR, FIML). Solid arrows: freely estimated paths; dashed: fixed or residual terms. *** p < .001.

Model fit (MLR, FIML):

Model CFI TLI RMSEA SRMR
CFA (measurement) 0.970 0.955 0.056 0.038
Full SEM 0.968 0.952 0.054 0.036

The full write-up is in report/report.pdf.

Data

The analysis uses the European Social Survey Round 11 (2023), edition 4.1 (ESS ERIC, 2024; https://doi.org/10.21338/ess11e04_1). The data file is not included; see data/README.md for how to obtain it and the full citation.

How to run

  1. Get the data as described in data/README.md.
  2. Install the packages:
    install.packages(c("lavaan", "lavaangui", "psych", "naniar"))
  3. From the repository root:
    Rscript analysis/sem_analysis.R
    (lavaangui() opens interactive plots; comment those lines out for a non-interactive run.)

Structure

├── analysis/sem_analysis.R   # full analysis
├── data/README.md            # how to obtain the data
├── figures/                  # exported plots
└── report/report.pdf         # final report

About

Structural equation model of social trust, institutional satisfaction and social wellbeing as predictors of happiness in Europe (ESS Round 11, N ~ 50k). EFA, CFA and SEM in R with lavaan.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages