{
  "_id": "69c0fb23b5ac36b5fb6c3864",
  "Type": "Package",
  "Package": "loo",
  "Title": "Efficient Leave-One-Out Cross-Validation and WAIC for Bayesian\nModels",
  "Version": "2.9.0",
  "Date": "2025-12-22",
  "Authors@R": "c(\nperson(\"Aki\", \"Vehtari\", email = \"Aki.Vehtari@aalto.fi\", role = \"aut\"),\nperson(\"Jonah\", \"Gabry\", email = \"jgabry@gmail.com\", role = c(\"cre\", \"aut\")),\nperson(\"Måns\", \"Magnusson\", role = \"aut\"),\nperson(\"Yuling\", \"Yao\", role = \"aut\"),\nperson(\"Paul-Christian\", \"Bürkner\", role = \"aut\"),\nperson(\"Topi\", \"Paananen\", role = \"aut\"),\nperson(\"Andrew\", \"Gelman\", role = \"aut\"),\nperson(\"Ben\", \"Goodrich\", role = \"ctb\"),\nperson(\"Juho\", \"Piironen\", role = \"ctb\"),\nperson(\"Bruno\", \"Nicenboim\", role = \"ctb\"),\nperson(\"Leevi\", \"Lindgren\", role = \"ctb\"),\nperson(\"Visruth\", \"Srimath Kandali\", role = \"ctb\")\n)",
  "Maintainer": "Jonah Gabry <jgabry@gmail.com>",
  "Description": "Efficient approximate leave-one-out cross-validation (LOO)\nfor Bayesian models fit using Markov chain Monte Carlo, as\ndescribed in Vehtari, Gelman, and Gabry (2017)\n<doi:10.1007/s11222-016-9696-4>. The approximation uses Pareto\nsmoothed importance sampling (PSIS), a new procedure for\nregularizing importance weights.  As a byproduct of the\ncalculations, we also obtain approximate standard errors for\nestimated predictive errors and for the comparison of\npredictive errors between models. The package also provides\nmethods for using stacking and other model weighting techniques\nto average Bayesian predictive distributions.",
  "License": "GPL (>=3)",
  "URL": "https://mc-stan.org/loo/, https://discourse.mc-stan.org",
  "BugReports": "https://github.com/stan-dev/loo/issues",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/testthat/parallel": "true",
  "Config/testthat/start-first": "loo_subsampling_cases, loo_subsampling",
  "Encoding": "UTF-8",
  "LazyData": "TRUE",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "SystemRequirements": "pandoc (>= 1.12.3), pandoc-citeproc",
  "Repository": "https://r-multiverse.r-universe.dev",
  "Date/Publication": "2025-12-23 15:30:47 UTC",
  "RemoteUrl": "https://github.com/stan-dev/loo",
  "RemoteRef": "v2.9.0",
  "RemoteSha": "299a4c7af159b08b3be0184744cc1a9615b6a341",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-03-23 08:30:33 UTC",
    "User": "root"
  },
  "Author": "Aki Vehtari [aut],\nJonah Gabry [cre, aut],\nMåns Magnusson [aut],\nYuling Yao [aut],\nPaul-Christian Bürkner [aut],\nTopi Paananen [aut],\nAndrew Gelman [aut],\nBen Goodrich [ctb],\nJuho Piironen [ctb],\nBruno Nicenboim [ctb],\nLeevi Lindgren [ctb],\nVisruth Srimath Kandali [ctb]",
  "MD5sum": "39cc5b21ab248bfd89d265d739c59497",
  "_user": "r-multiverse",
  "_type": "src",
  "_file": "loo_2.9.0.tar.gz",
  "_fileid": "c8c1185f3a961ba77320c368c115b713c918e3e5c8f530a5022b5afd58a32f24",
  "_filesize": 2545660,
  "_sha256": "c8c1185f3a961ba77320c368c115b713c918e3e5c8f530a5022b5afd58a32f24",
  "_created": "2026-03-23T08:30:33.000Z",
  "_published": "2026-03-23T08:34:43.806Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 68147783299,
      "time": 198,
      "config": "linux-devel-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6054752749"
    },
    {
      "job": 68147783291,
      "time": 208,
      "config": "linux-release-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6054755633"
    },
    {
      "job": 68147783263,
      "time": 115,
      "config": "macos-devel-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6054734360"
    },
    {
      "job": 68147783269,
      "time": 154,
      "config": "macos-release-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6054743204"
    },
    {
      "job": 68147312398,
      "time": 236,
      "config": "source",
      "r": "4.5.2",
      "check": "OK",
      "artifact": "6054708215"
    },
    {
      "job": 68147783256,
      "time": 173,
      "config": "wasm-release",
      "r": "4.5.1",
      "check": "OK",
      "artifact": "6054747165"
    },
    {
      "job": 68147783277,
      "time": 155,
      "config": "windows-devel",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6054743550"
    },
    {
      "job": 68147783241,
      "time": 141,
      "config": "windows-release",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6054740056"
    }
  ],
  "_buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/23428036031",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/stan-dev/loo",
  "_commit": {
    "id": "299a4c7af159b08b3be0184744cc1a9615b6a341",
    "author": "jgabry <jgabry@gmail.com>",
    "committer": "jgabry <jgabry@gmail.com>",
    "message": "v2.9.0\n",
    "time": 1766503847
  },
  "_maintainer": {
    "name": "Jonah Gabry",
    "email": "jgabry@gmail.com",
    "login": "jgabry",
    "uuid": 7796803
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.1.2",
      "role": "Depends"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "matrixStats",
      "version": ">= 0.52",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "posterior",
      "version": ">= 1.5.0",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "bayesplot",
      "version": ">= 1.7.0",
      "role": "Suggests"
    },
    {
      "package": "brms",
      "version": ">= 2.10.0",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "graphics",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rstan",
      "role": "Suggests"
    },
    {
      "package": "rstanarm",
      "version": ">= 2.19.0",
      "role": "Suggests"
    },
    {
      "package": "rstantools",
      "role": "Suggests"
    },
    {
      "package": "spdep",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0",
      "role": "Suggests"
    }
  ],
  "_owner": "stan-dev",
  "_selfowned": false,
  "_usedby": 303,
  "_updates": [
    {
      "week": "2025-14",
      "n": 1
    },
    {
      "week": "2025-24",
      "n": 1
    },
    {
      "week": "2025-26",
      "n": 2
    },
    {
      "week": "2025-27",
      "n": 1
    },
    {
      "week": "2025-35",
      "n": 1
    },
    {
      "week": "2025-41",
      "n": 1
    },
    {
      "week": "2025-42",
      "n": 2
    },
    {
      "week": "2025-43",
      "n": 6
    },
    {
      "week": "2025-44",
      "n": 2
    },
    {
      "week": "2025-48",
      "n": 1
    },
    {
      "week": "2025-49",
      "n": 5
    },
    {
      "week": "2025-51",
      "n": 4
    },
    {
      "week": "2025-52",
      "n": 3
    }
  ],
  "_tags": [
    {
      "name": "v2.9.0",
      "date": "2025-12-23"
    }
  ],
  "_topics": [
    "bayes",
    "bayesian",
    "bayesian-data-analysis",
    "bayesian-inference",
    "bayesian-methods",
    "bayesian-statistics",
    "cross-validation",
    "information-criterion",
    "model-comparison",
    "stan"
  ],
  "_stars": 154,
  "_contributors": [
    {
      "user": "jgabry",
      "count": 959,
      "uuid": 7796803
    },
    {
      "user": "mansmeg",
      "count": 126,
      "uuid": 2458198
    },
    {
      "user": "avehtari",
      "count": 98,
      "uuid": 6705400
    },
    {
      "user": "visruthsk",
      "count": 77,
      "uuid": 67435125
    },
    {
      "user": "topipa",
      "count": 43,
      "uuid": 24715100
    },
    {
      "user": "leevilindgren",
      "count": 20,
      "uuid": 48201042
    },
    {
      "user": "yao-yl",
      "count": 17,
      "uuid": 23089131
    },
    {
      "user": "paul-buerkner",
      "count": 17,
      "uuid": 12938496
    },
    {
      "user": "bnicenboim",
      "count": 9,
      "uuid": 5982330
    },
    {
      "user": "yannmclatchie",
      "count": 6,
      "uuid": 67298926
    },
    {
      "user": "mcol",
      "count": 4,
      "uuid": 6078177
    },
    {
      "user": "ishaan-arora-1",
      "count": 3,
      "uuid": 178517080
    },
    {
      "user": "vinniott",
      "count": 3,
      "uuid": 252752726
    },
    {
      "user": "cfhammill",
      "count": 2,
      "uuid": 7467038
    },
    {
      "user": "fweber144",
      "count": 2,
      "uuid": 55132727
    },
    {
      "user": "andrjohns",
      "count": 1,
      "uuid": 27717896
    },
    {
      "user": "annariha",
      "count": 1,
      "uuid": 22824263
    },
    {
      "user": "rok-cesnovar",
      "count": 1,
      "uuid": 28476796
    },
    {
      "user": "ecmerkle",
      "count": 1,
      "uuid": 4818626
    },
    {
      "user": "jrnold",
      "count": 1,
      "uuid": 123968
    },
    {
      "user": "krz",
      "count": 1,
      "uuid": 210623
    }
  ],
  "_userbio": {
    "uuid": 161461790,
    "type": "organization",
    "name": "R-multiverse",
    "description": "A community-curated collection of R package releases, powered by R-universe"
  },
  "_downloads": {
    "count": 256886,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/loo"
  },
  "_mentions": 29,
  "_devurl": "https://github.com/stan-dev/loo",
  "_pkgdown": "https://mc-stan.org/loo/",
  "_searchresults": 3760,
  "_rbuild": "4.5.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/loo.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/stan-dev/loo",
  "_realowner": "stan-dev",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2015-06-26"
    },
    {
      "version": "0.1.2",
      "date": "2015-07-16"
    },
    {
      "version": "0.1.3",
      "date": "2015-09-18"
    },
    {
      "version": "0.1.4",
      "date": "2015-12-10"
    },
    {
      "version": "0.1.5",
      "date": "2016-02-12"
    },
    {
      "version": "0.1.6",
      "date": "2016-03-23"
    },
    {
      "version": "1.0.0",
      "date": "2016-12-16"
    },
    {
      "version": "1.1.0",
      "date": "2017-03-27"
    },
    {
      "version": "2.0.0",
      "date": "2018-04-11"
    },
    {
      "version": "2.1.0",
      "date": "2019-03-13"
    },
    {
      "version": "2.2.0",
      "date": "2019-12-19"
    },
    {
      "version": "2.3.0",
      "date": "2020-07-07"
    },
    {
      "version": "2.3.1",
      "date": "2020-07-15"
    },
    {
      "version": "2.4.0",
      "date": "2020-12-05"
    },
    {
      "version": "2.4.1",
      "date": "2020-12-10"
    },
    {
      "version": "2.5.0",
      "date": "2022-03-16"
    },
    {
      "version": "2.5.1",
      "date": "2022-03-24"
    },
    {
      "version": "2.6.0",
      "date": "2023-03-31"
    },
    {
      "version": "2.7.0",
      "date": "2024-02-25"
    },
    {
      "version": "2.8.0",
      "date": "2024-07-03"
    },
    {
      "version": "2.9.0",
      "date": "2025-12-23"
    }
  ],
  "_exports": [
    ".compute_point_estimate",
    ".ndraws",
    ".thin_draws",
    "compare",
    "crps",
    "E_loo",
    "elpd",
    "example_loglik_array",
    "example_loglik_matrix",
    "extract_log_lik",
    "find_model_names",
    "gpdfit",
    "is.kfold",
    "is.loo",
    "is.psis",
    "is.psis_loo",
    "is.sis",
    "is.tis",
    "is.waic",
    "kfold",
    "kfold_split_grouped",
    "kfold_split_random",
    "kfold_split_stratified",
    "loo",
    "loo_approximate_posterior",
    "loo_approximate_posterior.array",
    "loo_approximate_posterior.function",
    "loo_approximate_posterior.matrix",
    "loo_compare",
    "loo_crps",
    "loo_i",
    "loo_model_weights",
    "loo_model_weights.default",
    "loo_moment_match",
    "loo_moment_match.default",
    "loo_predictive_metric",
    "loo_scrps",
    "loo_subsample",
    "loo_subsample.function",
    "loo.array",
    "loo.function",
    "loo.matrix",
    "mcse_loo",
    "nlist",
    "obs_idx",
    "pareto_k_ids",
    "pareto_k_influence_values",
    "pareto_k_table",
    "pareto_k_values",
    "pointwise",
    "print_dims",
    "pseudobma_weights",
    "psis",
    "psis_n_eff_values",
    "psislw",
    "relative_eff",
    "scrps",
    "sis",
    "stacking_weights",
    "tis",
    "waic",
    "waic.array",
    "waic.function",
    "waic.matrix",
    "weights.importance_sampling"
  ],
  "_datasets": [
    {
      "name": "Kline",
      "title": "Datasets for loo examples and vignettes",
      "object": "Kline",
      "class": [
        "data.frame"
      ],
      "fields": [
        "culture",
        "population",
        "contact",
        "total_tools",
        "mean_TU"
      ],
      "rows": 10,
      "table": true,
      "tojson": true
    },
    {
      "name": "milk",
      "title": "Datasets for loo examples and vignettes",
      "object": "milk",
      "class": [
        "data.frame"
      ],
      "fields": [
        "clade",
        "species",
        "kcal.per.g",
        "perc.fat",
        "perc.protein",
        "perc.lactose",
        "mass",
        "neocortex.perc"
      ],
      "rows": 29,
      "table": true,
      "tojson": true
    },
    {
      "name": "voice",
      "title": "Datasets for loo examples and vignettes",
      "object": "voice",
      "class": [
        "data.frame"
      ],
      "fields": [
        "y",
        "X0",
        "X1",
        "X2",
        "X3",
        "X4",
        "X5",
        "X6",
        "X7",
        "X8",
        "X9",
        "X10",
        "X11",
        "X12",
        "X13",
        "X14",
        "X15",
        "X16",
        "X17",
        "X18",
        "X19",
        "X20",
        "X21",
        "X22",
        "X23",
        "X24",
        "X25",
        "X26",
        "X27",
        "X28",
        "X29",
        "X30",
        "X31",
        "X32",
        "X33",
        "X34",
        "X35",
        "X36",
        "X37",
        "X38",
        "X39",
        "X40",
        "X41",
        "X42",
        "X43",
        "X44",
        "X45",
        "X46",
        "X47",
        "X48",
        "X49",
        "X50",
        "X51",
        "X52",
        "X53",
        "X54",
        "X55",
        "X56",
        "X57",
        "X58",
        "X59",
        "X60",
        "X61",
        "X62",
        "X63",
        "X64",
        "X65",
        "X66",
        "X67",
        "X68",
        "X69",
        "X70",
        "X71",
        "X72",
        "X73",
        "X74",
        "X75",
        "X76",
        "X77",
        "X78",
        "X79",
        "X80",
        "X81",
        "X82",
        "X83",
        "X84",
        "X85",
        "X86",
        "X87",
        "X88",
        "X89",
        "X90",
        "X91",
        "X92",
        "X93",
        "X94",
        "X95",
        "X96",
        "X97",
        "X98",
        "X99",
        "X100",
        "X101",
        "X102",
        "X103",
        "X104",
        "X105",
        "X106",
        "X107",
        "X108",
        "X109",
        "X110",
        "X111",
        "X112",
        "X113",
        "X114",
        "X115",
        "X116",
        "X117",
        "X118",
        "X119",
        "X120",
        "X121",
        "X122",
        "X123",
        "X124",
        "X125",
        "X126",
        "X127",
        "X128",
        "X129",
        "X130",
        "X131",
        "X132",
        "X133",
        "X134",
        "X135",
        "X136",
        "X137",
        "X138",
        "X139",
        "X140",
        "X141",
        "X142",
        "X143",
        "X144",
        "X145",
        "X146",
        "X147",
        "X148",
        "X149",
        "X150",
        "X151",
        "X152",
        "X153",
        "X154",
        "X155",
        "X156",
        "X157",
        "X158",
        "X159",
        "X160",
        "X161",
        "X162",
        "X163",
        "X164",
        "X165",
        "X166",
        "X167",
        "X168",
        "X169",
        "X170",
        "X171",
        "X172",
        "X173",
        "X174",
        "X175",
        "X176",
        "X177",
        "X178",
        "X179",
        "X180",
        "X181",
        "X182",
        "X183",
        "X184",
        "X185",
        "X186",
        "X187",
        "X188",
        "X189",
        "X190",
        "X191",
        "X192",
        "X193",
        "X194",
        "X195",
        "X196",
        "X197",
        "X198",
        "X199",
        "X200",
        "X201",
        "X202",
        "X203",
        "X204",
        "X205",
        "X206",
        "X207",
        "X208",
        "X209",
        "X210",
        "X211",
        "X212",
        "X213",
        "X214",
        "X215",
        "X216",
        "X217",
        "X218",
        "X219",
        "X220",
        "X221",
        "X222",
        "X223",
        "X224",
        "X225",
        "X226",
        "X227",
        "X228",
        "X229",
        "X230",
        "X231",
        "X232",
        "X233",
        "X234",
        "X235",
        "X236",
        "X237",
        "X238",
        "X239",
        "X240",
        "X241",
        "X242",
        "X243",
        "X244",
        "X245",
        "X246",
        "X247",
        "X248",
        "X249",
        "X250",
        "X251",
        "X252",
        "X253",
        "X254",
        "X255",
        "X256",
        "X257",
        "X258",
        "X259",
        "X260",
        "X261",
        "X262",
        "X263",
        "X264",
        "X265",
        "X266",
        "X267",
        "X268",
        "X269",
        "X270",
        "X271",
        "X272",
        "X273",
        "X274",
        "X275",
        "X276",
        "X277",
        "X278",
        "X279",
        "X280",
        "X281",
        "X282",
        "X283",
        "X284",
        "X285",
        "X286",
        "X287",
        "X288",
        "X289",
        "X290",
        "X291",
        "X292",
        "X293",
        "X294",
        "X295",
        "X296",
        "X297",
        "X298",
        "X299",
        "X300",
        "X301",
        "X302",
        "X303",
        "X304",
        "X305",
        "X306",
        "X307",
        "X308",
        "X309",
        "X310",
        "X311"
      ],
      "rows": 126,
      "table": true,
      "tojson": true
    },
    {
      "name": "voice_loo",
      "title": "Datasets for loo examples and vignettes",
      "object": "voice_loo",
      "class": [
        "data.frame"
      ],
      "fields": [
        "X.1",
        "X",
        "elpd_loo"
      ],
      "rows": 126,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "loo-package",
      "title": "Efficient LOO-CV and WAIC for Bayesian models",
      "topics": [
        "loo-package"
      ]
    },
    {
      "page": "ap_psis",
      "title": "Pareto smoothed importance sampling (PSIS) using approximate posteriors",
      "topics": [
        "ap_psis",
        "ap_psis.array",
        "ap_psis.default",
        "ap_psis.matrix"
      ]
    },
    {
      "page": "compare",
      "title": "Model comparison (deprecated, old version)",
      "topics": [
        "compare"
      ]
    },
    {
      "page": "crps",
      "title": "Continuously ranked probability score",
      "topics": [
        "crps",
        "crps.matrix",
        "crps.numeric",
        "loo_crps",
        "loo_crps.matrix",
        "loo_scrps",
        "loo_scrps.matrix",
        "scrps",
        "scrps.matrix",
        "scrps.numeric"
      ]
    },
    {
      "page": "E_loo",
      "title": "Compute weighted expectations",
      "topics": [
        "E_loo",
        "E_loo.default",
        "E_loo.matrix"
      ]
    },
    {
      "page": "elpd",
      "title": "Generic (expected) log-predictive density",
      "topics": [
        "elpd",
        "elpd.array",
        "elpd.matrix"
      ]
    },
    {
      "page": "example_loglik_array",
      "title": "Objects to use in examples and tests",
      "topics": [
        "example_loglik_array",
        "example_loglik_matrix"
      ]
    },
    {
      "page": "extract_log_lik",
      "title": "Extract pointwise log-likelihood from a Stan model",
      "topics": [
        "extract_log_lik"
      ]
    },
    {
      "page": "gpdfit",
      "title": "Estimate parameters of the Generalized Pareto distribution",
      "topics": [
        "gpdfit"
      ]
    },
    {
      "page": "importance_sampling",
      "title": "A parent class for different importance sampling methods.",
      "topics": [
        "importance_sampling",
        "importance_sampling.array",
        "importance_sampling.default",
        "importance_sampling.matrix"
      ]
    },
    {
      "page": "kfold-generic",
      "title": "Generic function for K-fold cross-validation for developers",
      "topics": [
        "is.kfold",
        "kfold",
        "kfold-generic"
      ]
    },
    {
      "page": "kfold-helpers",
      "title": "Helper functions for K-fold cross-validation",
      "topics": [
        "kfold-helpers",
        "kfold_split_grouped",
        "kfold_split_random",
        "kfold_split_stratified"
      ]
    },
    {
      "page": "loo",
      "title": "Efficient approximate leave-one-out cross-validation (LOO)",
      "topics": [
        "is.loo",
        "is.psis_loo",
        "loo",
        "loo.array",
        "loo.function",
        "loo.matrix",
        "loo_i"
      ]
    },
    {
      "page": "loo_approximate_posterior",
      "title": "Efficient approximate leave-one-out cross-validation (LOO) for posterior approximations",
      "topics": [
        "loo_approximate_posterior",
        "loo_approximate_posterior.array",
        "loo_approximate_posterior.function",
        "loo_approximate_posterior.matrix"
      ]
    },
    {
      "page": "loo_compare",
      "title": "Model comparison",
      "topics": [
        "loo_compare",
        "loo_compare.default",
        "print.compare.loo",
        "print.compare.loo_ss"
      ]
    },
    {
      "page": "loo_model_weights",
      "title": "Model averaging/weighting via stacking or pseudo-BMA weighting",
      "topics": [
        "loo_model_weights",
        "loo_model_weights.default",
        "pseudobma_weights",
        "stacking_weights"
      ]
    },
    {
      "page": "loo_moment_match",
      "title": "Moment matching for efficient approximate leave-one-out cross-validation (LOO)",
      "topics": [
        "loo_moment_match",
        "loo_moment_match.default"
      ]
    },
    {
      "page": "loo_moment_match_split",
      "title": "Split moment matching for efficient approximate leave-one-out cross-validation (LOO)",
      "topics": [
        "loo_moment_match_split"
      ]
    },
    {
      "page": "loo_predictive_metric",
      "title": "Estimate leave-one-out predictive performance..",
      "topics": [
        "loo_predictive_metric",
        "loo_predictive_metric.matrix"
      ]
    },
    {
      "page": "loo_subsample",
      "title": "Efficient approximate leave-one-out cross-validation (LOO) using subsampling, so that less costly and more approximate computation is made for all LOO-fold, and more costly and accurate computations are made only for m<N LOO-folds.",
      "topics": [
        "loo_subsample",
        "loo_subsample.function"
      ]
    },
    {
      "page": "loo-datasets",
      "title": "Datasets for loo examples and vignettes",
      "topics": [
        "Kline",
        "loo-datasets",
        "milk",
        "voice",
        "voice_loo"
      ]
    },
    {
      "page": "loo-glossary",
      "title": "LOO package glossary",
      "topics": [
        "loo-glossary"
      ]
    },
    {
      "page": "nobs.psis_loo_ss",
      "title": "The number of observations in a 'psis_loo_ss' object.",
      "topics": [
        "nobs.psis_loo_ss"
      ]
    },
    {
      "page": "obs_idx",
      "title": "Get observation indices used in subsampling",
      "topics": [
        "obs_idx"
      ]
    },
    {
      "page": "pareto-k-diagnostic",
      "title": "Diagnostics for Pareto smoothed importance sampling (PSIS)",
      "topics": [
        "mcse_loo",
        "pareto-k-diagnostic",
        "pareto_k_ids",
        "pareto_k_influence_values",
        "pareto_k_table",
        "pareto_k_values",
        "plot.loo",
        "plot.psis",
        "plot.psis_loo",
        "psis_n_eff_values"
      ]
    },
    {
      "page": "pointwise",
      "title": "Convenience function for extracting pointwise estimates",
      "topics": [
        "pointwise",
        "pointwise.loo"
      ]
    },
    {
      "page": "print.loo",
      "title": "Print methods",
      "topics": [
        "print.importance_sampling",
        "print.importance_sampling_loo",
        "print.loo",
        "print.psis",
        "print.psis_loo",
        "print.psis_loo_ap",
        "print.waic"
      ]
    },
    {
      "page": "psis",
      "title": "Pareto smoothed importance sampling (PSIS)",
      "topics": [
        "is.psis",
        "is.sis",
        "is.tis",
        "psis",
        "psis.array",
        "psis.default",
        "psis.matrix"
      ]
    },
    {
      "page": "psislw",
      "title": "Pareto smoothed importance sampling (deprecated, old version)",
      "topics": [
        "psislw"
      ]
    },
    {
      "page": "relative_eff",
      "title": "Convenience function for computing relative efficiencies",
      "topics": [
        "relative_eff",
        "relative_eff.array",
        "relative_eff.default",
        "relative_eff.function",
        "relative_eff.importance_sampling",
        "relative_eff.matrix"
      ]
    },
    {
      "page": "sis",
      "title": "Standard importance sampling (SIS)",
      "topics": [
        "sis",
        "sis.array",
        "sis.default",
        "sis.matrix"
      ]
    },
    {
      "page": "tis",
      "title": "Truncated importance sampling (TIS)",
      "topics": [
        "tis",
        "tis.array",
        "tis.default",
        "tis.matrix"
      ]
    },
    {
      "page": "update.psis_loo_ss",
      "title": "Update 'psis_loo_ss' objects",
      "topics": [
        "update.psis_loo_ss"
      ]
    },
    {
      "page": "waic",
      "title": "Widely applicable information criterion (WAIC)",
      "topics": [
        "is.waic",
        "waic",
        "waic.array",
        "waic.function",
        "waic.matrix"
      ]
    },
    {
      "page": "weights.importance_sampling",
      "title": "Extract importance sampling weights",
      "topics": [
        "weights.importance_sampling"
      ]
    }
  ],
  "_pkglogo": "https://github.com/stan-dev/loo/raw/v2.9.0/man/figures/logo.svg",
  "_readme": "https://github.com/stan-dev/loo/raw/v2.9.0/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "checkmate",
    "cli",
    "distributional",
    "generics",
    "glue",
    "lifecycle",
    "magrittr",
    "matrixStats",
    "numDeriv",
    "pillar",
    "pkgconfig",
    "posterior",
    "rlang",
    "tensorA",
    "tibble",
    "utf8",
    "vctrs"
  ],
  "_vignettes": [
    {
      "source": "loo2-lfo.Rmd",
      "filename": "loo2-lfo.html",
      "title": "Approximate leave-future-out cross-validation for Bayesian time series models",
      "author": "Paul Bürkner, Jonah Gabry, Aki Vehtari",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "$M$-step-ahead predictions",
        "Approximate $M$-SAP using importance-sampling",
        "Autoregressive models",
        "Case Study: Annual measurements of the level of Lake Huron",
        "1-step-ahead predictions leaving out all future values",
        "Exact 1-step-ahead predictions",
        "Approximate 1-step-ahead predictions",
        "$M$-step-ahead predictions leaving out all future values",
        "Exact $M$-step-ahead predictions",
        "Approximate $M$-step-ahead predictions",
        "Conclusion",
        "References",
        "Appendix",
        "Appendix: Session information",
        "Appendix: Licenses"
      ],
      "created": "2018-10-16 07:59:36",
      "modified": "2024-04-15 19:18:51",
      "commits": 22
    },
    {
      "source": "loo2-moment-matching.Rmd",
      "filename": "loo2-moment-matching.html",
      "title": "Avoiding model refits in leave-one-out cross-validation with moment matching",
      "author": "Topi Paananen, Paul Bürkner, Aki Vehtari and Jonah Gabry",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Example: Eradication of Roaches",
        "Coding the Stan model",
        "Setup",
        "Fitting the model with RStan",
        "Moment matching correction for importance sampling",
        "Using loo_moment_match() directly",
        "References"
      ],
      "created": "2020-03-05 18:38:35",
      "modified": "2025-12-22 17:00:59",
      "commits": 19
    },
    {
      "source": "loo2-weights.Rmd",
      "filename": "loo2-weights.html",
      "title": "Bayesian Stacking and Pseudo-BMA weights using the loo package",
      "author": "Aki Vehtari and Jonah Gabry",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Setup",
        "Example: Primate milk",
        "Example: Oceanic tool complexity",
        "Simpler coding using loo_model_weights function",
        "References"
      ],
      "created": "2018-04-04 18:15:07",
      "modified": "2024-04-15 19:18:51",
      "commits": 11
    },
    {
      "source": "loo2-elpd.Rmd",
      "filename": "loo2-elpd.html",
      "title": "Holdout validation and K-fold cross-validation of Stan programs with the loo package",
      "author": "Bruno Nicenboim",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Example: Eradication of Roaches using holdout validation approach",
        "Coding the Stan model",
        "Setup",
        "Holdout validation",
        "Splitting the data between train and test",
        "Fitting the model with RStan",
        "Computing holdout elpd:",
        "K-fold cross validation",
        "Splitting the data in folds",
        "Fitting and extracting the log pointwise predictive densities for each fold",
        "Computing K-fold elpd:",
        "References"
      ],
      "created": "2020-12-04 02:48:54",
      "modified": "2025-12-22 17:40:40",
      "commits": 3
    },
    {
      "source": "loo2-non-factorized.Rmd",
      "filename": "loo2-non-factorized.html",
      "title": "Leave-one-out cross-validation for non-factorized models",
      "author": "Aki Vehtari, Paul Bürkner and Jonah Gabry",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "LOO-CV for multivariate normal models",
        "Approximate LOO-CV using integrated importance-sampling",
        "Exact LOO-CV with re-fitting",
        "Lagged SAR models",
        "Case Study: Neighborhood Crime in Columbus, Ohio",
        "Fit lagged SAR model",
        "Approximate LOO-CV",
        "Exact LOO-CV",
        "Working with Stan directly",
        "Conclusion",
        "References"
      ],
      "created": "2020-06-15 14:36:32",
      "modified": "2024-04-15 19:18:51",
      "commits": 11
    },
    {
      "source": "loo2-mixis.Rmd",
      "filename": "loo2-mixis.html",
      "title": "Mixture IS leave-one-out cross-validation for high-dimensional Bayesian models",
      "author": "Luca Silva and Giacomo Zanella",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Setup: load packages and set seed",
        "Model",
        "Dataset",
        "PSIS estimators and Pareto-$k$ diagnostics",
        "Mixture estimators",
        "Comparison with benchmark values obtained with long simulations",
        "References"
      ],
      "created": "2023-03-23 19:12:13",
      "modified": "2024-04-15 19:18:51",
      "commits": 5
    },
    {
      "source": "loo2-large-data.Rmd",
      "filename": "loo2-large-data.html",
      "title": "Using Leave-one-out cross-validation for large data",
      "author": "Mans Magnusson, Paul Bürkner, Aki Vehtari and Jonah Gabry",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Setup",
        "Example: Well water in Bangladesh",
        "Coding the Stan model",
        "Fitting the model with RStan",
        "Approximate LOO-CV using PSIS-LOO and subsampling",
        "Adding additional subsamples",
        "Specifying estimator and sampling method",
        "Approximate LOO-CV using PSIS-LOO with posterior approximations",
        "Combining the posterior approximation method with subsampling",
        "Comparing models",
        "References"
      ],
      "created": "2019-09-17 19:10:18",
      "modified": "2024-04-15 19:18:51",
      "commits": 15
    },
    {
      "source": "loo2-example.Rmd",
      "filename": "loo2-example.html",
      "title": "Using the loo package (version >= 2.0.0)",
      "author": "Aki Vehtari and Jonah Gabry",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Setup",
        "Example: Poisson vs negative binomial for the roaches dataset",
        "Background and model fitting",
        "Roaches data",
        "Fit Poisson model",
        "Using the loo package for model checking and comparison",
        "Computing PSIS-LOO and checking diagnostics",
        "Plotting Pareto $k$ diagnostics",
        "Marginal posterior predictive checks",
        "Try alternative model with more flexibility",
        "Comparing the models on expected log predictive density",
        "References"
      ],
      "created": "2018-04-04 18:15:07",
      "modified": "2025-12-22 17:00:59",
      "commits": 17
    },
    {
      "source": "loo2-with-rstan.Rmd",
      "filename": "loo2-with-rstan.html",
      "title": "Writing Stan programs for use with the loo package",
      "author": "Aki Vehtari and Jonah Gabry",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Example: Well water in Bangladesh",
        "Coding the Stan model",
        "Fitting the model with RStan",
        "Computing approximate leave-one-out cross-validation using PSIS-LOO",
        "Comparing models",
        "References"
      ],
      "created": "2018-04-04 18:15:07",
      "modified": "2024-04-15 19:18:51",
      "commits": 14
    }
  ],
  "_score": 18.199198747079475,
  "_indexed": false,
  "_nocasepkg": "loo",
  "_universes": [
    "r-multiverse"
  ],
  "_indexurl": "https://stan-dev.r-universe.dev/loo",
  "_binaries": [
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.9.0",
      "date": "2026-03-23T08:33:32.000Z",
      "distro": "noble",
      "commit": "299a4c7af159b08b3be0184744cc1a9615b6a341",
      "fileid": "5227704af1dabe456bc7f484accde0b13d0c485533df2c5f7f661f5b373180a5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/23428036031"
    },
    {
      "r": "4.5.3",
      "os": "linux",
      "version": "2.9.0",
      "date": "2026-03-23T08:33:44.000Z",
      "distro": "noble",
      "commit": "299a4c7af159b08b3be0184744cc1a9615b6a341",
      "fileid": "6c257d66f129b2cc15f089a7448f340886d3805a86c180e423fbbcde899cafb6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/23428036031"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.9.0",
      "date": "2026-03-23T08:32:24.000Z",
      "commit": "299a4c7af159b08b3be0184744cc1a9615b6a341",
      "fileid": "6fa60e4b29294f23817c3d970c9304fa1822a6fd76cd101cd0b4d1e26364a3d6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/23428036031"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.9.0",
      "date": "2026-03-23T08:33:09.000Z",
      "commit": "299a4c7af159b08b3be0184744cc1a9615b6a341",
      "fileid": "bcdbdbc9df6e2e6dfbdc6649c92bdd4aeedfe818737479a4e654deb0b1cb924f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/23428036031"
    },
    {
      "r": "4.5.1",
      "os": "wasm",
      "version": "2.9.0",
      "date": "2026-03-23T08:33:47.000Z",
      "commit": "299a4c7af159b08b3be0184744cc1a9615b6a341",
      "fileid": "62e1a4658b4db12421b88be5dac2335d5e7c3ffc91c66fdaf8b372498dd9930b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/23428036031"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.9.0",
      "date": "2026-03-23T08:32:32.000Z",
      "commit": "299a4c7af159b08b3be0184744cc1a9615b6a341",
      "fileid": "d4d8428f7d79ad3f8c71beb7a9f3a804564b00b82b314aafcb02872a045aa2c5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/23428036031"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.9.0",
      "date": "2026-03-23T08:32:12.000Z",
      "commit": "299a4c7af159b08b3be0184744cc1a9615b6a341",
      "fileid": "385c82128ce9ec07963ed6eafe9628535486de43386c951bddda7e52bf562bed",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/23428036031"
    }
  ]
}