posteriors-methods: Method to plot posterior distribution

Description Usage Arguments Value See Also Examples

Description

Method to plot posterior distribution

Usage

1
2
3
4
5
6
7
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 = "",
  ...)

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

1
2
3
4
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)

bacon documentation built on Nov. 8, 2020, 4:54 p.m.