Skip to content

Commit e5d6982

Browse files
Improved documentation of 'mcmc_rank_ecdf'
1 parent d6070d7 commit e5d6982

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

R/mcmc-traces.R

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,13 @@
6565
#' single panel.
6666
#' }
6767
#' \item{`mcmc_rank_ecdf()`}{
68-
#' The ECDFs of the ranks from `mcmc_rank_hist()` are plotted and
69-
#' simultaneous confidence bands with a coverage determined by
70-
#' `prob` are drawn. By default, the difference between the
71-
#' observed ECDF and the theoretical expectation is drawn.
68+
#' The ECDFs of the ranks from `mcmc_rank_hist()` are plotted with the
69+
#' simultaneous confidence bands with a coverage determined by `prob`,
70+
#' that is, bands that completely cover all of the rank ECDFs with the
71+
#' probability 'prob'.
72+
#' By default, the difference between the observed rank ECDFs and the
73+
#' theoretical expectation for samples originating from the same distribution
74+
#' is drawn.
7275
#' See Säilynoja et al. (2021) for details.
7376
#' }
7477
#' }
@@ -485,14 +488,14 @@ mcmc_rank_ecdf <-
485488
...
486489
)
487490
lims <- ecdf_intervals(
491+
gamma = gamma,
488492
N = n_iter,
489-
L = n_chain,
490493
K = if (is.null(K)) {
491494
n_iter
492495
} else {
493496
K
494497
},
495-
gamma = gamma
498+
L <- n_chain
496499
)
497500
data_lim <- data.frame(
498501
upper = lims$upper / n_iter - (plot_diff == TRUE) * x,

0 commit comments

Comments
 (0)