Skip to content

Commit bb23eb3

Browse files
authored
Merge pull request #413 from BjarkeHautop/clarify-nuts-chain-arg
Clarify MCMC-nuts chain argument documentation for `mcmc_nuts_stepsize()`.
2 parents e6b90f6 + 5b46c93 commit bb23eb3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

R/mcmc-diagnostics-nuts.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
#' @param chain A positive integer for selecting a particular chain. The default
2020
#' (`NULL`) is to merge the chains before plotting. If `chain = k`
2121
#' then the plot for chain `k` is overlaid (in a darker shade but with
22-
#' transparency) on top of the plot for all chains. The `chain` argument
23-
#' is not used by `mcmc_nuts_energy()`.
22+
#' transparency) on top of the plot for all chains. For `mcmc_nuts_stepsize()`,
23+
#' chains are always plotted separately, and `chain` simply highlights the
24+
#' selected chain. The `chain` argument is not used by `mcmc_nuts_energy()`.
2425
#' @param ... Currently ignored.
2526
#'
2627
#' @return A gtable object (the result of calling
@@ -285,7 +286,6 @@ mcmc_nuts_divergence <- function(x, lp, chain = NULL, ...) {
285286
as_bayesplot_grid(nuts_plot)
286287
}
287288

288-
289289
#' @rdname MCMC-nuts
290290
#' @export
291291
mcmc_nuts_stepsize <- function(x, lp, chain = NULL, ...) {

man/MCMC-nuts.Rd

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)