View source: R/BASiCS_DiagHist.R
BASiCS_DiagHist | R Documentation |
Plot a histogram of effective sample size or Geweke's diagnostic z-statistic. See effectiveSize and geweke.diag for more details.
BASiCS_DiagHist(
object,
Parameter = NULL,
Measure = c("ess", "geweke.diag", "rhat"),
VLine = TRUE,
na.rm = TRUE
)
BASiCS_diagHist(...)
object |
an object of class |
Parameter |
Optional name of a chain parameter to restrict the
histogram; if not supplied, all parameters will be assessed.
Default |
Measure |
Character scalar specifying the diagnostic measure to plot.
Current options are effective sample size, the Geweke diagnostic
criterion, and the |
VLine |
Numeric scalar indicating a threshold value to be displayed as
a dashed line on the plot.
Alternatively, can be set to |
na.rm |
Logical scalar indicating whether NA values should be removed before calculating effective sample size. |
... |
Unused. |
A ggplot object.
Alan O'Callaghan
Geweke, J. Evaluating the accuracy of sampling-based approaches to calculating posterior moments. In _Bayesian Statistics 4_ (ed JM Bernado, JO Berger, AP Dawid and AFM Smith). Clarendon Press, Oxford, UK.
BASiCS_Chain
# Built-in example chain
data(ChainSC)
# See effective sample size distribution across all parameters
BASiCS_DiagHist(ChainSC)
# For mu only
BASiCS_DiagHist(ChainSC, Parameter = "mu")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.