Structural Equation Modeling (SEM) Guide
Guides researchers in building, estimating, and evaluating structural equation models with latent variables using Python and R.
This skill provides comprehensive guidance for empirical researchers performing Structural Equation Modeling (SEM) across social science disciplines. It enables Claude to assist with both Confirmatory Factor Analysis (CFA) and full structural models, offering specific code snippets for R’s lavaan package and Python’s semopy. Whether you are testing mediation effects, evaluating model fit indices like RMSEA and CFI, or troubleshooting non-convergence, this skill provides the statistical patterns and best practices needed to execute rigorous quantitative analysis and interpret complex latent variable relationships.
Key Features
01Comprehensive R (lavaan) and Python (semopy) code generation
02Standardized model fit assessment (CFI, TLI, RMSEA, SRMR)
03Mediation analysis with bootstrap confidence interval support
04Diagnostics for multivariate normality and sample size requirements
05Confirmatory Factor Analysis (CFA) for latent variable validation
061,851 GitHub stars
Use Cases
01Validating measurement models for survey instruments using CFA
02Conducting path analysis to investigate direct and indirect causal relationships
03Developing and testing complex theoretical models in social science research