From fd4ed4b3e54c86b3fa088965e6bd6a451a6a0f9a Mon Sep 17 00:00:00 2001 From: DominiqueMakowski Date: Sat, 15 Aug 2026 20:38:43 +0100 Subject: [PATCH] Update report.compare.loo.R --- R/report.compare.loo.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/report.compare.loo.R b/R/report.compare.loo.R index cb0298b5..a81f790d 100644 --- a/R/report.compare.loo.R +++ b/R/report.compare.loo.R @@ -54,7 +54,7 @@ report.compare.loo <- function(x, include_IC = TRUE, include_ENP = FALSE, ...) { # The values in the first row are 0s because the models are ordered from best to worst according to their elpd. x <- as.data.frame(x) - modnames <- rownames(x) + modnames <- if ("model" %in% colnames(x)) x[["model"]] else rownames(x) elpd_diff <- x[["elpd_diff"]] se_elpd_diff <- x[["se_diff"]]