R/rhat-pars.R

Defines functions rhat_pars

Documented in rhat_pars

#' R-hat Parameters
#'
#' Calculates an R-hat (potential scale reduction factor) value for
#' each parameter.
#'
#' By default the uncorrected, unfolded, univariate,
#' split R-hat value.
#'
#' @inheritParams params
#' @return An uniquely named numeric atomic with values >= 1 indicating
#' the rhat value for each parameter.
#' @references
#' Gelman, A., and Rubin, D.B. 1992.
#' Inference from Iterative Simulation Using Multiple Sequences.
#' Statistical Science 7(4): 457–472.
#' @family convergence
#' @export
rhat_pars <- function(x, ...) {
  UseMethod("rhat_pars")
}

Try the universals package in your browser

Any scripts or data that you put into this service are public.

universals documentation built on Sept. 22, 2022, 5:07 p.m.