Description Usage Arguments Details Value References See Also Examples
Calculates an R-hat (potential scale reduction factor) value.
1 2 |
x |
An object. |
by |
A string indicating whether to determine by "term", "parameter" or "all". |
as_df |
A flag indicating whether to return the results as a data frame versus a named list. |
na_rm |
A flag specifying whether to ignore missing values. |
... |
Other arguments passed to methods. |
By default the uncorrected, unfolded, univariate, split R-hat value.
A number >= 1 indicating the rhat value.
Gelman, A., and Rubin, D.B. 1992. Inference from Iterative Simulation Using Multiple Sequences. Statistical Science 7(4): 457–472.
Other convergence:
converged_pars()
,
converged_terms()
,
converged()
,
esr_pars()
,
esr_terms()
,
esr()
,
rhat_pars()
,
rhat_terms()
1 2 3 4 | rhat(mcmcr_example)
rhat(mcmcr_example, by = "parameter")
rhat(mcmcr_example, by = "term")
rhat(mcmcr_example, by = "term", as_df = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.