Skip to content

Commit 6669943

Browse files
committed
mcmc_pairs: >= max_treedepth instead of > max_treedepth
fixes #281
1 parent b38d468 commit 6669943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/mcmc-scatterplots.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ mcmc_pairs <- function(x,
351351
divs <- dplyr::filter(np, UQ(param) == "divergent__") %>% pull(UQ(val))
352352
divergent__ <- matrix(divs, nrow = n_iter * n_chain, ncol = n_param)[, 1]
353353
if (!no_max_td) {
354-
gt_max_td <- (dplyr::filter(np, UQ(param) == "treedepth__") %>% pull(UQ(val))) > max_treedepth
354+
gt_max_td <- (dplyr::filter(np, UQ(param) == "treedepth__") %>% pull(UQ(val))) >= max_treedepth
355355
max_td_hit__ <- matrix(gt_max_td, nrow = n_iter * n_chain, ncol = n_param)[, 1]
356356
}
357357
}

0 commit comments

Comments
 (0)