Introducing the R package psychonetrics

for psychometric network modeling and structural equation modeling

Sacha Epskamp

Australasian Mathematical Psychology Conference 2026

slides QR code to slides sachaepskamp.com/AMPC2026

Methods, Data Science & AI Lab

The Methods, Data Science & AI Lab at the National University of Singapore focuses on developing and advancing quantitative methods for the behavioral and social sciences. Our work spans network psychometrics, longitudinal data modeling, structural equation modeling, and the application of data science and AI techniques to psychological research.

Director
Sacha Epskamp
Sacha Epskamp
Associate Professor
National University of Singapore
Kong Yuwei
Kong Yuwei
PhD Student
National University of Singapore
Nadyanna Majeed
Nadyanna Majeed
Affiliate PhD Student
National University of Singapore
Park Hyungjun
Park Hyungjun
Affiliate PhD Student
National University of Singapore
Xinkai Du
Xinkai Du
PhD Student
University of Oslo
Lee Sze Chi
Lee Sze Chi
Affiliate PhD Student
National University of Singapore
Björn Siepe
Björn Siepe
Visiting PhD Student
University of Marburg

Latent Variable Modeling

Many psychological constructs are traditionally modeled as latent variables—implicitly through sum-scores or explicitly through psychometric modeling frameworks such as SEM and IRT. For identifiability, these models assume local independence. In psychopathology, this aligns with the medical model, in which a disease gives rise to symptoms.

Latent Variable An unobserved variable assumed to act as a common cause of its observed indicators.
SEM & IRT Structural Equation Modeling and Item Response Theory—popular psychometric frameworks.
Local Independence The latent construct explains most of the covariation between observed indicators.
Latent variable model diagram

Network Perspectives

Network perspectives have been proposed as conceptual alternatives to latent variable theories, reconceptualizing psychological constructs as systems of interacting components rather than reflections of an underlying latent variable. Network perspectives were first adopted in clinical and personality research, pioneered by Denny Borsboom and Angélique Cramer at the University of Amsterdam.

Networks A set of nodes (vertices) connected by links (edges). Networks can be directed or undirected. In the network perspective, nodes represent variables (e.g., symptoms) and links represent causal or statistical relationships.
Network Perspective A conceptual framework for thinking about psychological constructs as causal systems—not yet a specific modeling technique.
Network model diagram

Network Psychometrics

Inspired by the network perspective, a field of research emerged focused on the exploratory estimation of network structures from psychological data—network psychometrics. Commonly used models in this area include pairwise Markov random fields (PMRF) for cross-sectional data and vector autoregression (VAR) models for longitudinal data. Results from these frameworks are visualized as networks. Blue links indicate positive relationships and red links indicate negative relationships.

PMRF A link indicates that two variables are associated after conditioning on all others. For continuous data: a Gaussian graphical model (GGM)—a network of partial correlations.
VAR A vector autoregression model capturing temporal prediction by regressing each variable on all variables at the preceding time point.
Graphical VAR Extends the VAR model by modeling residual correlations as a GGM, revealing contemporaneous relationships beyond temporal effects.
PTSD network model

Pioneering Software in Network Psychometrics

qgraph
R
Network visualization, construction, and estimation for network-based data analysis.
bootnet
R
Bootstrap methods for assessing the accuracy and stability of estimated network structures.
mlVAR
R
Multi-level vector autoregression for estimating temporal and contemporaneous network effects across multiple subjects.
graphicalVAR
R
Estimation of temporal and contemporaneous network effects from single-subject longitudinal data.
IsingSampler
R
Sampling methods and distribution functions for the Ising model on binary data.
mgm
R
Estimation of time-varying mixed graphical models for datasets containing variables of different types.
IsingFit
R
Fitting Ising models to binary data using eLasso regularization for network estimation.
NetworkComparisonTest
R
Permutation-based hypothesis testing for comparing network structures and global strength across groups.
BGGM
R
Bayesian estimation and hypothesis testing for Gaussian graphical models.
EGAnet
R
Exploratory graph analysis for estimating the number of dimensions in multivariate data using network methods.
networktree
R
Recursive partitioning of network models to detect subgroups with distinct network structures.
networktools
R
Assorted tools for identifying important nodes in networks, including bridge centrality and expected influence.

