View source: R/helper-functions.R
gelmanDiag | R Documentation |
Extract potential scale reduction factors (Rhats) from an object of
class SummaryResults
. See the documentation for
fetchSummary
for details.
gelmanDiag(object)
object |
An object of class |
A named numeric vector.
fetchSummary
library(demdata)
deaths <- Counts(round(VADeaths2))
popn <- Counts(VAPopn)
filename <- tempfile()
estimateModel(Model(y ~ Poisson(mean ~ sex)),
y = deaths,
exposure = popn,
filename = filename,
nBurnin = 2,
nSim = 20,
nChain = 2,
parallel = FALSE)
summary.deaths <- fetchSummary(filename)
gelmanDiag(summary.deaths)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.