{
  "_id": "6b0f6ad5b6d08ed7e3d986e5",
  "Package": "hsemx",
  "Type": "Package",
  "Title": "Extended Hierarchical Structural Equation Models via\nh-Likelihood",
  "Version": "1.0.0",
  "Date": "2026-11-09",
  "Authors@R": "person(\"Rezzy Eko\", \"Caraka\", email = \"rezzyekocaraka@gmail.com\",\nrole = c(\"aut\", \"cre\"))",
  "Maintainer": "Rezzy Eko Caraka <rezzyekocaraka@gmail.com>",
  "Description": "An extended and re-engineered successor of the 'hsem'\npackage (hierarchical structural equation models by\nh-likelihood), released under a new name because 'hsem' already\nexists on CRAN. It builds on the hierarchical-likelihood\nstructural equation model of Caraka et al. (2021)\n<doi:10.3390/sym13040657> and Caraka et al. (2022)\n<doi:10.3390/su14010524>, and on h-likelihood work by Caraka et\nal. (2020) <doi:10.1109/ACCESS.2020.3033796> and Caraka et al.\n(2022) <doi:10.1186/s40537-022-00626-y>. Fits hierarchical\n(multilevel) structural equation models: systems of generalized\nlinear mixed-effects regressions (Gaussian, binomial, Poisson,\nGamma) in which random intercepts and random slopes of all\nequations are jointly distributed and may be correlated within\nand across equations (unstructured, block, diagonal,\nshared-factor and one-factor covariance structures), with\noptional regression models for the dispersion. Estimation uses\nthe h-likelihood: exact maximum and restricted maximum\nlikelihood for Gaussian models and Laplace approximations\notherwise (Lee and Nelder (1996)\n<doi:10.1111/j.2517-6161.1996.tb02105.x>; Lee, Nelder and\nPawitan (2006, ISBN:9781584886310)). Average direct, indirect\nand total effects account for random-slope covariances (Bauer,\nPreacher and Gil (2006) <doi:10.1037/1082-989X.11.2.142>).\nNeural-network components (multi-layer perceptron, residual,\ngated and deep-ensemble networks) can be added to the linear\npredictors. Includes path diagrams with random effects,\nassumption checks with simulation-based and randomized quantile\nresiduals, lineup tests, cluster influence, parametric\nbootstrap, likelihood-ratio tests, cross-validation, Monte\nCarlo simulation studies with Monte Carlo standard errors and\nsimulation-based power analysis.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "RoxygenNote": "7.3.1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-12-02 00:40:52 UTC",
    "User": "root"
  },
  "Author": "Rezzy Eko Caraka [aut, cre]",
  "Repository": "https://rezzy94.r-universe.dev",
  "Date/Publication": "2026-12-01 21:36:37 UTC",
  "RemoteUrl": "https://github.com/cran/hsemx",
  "RemoteRef": "HEAD",
  "RemoteSha": "67ec358f460f2b2b92d3a34ceb793056780a6988",
  "_user": "rezzy94",
  "_type": "src",
  "_file": "hsemx_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/3112921d227fa24070ad2f6c9ceaf02223eaabb4152b7d56cd7d0b77205d52ee",
  "_filesize": 2386369,
  "_sha256": "3112921d227fa24070ad2f6c9ceaf02223eaabb4152b7d56cd7d0b77205d52ee",
  "_expires": "2027-03-12T00:48:19.000Z",
  "_created": "2026-12-02T00:40:52.000Z",
  "_published": "2026-12-02T00:48:21.332Z",
  "_upstream": "https://github.com/cran/hsemx",
  "_status": "success",
  "_maintainer": {
    "name": "Rezzy Eko Caraka",
    "email": "rezzyekocaraka@gmail.com",
    "login": "rezzy94",
    "description": "Post-Doctoral ",
    "uuid": 51557488
  },
  "_jobs": [
    {
      "job": 143118853993,
      "time": 192,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15555719098"
    },
    {
      "job": 143118853965,
      "time": 253,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15555798928"
    },
    {
      "job": 143118853973,
      "time": 306,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "15556782977"
    },
    {
      "job": 143118854071,
      "time": 235,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15557107367"
    },
    {
      "job": 143115594614,
      "time": 397,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15557116583"
    },
    {
      "job": 143118853926,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "15556538678"
    },
    {
      "job": 143118854045,
      "time": 161,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15557202055"
    },
    {
      "job": 143118853964,
      "time": 182,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "15557672099"
    },
    {
      "job": 143118854001,
      "time": 110,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15557081792"
    }
  ],
  "_buildurl": "https://github.com/r-universe/rezzy94/actions/runs/46780032440",
  "_commit": {
    "id": "67ec358f460f2b2b92d3a34ceb793056780a6988",
    "author": "Rezzy Eko Caraka <rezzyekocaraka@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.0\n",
    "time": 1796160997
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Matrix",
      "version": ">= 1.6-0",
      "role": "Imports"
    },
    {
      "package": "numDeriv",
      "role": "Imports"
    },
    {
      "package": "nlme",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.4.0",
      "role": "Imports"
    },
    {
      "package": "patchwork",
      "role": "Imports"
    },
    {
      "package": "grid",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "lme4",
      "role": "Suggests"
    },
    {
      "package": "glmmTMB",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-49",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.0.0",
      "date": "2026-12-01"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "rezzy94",
      "count": 1,
      "uuid": 51557488
    }
  ],
  "_userbio": {
    "uuid": 51557488,
    "type": "user",
    "name": "Rezzy94",
    "followers": 1,
    "description": "Post-Doctoral "
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hsemx"
  },
  "_searchresults": 0,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hsemx.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_realowner": "rezzy94",
  "_cranurl": false,
  "_authors": [
    {
      "name": "Rezzy Eko Caraka",
      "email": "rezzyekocaraka@gmail.com",
      "role": [
        "aut",
        "cre"
      ]
    }
  ],
  "_exports": [
    "expected_product",
    "fixef",
    "hsem",
    "hsem_boot",
    "hsem_center",
    "hsem_check",
    "hsem_cv",
    "hsem_effects",
    "hsem_influence",
    "hsem_lag",
    "hsem_lineup",
    "hsem_nn",
    "hsem_nn_pdp",
    "hsem_palette",
    "hsem_plot_forest",
    "hsem_plot_path",
    "hsem_plot_recor",
    "hsem_plot_ridge",
    "hsem_power",
    "hsem_r2",
    "hsem_refit",
    "hsem_sim_mediation",
    "hsem_sim_var1",
    "hsem_simstudy",
    "hsemfit",
    "hsemmodeling",
    "lineup_answer",
    "nn_build",
    "nn_component",
    "ranef",
    "theme_hsem",
    "VarCorr"
  ],
  "_datasets": [
    {
      "name": "ml2",
      "title": "Simulated urge-to-smoke diary data (example from hsem 1.0)",
      "object": "ml2",
      "class": [
        "data.frame"
      ],
      "fields": [
        "urge",
        "urge1",
        "dep",
        "dep1",
        "id",
        "time"
      ],
      "rows": 200,
      "table": true,
      "tojson": true
    },
    {
      "name": "mlmed",
      "title": "Simulated multilevel mediation data with random paths",
      "object": "mlmed",
      "class": [
        "data.frame"
      ],
      "fields": [
        "cluster",
        "x",
        "m",
        "y",
        "z1",
        "z2",
        "g_true"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    },
    {
      "name": "smoke_ema",
      "title": "Simulated intensive-longitudinal (EMA) data: urge to smoke and depression",
      "object": "smoke_ema",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "time",
        "urge",
        "dep",
        "urge_lag1",
        "dep_lag1"
      ],
      "rows": 3200,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "anova.hsem",
      "title": "Likelihood-ratio tests between nested hsem models",
      "topics": [
        "anova.hsem"
      ]
    },
    {
      "page": "as.data.frame.hsem",
      "title": "Tidy parameter table",
      "topics": [
        "as.data.frame.hsem"
      ]
    },
    {
      "page": "confint.hsem",
      "title": "Confidence intervals",
      "topics": [
        "confint.hsem"
      ]
    },
    {
      "page": "expected_product",
      "title": "Expected product of jointly normal variables",
      "topics": [
        "expected_product"
      ]
    },
    {
      "page": "fitted.hsem",
      "title": "Fitted values",
      "topics": [
        "fitted.hsem"
      ]
    },
    {
      "page": "fixef.hsem",
      "title": "Extract fixed effects",
      "topics": [
        "fixef.hsem"
      ]
    },
    {
      "page": "hsem",
      "title": "Fit a hierarchical structural equation model (multilevel path model)",
      "topics": [
        "hsem"
      ]
    },
    {
      "page": "hsem_boot",
      "title": "Parametric bootstrap",
      "topics": [
        "confint.hsem_boot",
        "hsem_boot"
      ]
    },
    {
      "page": "hsem_center",
      "title": "Within- and between-cluster decomposition (centring within cluster)",
      "topics": [
        "hsem_center"
      ]
    },
    {
      "page": "hsem_check",
      "title": "Check the assumptions of a fitted hierarchical SEM",
      "topics": [
        "hsem_check"
      ]
    },
    {
      "page": "hsem_cv",
      "title": "Cross-validated comparison of linear and neural-network HSEMs",
      "topics": [
        "hsem_cv"
      ]
    },
    {
      "page": "hsem_effects",
      "title": "Direct, indirect and total effects in a multilevel path model",
      "topics": [
        "hsem_effects"
      ]
    },
    {
      "page": "hsem_influence",
      "title": "Cluster-deletion influence diagnostics",
      "topics": [
        "hsem_influence"
      ]
    },
    {
      "page": "hsem_lag",
      "title": "Lag variables within clusters",
      "topics": [
        "hsem_lag"
      ]
    },
    {
      "page": "hsem_lineup",
      "title": "Lineup test for visual model checking",
      "topics": [
        "hsem_lineup"
      ]
    },
    {
      "page": "hsem_nn",
      "title": "Neural-network augmented hierarchical SEM",
      "topics": [
        "hsem_nn"
      ]
    },
    {
      "page": "hsem_nn_pdp",
      "title": "Partial-dependence plots of the neural-network component",
      "topics": [
        "hsem_nn_pdp"
      ]
    },
    {
      "page": "hsem_palette",
      "title": "hsem colour palette",
      "topics": [
        "hsem_palette"
      ]
    },
    {
      "page": "hsem_plot_forest",
      "title": "Caterpillar (forest) plot of cluster-specific coefficients",
      "topics": [
        "hsem_plot_forest"
      ]
    },
    {
      "page": "hsem_plot_path",
      "title": "Path diagram of a fitted hierarchical SEM",
      "topics": [
        "hsem_plot_path"
      ]
    },
    {
      "page": "hsem_plot_recor",
      "title": "Heat map of random-effect correlations",
      "topics": [
        "hsem_plot_recor"
      ]
    },
    {
      "page": "hsem_plot_ridge",
      "title": "Distribution of cluster-specific path coefficients",
      "topics": [
        "hsem_plot_ridge"
      ]
    },
    {
      "page": "hsem_power",
      "title": "Simulation-based power analysis over numbers of clusters",
      "topics": [
        "hsem_power"
      ]
    },
    {
      "page": "hsem_r2",
      "title": "Marginal and conditional R-squared and ICC per equation",
      "topics": [
        "hsem_r2"
      ]
    },
    {
      "page": "hsem_refit",
      "title": "Refit an hsem model to new data",
      "topics": [
        "hsem_refit"
      ]
    },
    {
      "page": "hsem_sim_mediation",
      "title": "Simulate multilevel mediation data with random paths",
      "topics": [
        "hsem_sim_mediation"
      ]
    },
    {
      "page": "hsem_sim_var1",
      "title": "Simulate a bivariate multilevel VAR(1) (dynamic SEM) panel",
      "topics": [
        "hsem_sim_var1"
      ]
    },
    {
      "page": "hsem_simstudy",
      "title": "Monte Carlo simulation study with performance measures and Monte Carlo SEs",
      "topics": [
        "hsem_simstudy"
      ]
    },
    {
      "page": "hsemfit",
      "title": "Fit a model with the hsem 1.0 interface (deprecated wrapper around hsem())",
      "topics": [
        "hsemfit"
      ]
    },
    {
      "page": "hsemmodeling",
      "title": "Model specification in the hsem 1.0 style (deprecated)",
      "topics": [
        "hsemmodeling"
      ]
    },
    {
      "page": "lineup_answer",
      "title": "Reveal the position of the observed data in a lineup",
      "topics": [
        "lineup_answer"
      ]
    },
    {
      "page": "ml2",
      "title": "Simulated urge-to-smoke diary data (example from hsem 1.0)",
      "topics": [
        "ml2"
      ]
    },
    {
      "page": "mlmed",
      "title": "Simulated multilevel mediation data with random paths",
      "topics": [
        "mlmed"
      ]
    },
    {
      "page": "nn_component",
      "title": "Network component values",
      "topics": [
        "nn_component"
      ]
    },
    {
      "page": "plot.hsem",
      "title": "Plot a fitted hierarchical SEM",
      "topics": [
        "plot.hsem"
      ]
    },
    {
      "page": "plot.hsem_check",
      "title": "Diagnostic dashboard",
      "topics": [
        "plot.hsem_check"
      ]
    },
    {
      "page": "plot.hsem_effects",
      "title": "Plot direct, indirect and total effects",
      "topics": [
        "plot.hsem_effects"
      ]
    },
    {
      "page": "plot.hsem_simstudy",
      "title": "Plot simulation-study performance",
      "topics": [
        "plot.hsem_simstudy"
      ]
    },
    {
      "page": "predict.hsem",
      "title": "Predictions from an hsem fit",
      "topics": [
        "predict.hsem"
      ]
    },
    {
      "page": "predict.hsem_nn",
      "title": "Predictions from an NN-augmented hsem",
      "topics": [
        "predict.hsem_nn"
      ]
    },
    {
      "page": "ranef.hsem",
      "title": "Conditional modes (BLUPs) of the random effects",
      "topics": [
        "ranef.hsem"
      ]
    },
    {
      "page": "residuals.hsem",
      "title": "Residuals of an hsem fit",
      "topics": [
        "residuals.hsem"
      ]
    },
    {
      "page": "simulate.hsem",
      "title": "Simulate responses from a fitted hsem",
      "topics": [
        "simulate.hsem"
      ]
    },
    {
      "page": "smoke_ema",
      "title": "Simulated intensive-longitudinal (EMA) data: urge to smoke and depression",
      "topics": [
        "smoke_ema"
      ]
    },
    {
      "page": "summary.hsem",
      "title": "Summarise an hsem fit",
      "topics": [
        "summary.hsem"
      ]
    },
    {
      "page": "theme_hsem",
      "title": "ggplot2 theme for hsem graphics",
      "topics": [
        "theme_hsem"
      ]
    },
    {
      "page": "VarCorr.hsem",
      "title": "Random-effect covariance matrices",
      "topics": [
        "VarCorr.hsem"
      ]
    }
  ],
  "_readme": "https://github.com/cran/hsemx/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "Matrix",
    "nlme",
    "numDeriv",
    "patchwork",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "hsemx.Rmd",
      "filename": "hsemx.html",
      "title": "hsemx: extended hierarchical structural equation models",
      "author": "Rezzy Eko Caraka",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. The model",
        "2. Multilevel mediation with random paths",
        "3. Seeing the random effects: alternative path diagrams",
        "4. Checking the assumptions",
        "5. Dynamic SEM: cross-lagged panel with random effects",
        "6. Non-Gaussian outcomes",
        "7. Neural-network components",
        "8. Simulation studies and power",
        "9. Migrating from hsem 1.0 (CRAN)",
        "References"
      ],
      "created": "2026-12-01 21:36:37",
      "modified": "2026-12-01 21:36:37",
      "commits": 1
    }
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "hsemx",
  "_universes": [
    "rezzy94"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-12-02T00:43:36.000Z",
      "distro": "resolute",
      "commit": "67ec358f460f2b2b92d3a34ceb793056780a6988",
      "fileid": "https://r2.ropensci.org/d86b6e9a8af6861ae8ef8747fcb43d2e1a5b0022a5dc8fb9cca724a8321cbcd9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rezzy94/actions/runs/46780032440"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-12-02T00:43:58.000Z",
      "distro": "resolute",
      "commit": "67ec358f460f2b2b92d3a34ceb793056780a6988",
      "fileid": "https://r2.ropensci.org/02daf984e8a1b619dff2d7bf46fd3a0f2d456b49a4b82e9b46495f60d8cb489d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rezzy94/actions/runs/46780032440"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-12-02T00:45:40.000Z",
      "commit": "67ec358f460f2b2b92d3a34ceb793056780a6988",
      "fileid": "https://r2.ropensci.org/bfa81063469f09ed258e410b0c22e5f3f7cb9090920d8aabfc191cc58e843f45",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rezzy94/actions/runs/46780032440"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-12-02T00:44:52.000Z",
      "commit": "67ec358f460f2b2b92d3a34ceb793056780a6988",
      "fileid": "https://r2.ropensci.org/d22d7b944519c4b16b9aac836c6b27202b8869e5ef0620ea6babd6f6cef6ea37",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rezzy94/actions/runs/46780032440"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-12-02T00:43:12.000Z",
      "commit": "67ec358f460f2b2b92d3a34ceb793056780a6988",
      "fileid": "https://r2.ropensci.org/66c135305635068bbc957e6b33f20f817a576afef977ce2f9b1bdeafd8fe6983",
      "status": "success",
      "buildurl": "https://github.com/r-universe/rezzy94/actions/runs/46780032440"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-12-02T00:42:17.000Z",
      "commit": "67ec358f460f2b2b92d3a34ceb793056780a6988",
      "fileid": "https://r2.ropensci.org/b533630e7e27d5d270b55988722ebca1910db4d33d3114b9affc1b5ac3088f7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rezzy94/actions/runs/46780032440"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-12-02T00:42:23.000Z",
      "commit": "67ec358f460f2b2b92d3a34ceb793056780a6988",
      "fileid": "https://r2.ropensci.org/0c28998704496b2031f44e0bfee8e9e4ea7bac09ab56fb9b1fae8ccf0111537d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rezzy94/actions/runs/46780032440"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-12-02T00:42:03.000Z",
      "commit": "67ec358f460f2b2b92d3a34ceb793056780a6988",
      "fileid": "https://r2.ropensci.org/78f2bfbb2a7534e649844c12797be2e1c012828dfb677c12b50d62dcfd6204f1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rezzy94/actions/runs/46780032440"
    }
  ]
}