discrete.bayes.2: Posterior distribution of two parameters with discrete priors
Description
Computes the posterior distribution for an arbitrary two parameter distribution
for a discrete prior
distribution.
Usage
discrete.bayes.2(df,prior,y=NULL,...)
Arguments
df
name of the function defining the sampling density of
two parameters
prior
matrix defining the prior density; the row names and column names
of the matrix define respectively the values of parameter 1 and values of
parameter 2 and the entries of the matrix give the prior probabilities
y
y is a matrix of data values, where each row corresponds to a
single observation
...
any further fixed parameter values
used in the sampling density function