A tutorial for understanding SEM using R: Where do all the numbers come from?

Structural equation modeling (SEM) is often seen as a complex and difficult method, especially for those who want to understand how the numbers in SEM software output are actually computed. Although many open-source SEM tools are now available-especially in the R programming environment-looking into their source code to understand the underlying calculations can still be overwhelming. This tutorial aims to provide a clear and accessible introduction to the basic computations behind standard SEM analyses. Using two well-known example datasets, we show how to manually reproduce key results such as parameter estimates, standard errors, and fit measures using simple R scripts. The focus is on clarity and understanding rather than speed or efficiency. We hope that by following this tutorial, readers will gain a better grasp of how SEM works "under the hood," and be able to apply similar ideas in their own research.

Authors

Institutions

Publication Details

Journal
British Journal of Mathematical and Statistical Psychology
Published
2025-07-13
DOI
https://doi.org/10.1111/bmsp.70003
Primary Topic
Statistical Methods and Bayesian Inference
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A tutorial for understanding SEM using R: Where do all the numbers come from?

Yves Rosseel, Marc Vidal
British Journal of Mathematical and Statistical Psychology
Statistical Methods and Bayesian Inference
article

A tutorial for understanding SEM using R: Where do all the numbers come from?

Yves Rosseel, Marc Vidal
article en

Abstract

Structural equation modeling (SEM) is often seen as a complex and difficult method, especially for those who want to understand how the numbers in SEM software output are actually computed. Although many open-source SEM tools are now available-especially in the R programming environment-looking into their source code to understand the underlying calculations can still be overwhelming. This tutorial aims to provide a clear and accessible introduction to the basic computations behind standard SEM analyses. Using two well-known example datasets, we show how to manually reproduce key results such as parameter estimates, standard errors, and fit measures using simple R scripts. The focus is on clarity and understanding rather than speed or efficiency. We hope that by following this tutorial, readers will gain a better grasp of how SEM works "under the hood," and be able to apply similar ideas in their own research.

British Journal of Mathematical and Statistical Psychology
HOGENT University of Applied Sciences and Arts (BE), Ghent University Hospital (BE), Ghent University (BE), Max Planck Institute for Human Cognitive and Brain Sciences (DE)
Fonds Wetenschappelijk Onderzoek
Quality Education
Openalex Percentile: Top 83%
Statistical Methods and Bayesian Inference
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.