{
  "_id": "6ac922d2de46216d5edda00f",
  "Type": "Package",
  "Package": "INLAvaan",
  "Title": "Approximate Bayesian Latent Variable Analysis",
  "Version": "0.3.2.9006",
  "Authors@R": "c(\nperson(\"Haziq\", \"Jamil\", , \"haziq.jamil@gmail.com\", role = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0003-3298-1010\")),\nperson(\"Håvard\", \"Rue\", role = \"ctb\",\ncomment = c(ORCID = \"0000-0002-0222-1881\", \"Statistical and computational methodology\")),\nperson(\"Alvin\", \"Bong\", role = \"ctb\",\ncomment = \"Initial site build\")\n)",
  "Description": "Implements approximate Bayesian inference for Structural\nEquation Models (SEM) using a custom adaptation of the\nIntegrated Nested Laplace Approximation (Rue et al., 2009)\n<doi:10.1111/j.1467-9868.2008.00700.x> as described in Jamil\nand Rue (2026a) <doi:10.48550/arXiv.2603.25690>. Provides a\ncomputationally efficient alternative to Markov Chain Monte\nCarlo (MCMC) for Bayesian estimation, allowing users to fit\nlatent variable models using the 'lavaan' syntax. See also the\ncompanion paper on implementation and workflows, Jamil and Rue\n(2026b) <doi:10.48550/arXiv.2604.00671>.",
  "License": "GPL (>= 3)",
  "URL": "https://inlavaan.haziqj.ml/, https://github.com/haziqj/INLAvaan",
  "BugReports": "https://github.com/haziqj/INLAvaan/issues",
  "VignetteBuilder": "quarto",
  "Config/Needs/website": "rmarkdown",
  "Config/roxygen2/markdown": "TRUE",
  "Config/roxygen2/version": "8.1.0",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Repository": "https://haziqj.r-universe.dev",
  "Date/Publication": "2026-10-09 13:12:16 UTC",
  "RemoteUrl": "https://github.com/haziqj/inlavaan",
  "RemoteRef": "HEAD",
  "RemoteSha": "db52ad76f7f193603649194180acac17b298e55e",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-09 16:40:24 UTC",
    "User": "root"
  },
  "Author": "Haziq Jamil [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0003-3298-1010>),\nHåvard Rue [ctb] (ORCID: <https://orcid.org/0000-0002-0222-1881>,\nStatistical and computational methodology),\nAlvin Bong [ctb] (Initial site build)",
  "Maintainer": "Haziq Jamil <haziq.jamil@gmail.com>",
  "_user": "haziqj",
  "_type": "src",
  "_file": "INLAvaan_0.3.2.9006.tar.gz",
  "_fileid": "https://r2.ropensci.org/575c4973e894972fb4b40168e15c8e240f4de6c0a1c3a4d6013c39bedf1b228e",
  "_filesize": 1780853,
  "_sha256": "575c4973e894972fb4b40168e15c8e240f4de6c0a1c3a4d6013c39bedf1b228e",
  "_expires": "2027-01-17T17:22:24.000Z",
  "_created": "2026-10-09T16:40:24.000Z",
  "_published": "2026-10-09T17:22:26.455Z",
  "_buildurl": "https://github.com/r-universe/haziqj/actions/runs/37960209063",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113923005793,
      "time": 708,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11632055937"
    },
    {
      "job": 113923005765,
      "time": 611,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11632310598"
    },
    {
      "job": 113923005690,
      "time": 415,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11633310206"
    },
    {
      "job": 113923005648,
      "time": 592,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11633116752"
    },
    {
      "job": 113921356415,
      "time": 236,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11630824473"
    },
    {
      "job": 113923005697,
      "time": 125,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11630124951"
    },
    {
      "job": 113923006053,
      "time": 898,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11632636133"
    },
    {
      "job": 113923005838,
      "time": 678,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11632035964"
    },
    {
      "job": 113923005938,
      "time": 894,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11632486280"
    }
  ],
  "_upstream": "https://github.com/haziqj/inlavaan",
  "_commit": {
    "id": "db52ad76f7f193603649194180acac17b298e55e",
    "author": "Haziq Jamil <haziq.jamil@kaust.edu.sa>",
    "committer": "Haziq Jamil <haziq.jamil@kaust.edu.sa>",
    "message": "Merge branch 'rs-generator'\n",
    "time": 1791551536
  },
  "_maintainer": {
    "name": "Haziq Jamil",
    "email": "haziq.jamil@gmail.com",
    "login": "haziqj",
    "orcid": "0000-0003-3298-1010",
    "description": "Researcher at BAYESCOMP, KAUST. On leave from Assistant Professorship at UBD.",
    "uuid": 16189362
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "lavaan",
      "version": ">= 0.7-2",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "blavaan",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lme4",
      "role": "Suggests"
    },
    {
      "package": "numDeriv",
      "role": "Suggests"
    },
    {
      "package": "qrng",
      "role": "Suggests"
    },
    {
      "package": "quarto",
      "role": "Suggests"
    },
    {
      "package": "sn",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.2.0",
      "role": "Suggests"
    },
    {
      "package": "ucminf",
      "role": "Suggests"
    }
  ],
  "_owner": "haziqj",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-49",
      "n": 30
    },
    {
      "week": "2025-50",
      "n": 13
    },
    {
      "week": "2026-01",
      "n": 11
    },
    {
      "week": "2026-02",
      "n": 43
    },
    {
      "week": "2026-03",
      "n": 60
    },
    {
      "week": "2026-04",
      "n": 20
    },
    {
      "week": "2026-05",
      "n": 20
    },
    {
      "week": "2026-06",
      "n": 14
    },
    {
      "week": "2026-10",
      "n": 29
    },
    {
      "week": "2026-11",
      "n": 7
    },
    {
      "week": "2026-12",
      "n": 28
    },
    {
      "week": "2026-13",
      "n": 14
    },
    {
      "week": "2026-14",
      "n": 10
    },
    {
      "week": "2026-24",
      "n": 80
    },
    {
      "week": "2026-28",
      "n": 57
    },
    {
      "week": "2026-30",
      "n": 8
    },
    {
      "week": "2026-33",
      "n": 4
    },
    {
      "week": "2026-34",
      "n": 22
    },
    {
      "week": "2026-35",
      "n": 19
    },
    {
      "week": "2026-36",
      "n": 17
    },
    {
      "week": "2026-37",
      "n": 5
    },
    {
      "week": "2026-38",
      "n": 17
    },
    {
      "week": "2026-39",
      "n": 13
    },
    {
      "week": "2026-40",
      "n": 67
    },
    {
      "week": "2026-41",
      "n": 118
    }
  ],
  "_tags": [
    {
      "name": "v0.2.1",
      "date": "2026-01-14"
    },
    {
      "name": "v0.2.2",
      "date": "2026-01-22"
    },
    {
      "name": "v0.2.3",
      "date": "2026-01-28"
    },
    {
      "name": "v0.2.4",
      "date": "2026-04-02"
    },
    {
      "name": "v0.2.5",
      "date": "2026-06-11"
    },
    {
      "name": "v0.3.0",
      "date": "2026-07-11"
    },
    {
      "name": "v0.3.1",
      "date": "2026-07-21"
    },
    {
      "name": "v0.3.2",
      "date": "2026-10-01"
    }
  ],
  "_topics": [
    "bayesian-inference",
    "bayesian-statistics",
    "factor-analysis",
    "growth-curve-models",
    "inla",
    "laplace-approximation",
    "latent-variables",
    "path-analysis",
    "psychometrics",
    "skew-normal",
    "statistical-modeling",
    "structural-equation-modeling",
    "quarto"
  ],
  "_stars": 14,
  "_contributors": [
    {
      "user": "haziqj",
      "count": 1020,
      "uuid": 16189362
    },
    {
      "user": "alvinbjl",
      "count": 1,
      "uuid": 178853609
    }
  ],
  "_userbio": {
    "uuid": 16189362,
    "type": "user",
    "name": "Haziq Jamil",
    "followers": 28,
    "description": "Researcher at BAYESCOMP, KAUST. On leave from Assistant Professorship at UBD."
  },
  "_downloads": {
    "count": 425,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/INLAvaan"
  },
  "_devurl": "https://github.com/haziqj/inlavaan",
  "_pkgdown": "https://inlavaan.haziqj.ml/",
  "_searchresults": 30,
  "_quarto": true,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/INLAvaan.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/haziqj/inlavaan",
  "_realowner": "haziqj",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.2",
      "date": "2026-01-27"
    },
    {
      "version": "0.2.3",
      "date": "2026-01-28"
    },
    {
      "version": "0.2.4",
      "date": "2026-04-03"
    },
    {
      "version": "0.2.5",
      "date": "2026-06-11"
    },
    {
      "version": "0.3.0",
      "date": "2026-07-11"
    },
    {
      "version": "0.3.1",
      "date": "2026-07-21"
    },
    {
      "version": "0.3.2",
      "date": "2026-10-01"
    }
  ],
  "_exports": [
    "acfa",
    "add_loo",
    "agrowth",
    "AIC",
    "anova",
    "as_fun_string",
    "asem",
    "bfit_indices",
    "BIC",
    "coef",
    "compare",
    "dbeta_box",
    "diagnostics",
    "dsnorm",
    "fit_skew_normal",
    "fit_skew_normal_samp",
    "fitmeasures",
    "fitMeasures",
    "fitted",
    "fitted.values",
    "get_inlavaan_internal",
    "inlavaan",
    "is_same_function",
    "logLik",
    "loo",
    "nobs",
    "plot",
    "predict",
    "priors_for",
    "qsnorm_fast",
    "resid",
    "residuals",
    "sampling",
    "show",
    "simulate",
    "standardisedsolution",
    "standardisedSolution",
    "standardizedsolution",
    "standardizedSolution",
    "summary",
    "timing",
    "update",
    "vcov",
    "waic"
  ],
  "_help": [
    {
      "page": "acfa",
      "title": "Fit an Approximate Bayesian Confirmatory Factor Analysis Model",
      "topics": [
        "acfa"
      ]
    },
    {
      "page": "agrowth",
      "title": "Fit an Approximate Bayesian Growth Curve Model",
      "topics": [
        "agrowth"
      ]
    },
    {
      "page": "as_fun_string",
      "title": "Convert function to single string",
      "topics": [
        "as_fun_string"
      ]
    },
    {
      "page": "asem",
      "title": "Fit an Approximate Bayesian Structural Equation Model",
      "topics": [
        "asem"
      ]
    },
    {
      "page": "bfit_indices",
      "title": "Bayesian Fit Indices",
      "topics": [
        "bfit_indices",
        "print.bfit_indices",
        "summary.bfit_indices"
      ]
    },
    {
      "page": "compare",
      "title": "Compare Bayesian Models Fitted with INLAvaan",
      "topics": [
        "anova",
        "anova,INLAvaan-method",
        "compare",
        "compare,INLAvaan-method"
      ]
    },
    {
      "page": "dbeta_box",
      "title": "Density of a Beta distribution on a bounded interval",
      "topics": [
        "dbeta_box"
      ]
    },
    {
      "page": "deviance",
      "title": "Deviance for INLAvaan Models",
      "topics": [
        "deviance",
        "deviance.INLAvaan"
      ]
    },
    {
      "page": "diagnostics",
      "title": "Convergence and Approximation Diagnostics for INLAvaan Models",
      "topics": [
        "diagnostics",
        "diagnostics,INLAvaan-method"
      ]
    },
    {
      "page": "dsnorm",
      "title": "The Skew Normal Distribution",
      "topics": [
        "dsnorm"
      ]
    },
    {
      "page": "fit_skew_normal",
      "title": "Fit a skew normal distribution to log-density evaluations",
      "topics": [
        "fit_skew_normal"
      ]
    },
    {
      "page": "fit_skew_normal_samp",
      "title": "Fit a skew normal distribution to a sample",
      "topics": [
        "fit_skew_normal_samp"
      ]
    },
    {
      "page": "fitmeasures",
      "title": "Fit Measures for a Latent Variable Model estimated using INLA",
      "topics": [
        "fitmeasures",
        "fitMeasures,INLAvaan-method",
        "fitmeasures,INLAvaan-method"
      ]
    },
    {
      "page": "fitted",
      "title": "Model-Implied Moments for INLAvaan Models",
      "topics": [
        "fitted",
        "fitted,INLAvaan-method",
        "fitted.values,INLAvaan-method"
      ]
    },
    {
      "page": "get_inlavaan_internal",
      "title": "Extract the Internal INLAvaan Object",
      "topics": [
        "get_inlavaan_internal"
      ]
    },
    {
      "page": "inlavaan",
      "title": "Fit an Approximate Bayesian Latent Variable Model",
      "topics": [
        "inlavaan"
      ]
    },
    {
      "page": "INLAvaan-class",
      "title": "Class For Representing a (Fitted) Latent Variable Model",
      "topics": [
        "coef",
        "coef,INLAvaan-method",
        "INLAvaan-class",
        "nobs",
        "nobs,INLAvaan-method",
        "show",
        "show,INLAvaan-method",
        "summary",
        "summary,INLAvaan-method"
      ]
    },
    {
      "page": "is_same_function",
      "title": "Helper function to check if two functions are the same",
      "topics": [
        "is_same_function"
      ]
    },
    {
      "page": "logLik",
      "title": "Log-Likelihood for INLAvaan Models",
      "topics": [
        "AIC,INLAvaan-method",
        "BIC,INLAvaan-method",
        "logLik",
        "logLik,INLAvaan-method"
      ]
    },
    {
      "page": "loo",
      "title": "Approximate Leave-One-Out Cross-Validation for INLAvaan Models",
      "topics": [
        "add_loo",
        "loo",
        "loo.INLAvaan",
        "loo.inlavaan_internal",
        "print.inlavaan_loo",
        "summary.inlavaan_loo"
      ]
    },
    {
      "page": "plot",
      "title": "Plot an INLAvaan Object",
      "topics": [
        "plot",
        "plot,INLAvaan,ANY-method"
      ]
    },
    {
      "page": "predict",
      "title": "Posterior Predictions for INLAvaan Models",
      "topics": [
        "predict",
        "predict,INLAvaan-method"
      ]
    },
    {
      "page": "priors_for",
      "title": "Specify priors for a SEM",
      "topics": [
        "priors_for"
      ]
    },
    {
      "page": "qsnorm_fast",
      "title": "Fast Approximation of Skew-Normal Quantile Function",
      "topics": [
        "qsnorm_fast"
      ]
    },
    {
      "page": "residuals",
      "title": "Model Residuals for INLAvaan Models",
      "topics": [
        "resid,INLAvaan-method",
        "residuals",
        "residuals,INLAvaan-method"
      ]
    },
    {
      "page": "sampling",
      "title": "Draw Samples from the Generative Model",
      "topics": [
        "sampling",
        "sampling,INLAvaan-method"
      ]
    },
    {
      "page": "simulate",
      "title": "Simulate Datasets from the Generative Model",
      "topics": [
        "simulate",
        "simulate,INLAvaan-method"
      ]
    },
    {
      "page": "standardisedsolution",
      "title": "Standardised solution of a latent variable model",
      "topics": [
        "standardisedSolution",
        "standardisedsolution",
        "standardizedSolution",
        "standardizedsolution"
      ]
    },
    {
      "page": "timing",
      "title": "Timing Information for INLAvaan Models",
      "topics": [
        "timing",
        "timing,INLAvaan-method"
      ]
    },
    {
      "page": "update",
      "title": "Update and re-fit an INLAvaan model",
      "topics": [
        "update",
        "update,INLAvaan-method"
      ]
    },
    {
      "page": "vcov",
      "title": "Variance-Covariance Matrix for INLAvaan Models",
      "topics": [
        "vcov",
        "vcov,INLAvaan-method"
      ]
    },
    {
      "page": "waic",
      "title": "Widely Applicable Information Criterion for INLAvaan Models",
      "topics": [
        "print.inlavaan_waic",
        "summary.inlavaan_waic",
        "waic",
        "waic.INLAvaan",
        "waic.inlavaan_internal"
      ]
    }
  ],
  "_pkglogo": "https://github.com/haziqj/inlavaan/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/haziqj/inlavaan/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "lavaan",
    "MASS",
    "mnormt",
    "numDeriv",
    "pbivnorm",
    "quadprog"
  ],
  "_vignettes": [
    {
      "source": "INLAvaan.qmd",
      "filename": "INLAvaan.html",
      "title": "Introduction to INLAvaan",
      "engine": "quarto::html",
      "headings": [
        "Introduction",
        "Motivating example",
        "Data",
        "Model fit",
        "Methods",
        "Predictions",
        "Predictive checks",
        "Fit measures",
        "Diagnostics",
        "Plot",
        "Model comparison",
        "Setting priors",
        "Dependency on R-INLA",
        "References"
      ],
      "created": "2025-12-06 11:16:51",
      "modified": "2026-09-17 07:56:34",
      "commits": 15
    },
    {
      "source": "mediation.qmd",
      "filename": "mediation.html",
      "title": "Mediation Analysis",
      "engine": "quarto::html",
      "headings": [
        "Data Simulation",
        "Model Specification and Fit",
        "Results",
        "References"
      ],
      "created": "2026-01-11 18:03:03",
      "modified": "2026-04-02 07:27:50",
      "commits": 8
    }
  ],
  "_score": 7.021189299069938,
  "_indexed": true,
  "_nocasepkg": "inlavaan",
  "_universes": [
    "haziqj"
  ],
  "_previous": "0.3.2.9005",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.2.9006",
      "date": "2026-10-09T16:43:25.000Z",
      "distro": "resolute",
      "commit": "db52ad76f7f193603649194180acac17b298e55e",
      "fileid": "https://r2.ropensci.org/7483c2d831dacc08f0263dad75ea40eb8597b4a78259b3b1342a10a3352669e5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/haziqj/actions/runs/37960209063"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.2.9006",
      "date": "2026-10-09T16:42:48.000Z",
      "distro": "resolute",
      "commit": "db52ad76f7f193603649194180acac17b298e55e",
      "fileid": "https://r2.ropensci.org/fb46d138bcedcef23f7258813b764a410f71cf8e1c790ec1f8d9bdeac76905f1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/haziqj/actions/runs/37960209063"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.2.9006",
      "date": "2026-10-09T17:09:33.000Z",
      "commit": "db52ad76f7f193603649194180acac17b298e55e",
      "fileid": "https://r2.ropensci.org/5bd66077010f27cb362a6ae65788cbca7e2542f9d81aa800d69f15eaa8f3aa11",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/haziqj/actions/runs/37960209063"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.2.9006",
      "date": "2026-10-09T17:14:11.000Z",
      "commit": "db52ad76f7f193603649194180acac17b298e55e",
      "fileid": "https://r2.ropensci.org/c8e77d50c4355a0bce8445f38037abcadf80872efe81364f3909f79a3405cbde",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/haziqj/actions/runs/37960209063"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.2.9006",
      "date": "2026-10-09T16:42:54.000Z",
      "commit": "db52ad76f7f193603649194180acac17b298e55e",
      "fileid": "https://r2.ropensci.org/371c7a1332a685e673c947dc7876015751c757bbf192f306e2f9d1466c9f8739",
      "status": "success",
      "buildurl": "https://github.com/r-universe/haziqj/actions/runs/37960209063"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.2.9006",
      "date": "2026-10-09T16:42:43.000Z",
      "commit": "db52ad76f7f193603649194180acac17b298e55e",
      "fileid": "https://r2.ropensci.org/d1ea0ea74a3a540279cbf4518dfdb2e6f873f61954f5339cc4d032e3cc62d6f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/haziqj/actions/runs/37960209063"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.2.9006",
      "date": "2026-10-09T16:43:01.000Z",
      "commit": "db52ad76f7f193603649194180acac17b298e55e",
      "fileid": "https://r2.ropensci.org/027e5b0097ae2fb4a790a0c47be0a6c0405b7c04d9704ece90ed7e924d67377e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/haziqj/actions/runs/37960209063"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.2.9006",
      "date": "2026-10-09T16:42:51.000Z",
      "commit": "db52ad76f7f193603649194180acac17b298e55e",
      "fileid": "https://r2.ropensci.org/a0d9c2d26cb0b18bc57f4ca57206b25ffbfb4b5d8c13b106f4889ef63166c58e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/haziqj/actions/runs/37960209063"
    }
  ]
}