Description Usage Arguments Value Author(s) See Also Examples
coda_dotplot
creates a single dotplot of the specified parameters
(or all parameters if none are specified) with the dots giving the
median value over all mcmc chains and horizontal bars giving the 80%
credibility interval (thick bars) and the 95% credibility intervals
(thin bars). This type of plot is also known as a catepillar plot and
provides a way to easily summarize many parameters in a hierarchical
model.
1 | coda_dotplot(coda.object, parameters = NULL)
|
coda.object |
An mcmc.list object |
parameters |
character vector of parameter names to include in graphic. If none are supplied all monitored parameters are included. |
A graphics device
Michael Malick
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(coda)
data(line)
coda_dotplot(line)
coda_dotplot(line, parameters = "alpha")
coda_dotplot(line, parameters = c("alpha", "beta"))
coda_dotplot(line, parameters = grep("sig", varnames(line), value = TRUE))
coda_dotplot(line, parameters = grep("a", varnames(line), value = TRUE))
coda_dotplot(line, parameters = c("alpha", grep("sig", varnames(line),
value = TRUE)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.