coda_dotplot: Create a dotplot of median parameter values with 95%...

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1
coda_dotplot(coda.object, parameters = NULL)

Arguments

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.

Value

A graphics device

Author(s)

Michael Malick

See Also

xyplot

Examples

 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)))

MichaelMalick/r-codatools documentation built on May 8, 2019, 9:56 a.m.