Adjacency matrix of a Bayesian network | R Documentation |
Adjacency matrix of a Bayesian network.
bnmat(dag)
dag |
A BN object, an object of class "bn". |
The function is called from the "bnlearn" package which invokes the "Rgraphviz" package from Bioconductor and you need to install it first.
Adjacency matrix of a Bayesian network is extracted.
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
pchc, mmhc, fedhc
x <- matrix( rnorm(200 * 10, 1, 10), nrow = 200 )
a <- pchc::pchc(x)
pchc::bnmat(a$dag)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.