powered by
This function plots a graph of the sampled posterior distribution.
c212.plot.samples(samples, title)
An array of samples indexed by chain.
The graph title.
Nothing is returned.
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.
# 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