hsemx: Extended Hierarchical Structural Equation Models via h-Likelihood

An extended and re-engineered successor of the 'hsem' package (hierarchical structural equation models by h-likelihood), released under a new name because 'hsem' already exists on CRAN. It builds on the hierarchical-likelihood structural equation model of Caraka et al. (2021) <doi:10.3390/sym13040657> and Caraka et al. (2022) <doi:10.3390/su14010524>, and on h-likelihood work by Caraka et al. (2020) <doi:10.1109/ACCESS.2020.3033796> and Caraka et al. (2022) <doi:10.1186/s40537-022-00626-y>. Fits hierarchical (multilevel) structural equation models: systems of generalized linear mixed-effects regressions (Gaussian, binomial, Poisson, Gamma) in which random intercepts and random slopes of all equations are jointly distributed and may be correlated within and across equations (unstructured, block, diagonal, shared-factor and one-factor covariance structures), with optional regression models for the dispersion. Estimation uses the h-likelihood: exact maximum and restricted maximum likelihood for Gaussian models and Laplace approximations otherwise (Lee and Nelder (1996) <doi:10.1111/j.2517-6161.1996.tb02105.x>; Lee, Nelder and Pawitan (2006, ISBN:9781584886310)). Average direct, indirect and total effects account for random-slope covariances (Bauer, Preacher and Gil (2006) <doi:10.1037/1082-989X.11.2.142>). Neural-network components (multi-layer perceptron, residual, gated and deep-ensemble networks) can be added to the linear predictors. Includes path diagrams with random effects, assumption checks with simulation-based and randomized quantile residuals, lineup tests, cluster influence, parametric bootstrap, likelihood-ratio tests, cross-validation, Monte Carlo simulation studies with Monte Carlo standard errors and simulation-based power analysis.

Version: 1.0.0
Depends: R (≥ 4.1.0)
Imports: Matrix (≥ 1.6-0), numDeriv, nlme, ggplot2 (≥ 3.4.0), patchwork, grid, methods, stats, utils, parallel
Suggests: lme4, glmmTMB, testthat (≥ 3.0.0), knitr, rmarkdown
Published: 2026-12-01
DOI: 10.32614/CRAN.package.hsemx (may not be active yet)
Author: Rezzy Eko Caraka [aut, cre]
Maintainer: Rezzy Eko Caraka <rezzyekocaraka at gmail.com>
License: GPL (≥ 3)
NeedsCompilation: no
Citation: hsemx citation info
Materials: README, NEWS
CRAN checks: hsemx results

Documentation:

Reference manual: hsemx.html , hsemx.pdf
Vignettes: hsemx: extended hierarchical structural equation models (source, R code)

Downloads:

Package source: hsemx_1.0.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=hsemx to link to this page.