Skip to content

Commit b0ebac7

Browse files
committed
oops, fix khat comparison
1 parent 65ef286 commit b0ebac7

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
@@ -140,7 +140,7 @@ loo_compare.default <- function(x, ...) {
140140
# Vehtari et al., 2024)
141141
khat_diff <- rep(NA, length(elpd_diff))
142142
khat_diff[elpd_diff!=0] <- apply(diffs[,elpd_diff!=0, drop = FALSE], 2, \(x) posterior::pareto_khat(x, tail="both"))
143-
diag_pnorm[khat_diff > ps_khat_threshold(N)] <- paste0("khat_diff > 0.5")
143+
diag_pnorm[khat_diff > 0.5] <- paste0("khat_diff > 0.5")
144144
}
145145
rownames(comp) <- rnms
146146
comp <- cbind(data.frame(elpd_diff = elpd_diff, se_diff = se_diff,

0 commit comments

Comments
 (0)