Description Usage Arguments Details Value See Also
View source: R/mcmc-bigflips.R
Create a MCMC sampler for Bayesian Networks. The sampler samples Bayesian Networks (ie models).
1 2 3 4 | BNSamplerBigFlips(data, initial, prior,
return = "network", logScoreFUN = logScoreMultDirFUN(),
logScoreParameters = list(hyperparameters = "bdeu"),
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 |
... |
verbose |
A logical of length 1, indicating whether verbose output should be printed. |
keepTape |
A logical of length 1, indicating whether a full log ('tape') of the MCMC sampler should be kept. Enabling this option can be very memory-intensive. |
.....
A function, which when called draws the next sample of the MCMC.
BNSampler, BNSamplerPT,
BNSamplerMJ, BNSamplerGrzeg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.