powered by
Calculates an R-hat (potential scale reduction factor) value.
# S3 method for mcmcr rhat(x, by = "all", as_df = FALSE, na_rm = FALSE, ...)
A number >= 1 indicating the rhat value.
An object.
A string indicating whether to determine by "term", "parameter" or "all".
A flag indicating whether to return the results as a data frame versus a named list.
A flag specifying whether to ignore missing values.
Other arguments passed to methods.
By default the uncorrected, unfolded, univariate, split R-hat value.
Gelman, A., and Rubin, D.B. 1992. Inference from Iterative Simulation Using Multiple Sequences. Statistical Science 7(4): 457–472.
Other convergence: converged(), converged_pars(), converged_terms(), esr(), esr_pars(), esr_terms(), rhat_pars(), rhat_terms()
converged()
converged_pars()
converged_terms()
esr()
esr_pars()
esr_terms()
rhat_pars()
rhat_terms()
rhat(mcmcr_example) rhat(mcmcr_example, by = "parameter") rhat(mcmcr_example, by = "term") rhat(mcmcr_example, by = "term", as_df = TRUE)
Run the code above in your browser using DataLab