Density and generating function of the prior distribution.
prior.pb(type = c("r", "d"), n, par, Hpar, log, dimData)Either a matrix with n rows containing a random parameter sample generated under the prior (if type == "d"), or the (log)-density of the parameter par.
One of the character strings "r", "d"
The number of parameters to be generated. Only used
if type == "r".
A vector with positive components:
The parameter where the density is to be taken.
Only used if type=="d". In the Pairwise Beta model,
par is of length
choose(p,2)+1. The first element is the global dependence
parameter, the subsequent ones are the pairwise dependence
parameters, in lexicographic order (e.g.
\(\beta_{1,2}, \beta_{1,3}, \beta_{2,3}\).
list of Hyper-parameters : see pb.Hpar for a template.
logical. Should the density be returned on the log scale ?
Only used if type=="d"
The dimension of the sample space. (one more than the dimension of the simplex)
Anne Sabourin
The parameters components are independent, log-normal.