An simple function for for summarizing a Bayesian analysis given discrete or categorical variables and priors.
Bayes.disc(Likelihood, Prior, data.name = "data", plot = TRUE,
c.data = seq(1, length(Prior)), ...)Bayes.disc.tck()
A vector of sample distribution probabilities. This must be in the same order as Prior
, i.e. if \(\theta_1\) is the first element in Prior
, then \(data|\theta_1\) must be the first element in Data
.
A vector of prior probabilities, or weights.
A name for data in conditional statements.
Logical, indicating whether a plot should be made.
A character string of names for discrete classes
Additional arguments to plot
.
Ken Aho