posteriors-methods: Method to plot posterior distribution

posteriorsR Documentation

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 = "",
  ...
)

## 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

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)

mvaniterson/bacon documentation built on April 19, 2024, 5:32 p.m.