Towards Crystalized Methods

Network psychometrics has matured into a well-established field with crystalized estimation methods and best-practice recommendations. A textbook published in 2022 consolidates much of this knowledge. While originating from the network perspective, network estimation tools have proven valuable as exploratory techniques beyond any single causal framework, and are now widely adopted in latent variable modeling as well.

Reference Isvoranu, A.M., Epskamp, S., Waldorp, L.J., & Borsboom, D. (Eds.). (2022). Network Psychometrics with R: A Guide for Behavioral and Social Scientists. Routledge.
Network Psychometrics with R textbook cover

Latent Variable Modeling versus Network Modeling

Both latent variable modeling and network modeling have distinct strengths and limitations. However, mathematically the two frameworks are more similar than they might appear: for continuous data, both SEM and GGMs are simply models for the covariance matrix. For binary data, a similar equivalence holds between IRT and Ising models.

Latent Variable Modeling (SEM)

  • Includes latent variables (measurement error)
  • Plethora of fit indices
  • Parameter significance testing
  • Modification indices for model refinement
  • Robust and WLS estimators
  • Multi-group models
  • FIML for missing data
  • Limited exploratory search
  • Often assumes acyclicity
𝛴 = 𝛬 𝛴𝜁 𝛬⊤ + 𝛴𝜀

Network Modeling (GGM)

  • Uniquely identified
  • Strong exploratory search via regularization
  • No assumed acyclicity
  • Sparse, interpretable models
  • No latent variables (no measurement error modeling)
  • No fit measures
  • Limited group comparison methods
  • Suboptimal model search in high dimensions
  • Poor missing data handling
𝛴 = 𝛥 (I − 𝛺)−1 𝛥

psychonetrics is an R package that unifies structural equation modeling (SEM) and network analysis under a single framework. It offers a wide array of exploratory and confirmatory modeling techniques. R

Confirmatory Network Modeling
Specify, estimate, and test hypothesized network structures with full model fit statistics.
Multi-Group Analysis
Compare networks and SEM models across groups with flexible equality constraints and invariance testing.
Multiple Estimators
Support for ML, FIML, penalized ML, WLS, DWLS, and WLSMV estimation methods.
Model Search
Pruning, stepwise search, and combined strategies guided by modification indices and information criteria.
Penalized Estimation
LASSO, Ridge, and Elastic Net regularization with automatic penalty selection via EBIC.
Multiple Data Types
Handles continuous, ordinal, and binary data across different study designs.
Missing Data Handling
Full Information Maximum Likelihood (FIML) for handling missing data without listwise deletion.
High Performance
Core computations in C++ via Rcpp and RcppArmadillo for fast estimation, even with large models.
TypeDecompositionInterpretation
cov𝛴Covariance matrix (direct)
chol𝛴 = L L′Cholesky decomposition
ggm𝛴 = 𝛥(I − 𝛺)−1𝛥Gaussian graphical model

Modeling Frameworks

The core innovation in psychonetrics is that any variance–covariance matrix can be modeled as a network (GGM). This flexibility enables powerful extensions such as latent and residual network modeling, graphical VAR for time-series and panel data, and meta-analytic network aggregation. Click the boxes below for more information.

varcov
Models a variance–covariance matrix directly or as a GGM.
lvm
Latent variable modeling for SEM, latent network modeling (LNM) and residual network modeling (RNM).
var1 / tsdlvm1
Graphical vector autoregression for N=1 time-series.
dlvm1 / panelvar
Dynamic latent variable model for panel data. Includes panelgvar as special case.
Ising
The Ising model for dichotomous data, supporting estimation of network temperature.
meta_varcov / meta_lvm
Meta-analytic network aggregation and correlation modeling (MAGNA).

