plotBgr | R Documentation |
This function calculates and plots the Gelman-Rubin convergence statistic for a scalar variable, as modified by Brooks and Gelman (1998).
plotBgr(node, plot = TRUE, main = NULL, xlab = "iteration",
ylab = "bgr", col = c("red", "blue", "green"), bins = 50,
...)
node |
Character, name of a scalar variable in the model. |
plot |
Logical, whether to plot the BGR statistics or only return the values.
If |
main , xlab , ylab |
annotation, see |
col |
Colours, see Details Section in |
bins |
Number of blocks |
... |
Further graphical parameters as in |
Acts on a scalar variable. See the wrapper function samplesBgr
for more details.
Data frame with elements
Iteration |
end iteration of corresponding bin |
pooledChain80pct) |
80pct interval (normalized) of pooled chains |
withinChain80pct |
80pct interval (normalized) of mean within chain |
bgrRatio |
BGR ratio |
samplesBgr
, BRugs
, help.WinBUGS
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.