Description Usage Arguments Value See Also
The sampler samples Bayesian Networks (ie models).
1 2 3 4 5 | BNSamplerMJ(data, initial, prior, return = "network",
logScoreFUN = logScoreMultDirFUN(),
logScoreParameters = list(hyperparameters = "bdeu"),
constraint = NULL, modejumping = F, verbose = F,
keepTape = F)
|
data |
The data. |
initial |
An object of class 'bn'. The starting value of the MCMC. |
prior |
A function that returns the prior score of the supplied bn. |
return |
Either "network" or "contingency". |
logScoreFUN |
A list of four elements:
For
Multinomial-Dirichlet models,
|
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:
The diagonal of constraint must be all 0. |
modejumping |
Either a logical of length 1, or a list. When no mode-jumping is desired, use modejumping = F. For mode-jumping, use a list with the following components:
|
verbose |
A logical of length 1, indicating whether verbose output should be printed. |
keepTape |
A logical of length 1, indicating whether
a full log ( |
A function, which when called draws the next sample of the MCMC.
BNSampler, BNGibbsSampler,
BNSamplerPT, BNSamplerGrzeg,
BNSamplerBigFlips. Internally uses
whichGraphsNotNeighbours
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.