Gaussian Graphical Model (GGM)

GGM estimation example from Network Psychometrics with R—Chapter 6. Data is a subset of data collected by Adela Isvoranu during an online course on network modeling (full data: osf.io/45n6d).

R Estimation
# Load packages:
library("psychonetrics")
library("qgraph")

# Read data into R:
data <- read.csv("NA_2020_data.csv")

# Form a model:
mod <- ggm(data, estimator = "FIML")

# Run the model:
mod <- runmodel(mod)

# Show estimated parameters:
parameters(mod)
Estimated GGM network Confidence intervals for edge weights

Latent Network Example

Independent Study Module project by Nadyanna Majeed. N = 749 Singaporean young adults.

Confirmatory model — factor structure with a method factor for reverse-coded items.
Exploratory search — prune (α = 0.01) followed by step-up BIC optimisation.

Latent network model structure
Model χ² df p CFI TLI RMSEA AIC BIC
Confirmatory
Without method factors 3091.33 681 <.001 .800 .782 .069 73444.10 74081.49
With method factors 1538.91 642 <.001 .926 .914 .043 71969.69 72787.21
Exploratory
With pruning only 1576.02 654 <.001 .923 .913 .043 71982.79 72744.89
With pruning and step-up 1551.27 652 <.001 .925 .915 .043 71962.05 72733.38

Note. Exploratory models used the confirmatory model with method factors as starting point.

PanelGVAR Example

Freichel et al. (2023) modelled PTSD symptom dynamics using a panel graphical VAR model. N = 1,874 Norwegian adults across 4 waves over 8 months during COVID-19. Exploratory search identified temporal and contemporaneous relations between PTSD clusters, suicidal ideation, maladaptive coping strategies, and metacognitions.

PanelGVAR contemporaneous network — Freichel et al. (2023)
Reference Freichel, R., Skjerdingstad, N., Mansueto, A. C., Epskamp, S., Hoffart, A., Johnson, S. U., & Ebrahimi, O. V. (2025). Use of substances to cope predicts posttraumatic stress disorder symptom persistence: Investigating patterns of interactions between symptoms and its maintaining mechanisms. Psychological Trauma: Theory, Research, Practice, and Policy, 17(1), 216–224.

Ising Model Example

Grimes et al. (2025) used multi-group Ising models to study stability in depression symptoms across adolescence in three large cohorts (ABCD, N = 11,726; ALSPAC, N = 9,217; MCS, N = 14,958). Network temperature decreased with age, indicating increasing symptom stability.

Network temperature across age — Grimes et al. (2025)
Network temperature A parameter in the Ising model that controls randomness in responses. Constrained to 1 for identification in a single-group model but freely estimated in a multi-group model.
Reference Grimes, P. Z., Murray, A. L., Smith, K., Allegrini, A. G., Piazza, G. G., Larsson, H., … & Kwong, A. S. (2025). Network temperature as a metric of stability in depression symptoms across adolescence. Nature Mental Health, 3(5), 548–557.

Conclusion

Network psychometrics emerged as an alternative to latent variable modeling, yet the two frameworks share deep structural connections. The psychonetrics package bridges both fields within a single encompassing SEM framework—supporting confirmatory fit, multi-group modeling, and latent network modeling for cross-sectional and longitudinal data.

Panel Data Modeling
Improved estimation and search algorithms for panel VAR and panel GVAR models.
JASP Integration
Graphical user interface for psychonetrics via integration in the JASP statistical software.
TensorFlow Estimation
GPU-accelerated estimation using TensorFlow for faster fitting of large-scale models.
Multi-level SEM
Extension to hierarchical and multi-level structural equation models for nested data.
Validation Studies
Broader simulation and empirical validation of model search procedures and fit indices.

Thank you for your attention!

Sacha Epskamp

Department of Psychology, Faculty of Arts & Social Sciences
Block AS4, Level 2 · 9 Arts Link · Singapore 117570
slides QR code to slides sachaepskamp.com/AMPC2026