grain_compile | R Documentation |
Compiles a Bayesian network. This means creating a junction tree and establishing clique potentials.
## S3 method for class 'grain'
compile(
object,
propagate = FALSE,
tug = NULL,
root = NULL,
control = object$control,
details = 0,
...
)
object |
A grain object. |
propagate |
If TRUE the network is also propagated meaning that the cliques of the junction tree are calibrated to each other. |
tug |
A triangulated undirected graph. |
root |
A set of variables which must be in the root of the junction tree |
control |
Controlling the compilation process. |
details |
For debugging info. Do not use. |
... |
Currently not used. |
A compiled Bayesian network; an object of class
grain
.
Søren Højsgaard, sorenh@math.aau.dk
Søren Højsgaard (2012). Graphical Independence Networks with the gRain Package for R. Journal of Statistical Software, 46(10), 1-26. https://www.jstatsoft.org/v46/i10/.
grain
, propagate
,
propagate.grain
,
triangulate
, rip
,
junctionTree
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.