Description Usage Arguments Value Examples
Covert matrix with edge probabilities to bn.strength
object.
1 | matrix2strength(A, nodes)
|
A |
Matrix with edge probability (occurence) |
nodes |
Names of nodes (ordering correspond to A's rows and columns) |
bn.strength
object
1 2 3 4 5 6 | rg <- tabu(gaussian.test)
nw <- import.bnlearn(rg)
all.edges <- function(nw) nw$adjmat
A <- mcmc(nw, gaussian.test, all.edges, verbose=FALSE, trace=FALSE)
strength.plot(export.bnlearn(nw), matrix2strength(A, nw$nodes))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.