Skip to content

Commit

Permalink
Merge pull request #248 from stan-dev/fix_min_neff
Browse files Browse the repository at this point in the history
show NA for n_eff/ESS if k > k_threshold
  • Loading branch information
jgabry authored Feb 21, 2024
2 parents 68ee019 + ef4d236 commit 8108ac4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/diagnostics.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ pareto_k_table <- function(x) {
S <- dim(x)[1]
k_threshold <- ps_khat_threshold(S)
kcut <- k_cut(k, k_threshold)
n_eff[k>k_threshold] <- NA
min_n_eff <- min_n_eff_by_k(n_eff, kcut)
count <- table(kcut)
out <- cbind(
Expand Down

0 comments on commit 8108ac4

Please sign in to comment.