hsemx 1.0.0 — Extended Hierarchical Structural Equation Models via h-likelihood

Maintainer: Rezzy Eko Caraka rezzyekocaraka@gmail.com

About

hsemx (hsem extended) is an extended, re-engineered successor of the CRAN package hsem 1.0 (Caraka, Noh & Lee, 2021). It is released under a new name because hsem already exists on CRAN. The two packages can be installed side by side; attach only one per session, because both export hsem().

What hsemx extends:

References (h-likelihood work behind hsemx)

Scripts written for hsem 1.0 can use the wrappers hsemfit() and hsemmodeling().

install.packages("hsemx_1.0.0.tar.gz", repos = NULL, type = "source")
library(hsemx)
fit <- hsem(list(m ~ x + (1 + x | cluster),
                 y ~ m + x + (1 + m | cluster)), data = mlmed)
summary(fit)
hsem_effects(fit, "x", "y")
hsem_plot_path(fit)            # "classic", "twolevel", "clusters"
plot(hsem_check(fit), "y")

See vignette("hsemx").