Description Usage Arguments Value See Also
Use one of a number of methods to get the posterior distribution
1 2 3 4 5 6 | exactposterior(data,
prior = priorUniform(empty(ncol(data), "bn")),
logScoreFUN = logScoreMultDirFUN(),
logScoreParameters = list(hyperparameters = "bdeu"),
constraint = NULL, maxNumberParents = NULL,
verbose = T)
|
data |
The data. |
prior |
A list of functions of the same length as
|
logScoreFUN |
A list of four elements:
|
logScoreParameters |
A list of parameters that are passed to logScoreFUN. |
constraint |
A matrix of dimension ncol(data) x ncol(data) giving constraints to the sample space. The (i, j) element is 1 if the edge i -> j is required -1 if the edge i -> is excluded. 0 if the edge i -> j is not constrained. The diagonal of constraint must be all 0. |
maxNumberParents |
Integer of length 1. The maximum
number of parents of any node. A |
verbose |
A logical. Should a progress bar be displayed? |
A bnpost
object.
posterior
. Example priors
priorGraph
, priorUniform
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.