Learn R Programming

bacon (version 1.0.4)

posteriors: Method to plot posterior distribution

Description

Method to plot posterior distribution

Usage

posteriors(object, thetas = c("sigma.0", "p.0"), index = 1, alphas = c(0.95, 0.9, 0.75), xlab = "", ylab = "", ...)
"posteriors"(object, thetas = c("sigma.0", "p.0"), index = 1, alphas = c(0.95, 0.9, 0.75), xlab = "", ylab = "", ...)

Arguments

object
'bacon'-object
thetas
which thetas to plot
index
if multiple sets of test-statsistics where provided
alphas
significance level confidence ellipses
xlab
optional xlab
ylab
optional ylab
...
additional plotting parameters

Value

plot of the Gibbs Sampler posterior probabilities

See Also

bacon

Examples

Run this code
y <- rnormmix(2000, c(0.9, 0, 1, 0, 4, 1))
##nbins = 100 to speed up the calculations
bc <- bacon(y, nbins=100)
posteriors(bc)

Run the code above in your browser using DataLab