Learn R Programming

c212 (version 0.98)

c212.plot.samples: Plot Posterior Distribution

Description

This function plots a graph of the sampled posterior distribution.

Usage

c212.plot.samples(samples, title)

Arguments

samples

An array of samples indexed by chain.

title

The graph title.

Value

Nothing is returned.

Details

Two graphs are displayed on the same panel. The left graph is the traceplot of the chains. The right graph is a plot of the distribution.

Examples

Run this code
# NOT RUN {
data(c212.trial.data)
raw = c212.1a(c212.trial.data)
sample = raw$theta[,2,2,]
c212.plot.samples(sample, sprintf("%s: %s %s", "theta", raw$B[2], raw$AE[2]))
# }

Run the code above in your browser using DataLab