Package: hsemx
Type: Package
Title: Extended Hierarchical Structural Equation Models via
        h-Likelihood
Version: 1.0.0
Date: 2026-11-09
Authors@R: person("Rezzy Eko", "Caraka", email = "rezzyekocaraka@gmail.com",
                  role = c("aut", "cre"))
Maintainer: Rezzy Eko Caraka <rezzyekocaraka@gmail.com>
Description: 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.
License: GPL (>= 3)
Encoding: UTF-8
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
VignetteBuilder: knitr
Config/testthat/edition: 3
LazyData: true
RoxygenNote: 7.3.1
NeedsCompilation: no
Packaged: 2026-11-09 04:03:34 UTC; root
Author: Rezzy Eko Caraka [aut, cre]
Repository: CRAN
Date/Publication: 2026-12-01 15:00:02 UTC
