{
  "_id": "6a107853acfb0bcc41cad2d7",
  "Package": "inlatools",
  "Title": "Diagnostic Tools for INLA Models",
  "Version": "0.0.3",
  "Authors@R": "c(\nperson(\"Thierry\", \"Onkelinx\", , \"thierry.onkelinx@inbo.be\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0001-8804-4216\", affiliation = \"Research Institute for Nature and Forest (INBO)\")),\nperson(\"Research Institute for Nature and Forest (INBO)\", , , \"info@inbo.be\", role = c(\"cph\", \"fnd\"))\n)",
  "Description": "Several functions which can be useful to choose sensible\npriors and diagnose the fitted model.",
  "License": "GPL-3",
  "URL": "https://inbo.github.io/inlatools/,\nhttps://github.com/inbo/inlatools",
  "BugReports": "https://github.com/inbo/inlatools/issues",
  "VignetteBuilder": "knitr",
  "Additional_repositories": "https://inla.r-inla-download.org/R/stable",
  "Config/checklist/communities": "inbo",
  "Config/checklist/keywords": "INLA; dispersion; distribution; prior;\nanomaly; residuals",
  "Encoding": "UTF-8",
  "Language": "en-GB",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Repository": "https://inbo.r-universe.dev",
  "Date/Publication": "2024-10-04 10:24:15 UTC",
  "RemoteUrl": "https://github.com/inbo/inlatools",
  "RemoteRef": "HEAD",
  "RemoteSha": "e711776e8325734557593937c3ef439794e04b7c",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-06 09:18:10 UTC",
    "User": "root"
  },
  "Author": "Thierry Onkelinx [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-8804-4216>, affiliation: Research\nInstitute for Nature and Forest (INBO)),\nResearch Institute for Nature and Forest (INBO) [cph, fnd]",
  "Maintainer": "Thierry Onkelinx <thierry.onkelinx@inbo.be>",
  "MD5sum": "26299b3d50b8acef572243964cdb2d96",
  "_user": "inbo",
  "_type": "src",
  "_file": "inlatools_0.0.3.tar.gz",
  "_fileid": "7ac256129174b04682d404193a1b3240cfe56cd08093a10947d84f261a1650f7",
  "_filesize": 5573356,
  "_sha256": "7ac256129174b04682d404193a1b3240cfe56cd08093a10947d84f261a1650f7",
  "_created": "2026-05-06T09:18:10.000Z",
  "_published": "2026-05-22T15:37:55.561Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77412209004,
      "time": 199,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6826672965"
    },
    {
      "job": 77412209205,
      "time": 208,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6826676137"
    },
    {
      "job": 77412209578,
      "time": 269,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6826694329"
    },
    {
      "job": 77412209099,
      "time": 233,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6826682623"
    },
    {
      "job": 77412208892,
      "time": 244,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6826603092"
    },
    {
      "job": 77412208731,
      "time": 157,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7164450296"
    },
    {
      "job": 77412209025,
      "time": 183,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6826665770"
    },
    {
      "job": 77412209460,
      "time": 177,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6826664700"
    },
    {
      "job": 77412209422,
      "time": 181,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6826665089"
    }
  ],
  "_buildurl": "https://github.com/r-universe/inbo/actions/runs/25426603910",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/inbo/inlatools",
  "_commit": {
    "id": "e711776e8325734557593937c3ef439794e04b7c",
    "author": "Thierry Onkelinx <ThierryO@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #8 from inbo/gpoisson\n\nGpoisson",
    "time": 1728037455
  },
  "_maintainer": {
    "name": "Thierry Onkelinx",
    "email": "thierry.onkelinx@inbo.be",
    "login": "thierryo",
    "mastodon": "@ThierryO@fosstodon.org",
    "orcid": "0000-0001-8804-4216",
    "uuid": 446636
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "assertthat",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "INLA",
      "version": ">= 19.09.03",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "sn",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "inbo",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "bayesian-statistics",
    "gplv3",
    "inla",
    "mixed-models",
    "model-checking",
    "model-validation"
  ],
  "_stars": 4,
  "_contributors": [
    {
      "user": "thierryo",
      "count": 186,
      "uuid": 446636
    },
    {
      "user": "florisvdh",
      "count": 1,
      "uuid": 19164640
    }
  ],
  "_userbio": {
    "uuid": 2735610,
    "type": "organization",
    "name": "Research Institute for Nature and Forest (INBO)",
    "description": "Open source, data and science initiatives of the Research Institute for Nature and Forest (INBO)"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/inlatools"
  },
  "_devurl": "https://github.com/inbo/inlatools",
  "_pkgdown": "https://inbo.github.io/inlatools/",
  "_searchresults": 89,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/inlatools.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "dgpoisson",
    "dispersion",
    "dispersion_check",
    "distribution_check",
    "fast_aggregation_check",
    "fast_distribution_check",
    "fitted",
    "generate_data",
    "get_anomaly",
    "get_observed",
    "prec2sd",
    "residuals",
    "rgpoisson",
    "rzanbinom",
    "rzapois",
    "rzinbinom",
    "rzipois",
    "select_change",
    "select_divergence",
    "select_poly",
    "select_quantile",
    "simulate_iid",
    "simulate_rw",
    "var_nbinom",
    "var_zinbinom1",
    "var_zipois1"
  ],
  "_help": [
    {
      "page": "gpoisson",
      "title": "The generalised Poisson distribution",
      "concept": [
        "statistics"
      ],
      "topics": [
        "dgpoisson",
        "rgpoisson"
      ]
    },
    {
      "page": "dispersion",
      "title": "Calculate a measure for dispersion",
      "concept": [
        "statistics"
      ],
      "topics": [
        "dispersion"
      ]
    },
    {
      "page": "dispersion_check",
      "title": "Use simulations to check for overdispersion or underdispersion",
      "concept": [
        "checks"
      ],
      "topics": [
        "dispersion_check",
        "dispersion_check,inla-method"
      ]
    },
    {
      "page": "distribution_check",
      "title": "Use simulations to compare the observed distribution with the modelled distribution",
      "concept": [
        "checks"
      ],
      "topics": [
        "distribution_check",
        "distribution_check,inla-method"
      ]
    },
    {
      "page": "fast_aggregation_check",
      "title": "Fast aggregation check Compare the observed and modelled aggregated values.",
      "concept": [
        "checks"
      ],
      "topics": [
        "fast_aggregation_check",
        "fast_aggregation_check,inla-method"
      ]
    },
    {
      "page": "fast_distribution_check",
      "title": "Use simulations to compare the observed distribution with the modelled distribution",
      "concept": [
        "checks"
      ],
      "topics": [
        "fast_distribution_check",
        "fast_distribution_check,inla-method",
        "fast_distribution_check,list-method"
      ]
    },
    {
      "page": "fitted",
      "title": "Extract the fitted values from an INLA model",
      "concept": [
        "statistics"
      ],
      "topics": [
        "fitted,inla-method"
      ]
    },
    {
      "page": "generate_data",
      "title": "Generate dummy data with several distributions",
      "concept": [
        "utils"
      ],
      "topics": [
        "generate_data"
      ]
    },
    {
      "page": "get_anomaly",
      "title": "Get a set of anomalies of the model",
      "concept": [
        "checks"
      ],
      "topics": [
        "get_anomaly",
        "get_anomaly,inla-method"
      ]
    },
    {
      "page": "get_observed",
      "title": "get the observed values from the model object",
      "concept": [
        "statistics"
      ],
      "topics": [
        "get_observed"
      ]
    },
    {
      "page": "plot.dispersion_check",
      "title": "Plot the results from a dispersion check",
      "concept": [
        "utils"
      ],
      "topics": [
        "plot.dispersion_check"
      ]
    },
    {
      "page": "plot.distribution_check",
      "title": "Plot the results from a distribution check",
      "concept": [
        "utils"
      ],
      "topics": [
        "plot.distribution_check"
      ]
    },
    {
      "page": "plot.sim_iid",
      "title": "Plot Simulated Random Intercepts",
      "concept": [
        "priors"
      ],
      "topics": [
        "plot.sim_iid"
      ]
    },
    {
      "page": "plot.sim_rw",
      "title": "Plot Simulated Random Walks",
      "concept": [
        "priors"
      ],
      "topics": [
        "plot.sim_rw"
      ]
    },
    {
      "page": "prec2sd",
      "title": "Convert the posterior marginal of a precision to a standard deviation",
      "topics": [
        "prec2sd"
      ]
    },
    {
      "page": "residuals",
      "title": "Calculate the Residuals From an INLA Model",
      "concept": [
        "statistics"
      ],
      "topics": [
        "residuals,inla-method"
      ]
    },
    {
      "page": "rzanbinom",
      "title": "Zero altered negative binomial",
      "topics": [
        "rzanbinom"
      ]
    },
    {
      "page": "rzapois",
      "title": "Zero-altered Poisson",
      "topics": [
        "rzapois"
      ]
    },
    {
      "page": "rzinbinom",
      "title": "Zero inflated negative binomial",
      "topics": [
        "rzinbinom"
      ]
    },
    {
      "page": "rzipois",
      "title": "Zero-inflated Poisson",
      "topics": [
        "rzipois"
      ]
    },
    {
      "page": "select_change",
      "title": "Select Fast Changing Simulations from an 'sim_rw' Object",
      "concept": [
        "priors"
      ],
      "topics": [
        "select_change"
      ]
    },
    {
      "page": "select_divergence",
      "title": "Select Diverging Simulations from an 'sim_rw' Object",
      "concept": [
        "priors"
      ],
      "topics": [
        "select_divergence"
      ]
    },
    {
      "page": "select_poly",
      "title": "Select Random Walks Best Matching Some Polygon Coefficients",
      "concept": [
        "priors"
      ],
      "topics": [
        "select_poly"
      ]
    },
    {
      "page": "select_quantile",
      "title": "select the quantiles from an 'sim_rw' object",
      "concept": [
        "priors"
      ],
      "topics": [
        "select_quantile"
      ]
    },
    {
      "page": "simulate_iid",
      "title": "simulate data from a second order random walk",
      "concept": [
        "priors"
      ],
      "topics": [
        "simulate_iid"
      ]
    },
    {
      "page": "simulate_rw",
      "title": "simulate data from a second order random walk",
      "concept": [
        "priors"
      ],
      "topics": [
        "simulate_rw"
      ]
    },
    {
      "page": "variance",
      "title": "Variance of the negative binomial distribution",
      "concept": [
        "variance"
      ],
      "topics": [
        "var_nbinom",
        "var_zinbinom1",
        "var_zipois1"
      ]
    }
  ],
  "_readme": "https://github.com/inbo/inlatools/raw/HEAD/README.md",
  "_rundeps": [
    "assertthat",
    "class",
    "classInt",
    "cli",
    "cpp11",
    "DBI",
    "dplyr",
    "e1071",
    "farver",
    "fmesher",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "INLA",
    "isoband",
    "KernSmooth",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "pillar",
    "pkgconfig",
    "proxy",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "s2",
    "S7",
    "scales",
    "sf",
    "sp",
    "splancs",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "units",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "wk"
  ],
  "_vignettes": [
    {
      "source": "distribution.Rmd",
      "filename": "distribution.html",
      "title": "Checking the Distribution and Dispersion of a Model",
      "author": "Thierry Onkelinx",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Generate data",
        "Overdispersion",
        "Fitting the models",
        "Distribution checks",
        "Dispersion checks",
        "Zero inflation",
        "Underdispersion"
      ],
      "created": "2018-12-03 15:37:58",
      "modified": "2022-09-14 12:17:53",
      "commits": 4
    },
    {
      "source": "rwprior.Rmd",
      "filename": "rwprior.html",
      "title": "Getting a Grasp on the Random Walk Hyperparameter",
      "author": "Thierry Onkelinx",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1-D Random walks",
        "Simulating random walks",
        "Inspecting simulated random walks",
        "Summarising and subsetting",
        "Transformations",
        "Centring"
      ],
      "created": "2019-03-08 12:51:32",
      "modified": "2022-09-14 12:17:53",
      "commits": 4
    },
    {
      "source": "prior.Rmd",
      "filename": "prior.html",
      "title": "Setting a Prior for the Random Intercept Variance and Fixed Effects",
      "author": "Thierry Onkelinx",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulating random intercepts",
        "Inspecting simulated random intercepts",
        "Link functions",
        "Centring and quantiles",
        "Priors for fixed effects"
      ],
      "created": "2018-12-03 15:37:58",
      "modified": "2022-09-14 12:17:53",
      "commits": 4
    }
  ],
  "_score": 4.727541257028556,
  "_indexed": true,
  "_nocasepkg": "inlatools",
  "_universes": [
    "inbo",
    "thierryo"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.3",
      "date": "2026-05-06T09:20:38.000Z",
      "distro": "noble",
      "commit": "e711776e8325734557593937c3ef439794e04b7c",
      "fileid": "b3b00440c5159be46898eb49bcdbb94ec169c0ea35ca9bae9c04f33dd4f8e8b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/inbo/actions/runs/25426603910"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.3",
      "date": "2026-05-06T09:20:46.000Z",
      "distro": "noble",
      "commit": "e711776e8325734557593937c3ef439794e04b7c",
      "fileid": "11e9cde652e5a9bf3704ac59341ae6d58380f16a9966313c1abd466e1353cc91",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/inbo/actions/runs/25426603910"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.3",
      "date": "2026-05-06T09:20:21.000Z",
      "commit": "e711776e8325734557593937c3ef439794e04b7c",
      "fileid": "4186496df0128f1db092e334c48852baf6c387703e42639d8bee925e0033d3fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/inbo/actions/runs/25426603910"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.3",
      "date": "2026-05-06T09:20:08.000Z",
      "commit": "e711776e8325734557593937c3ef439794e04b7c",
      "fileid": "1177a3c8090bad75c24a951e365dbdc70a3168a0089459a28e17170b6e15ddbe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/inbo/actions/runs/25426603910"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.3",
      "date": "2026-05-06T09:19:52.000Z",
      "commit": "e711776e8325734557593937c3ef439794e04b7c",
      "fileid": "d0388d09c53eddc26a9b37fbc41c7870d4c134aed7e623f72b508ff5392fb34f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/inbo/actions/runs/25426603910"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.3",
      "date": "2026-05-06T09:19:52.000Z",
      "commit": "e711776e8325734557593937c3ef439794e04b7c",
      "fileid": "25a90f5eee20d3d8a21cf200018696a0b6afb6b7308bf05e1fdba431fa65daeb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/inbo/actions/runs/25426603910"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.3",
      "date": "2026-05-06T09:19:51.000Z",
      "commit": "e711776e8325734557593937c3ef439794e04b7c",
      "fileid": "bcdf86ecdb1f379ba480eadcaef32ae9504ef01cd40da3e9192b3766141bc079",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/inbo/actions/runs/25426603910"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.3",
      "date": "2026-05-22T15:37:34.000Z",
      "commit": "e711776e8325734557593937c3ef439794e04b7c",
      "fileid": "cbcc39d3fc779e754868ea16722ef4a2267de09fdd6ade2654b2cbc72eb995f5",
      "status": "success",
      "buildurl": "https://github.com/r-universe/inbo/actions/runs/25426603910"
    }
  ]
}