posteriors | R Documentation |
Method to plot posterior distribution
posteriors(
object,
thetas = c("sigma.0", "p.0"),
index = 1,
alphas = c(0.95, 0.9, 0.75),
xlab = "",
ylab = "",
...
)
## S4 method for signature 'Bacon'
posteriors(
object,
thetas = c("sigma.0", "p.0"),
index = 1,
alphas = c(0.95, 0.9, 0.75),
xlab = "",
ylab = "",
...
)
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 |
plot of the Gibbs Sampler posterior probabilities
bacon
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.