Plot the prior, likelihood, and posterior on the same plot.
This function takes any object of class Bolstad
and plots the prior,
likelihood and posterior on the same plot. The aim is to show the influence
of the prior, and the likelihood on the posterior.
decomp(x, ...)
x |
an object of class |
... |
any other arguments to be passed to the |
Note that xlab
, ylab
, main
, axes
,
xlim
, ylim
and type
are all used in the function so
specifying them is unlikely to have any effect.
James Curran
# an example with a binomial sampling situation results = binobp(4, 12, 3, 3, plot = FALSE) decomp(results) # an example with normal data y = c(2.99,5.56,2.83,3.47) results = normnp(y, 3, 2, 1, plot = FALSE) decomp(results)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.