Skip to content

Commit cc3edfe

Browse files
committed
Update loo_compare.R
1 parent 62027d1 commit cc3edfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/loo_compare.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ loo_compare.default <- function(x, ...) {
136136
khat_diff <- rep(NA, length(elpd_diff))
137137
khat_diff[elpd_diff != 0] <- apply(
138138
diffs[, elpd_diff != 0, drop = FALSE], 2,
139-
function (x) ifelse(length(unique(x)) <= 20, NA, posterior::pareto_khat(x, tail = "both")
139+
function(x) ifelse(length(unique(x)) <= 20, NA, posterior::pareto_khat(x, tail = "both")
140140
))
141141
diag_pnorm[khat_diff > 0.5] <- paste0("khat_diff > 0.5")
142142
}

0 commit comments

Comments
 (0)