Description Usage Arguments Value See Also Examples
Convert the adjacency matrix representing the DAG of a BN
into the adjacency matrix representing a CPDAG for the network.
1 | dag.to.cpdag(dag.adj.matrix, layering = NULL, layer.struct = NULL)
|
dag.adj.matrix |
the adjacency matrix representing the DAG of a |
layering |
vector containing the layers where each node belongs. |
layer.struct |
layer.struct |
the adjacency matrix representing a CPDAG for the network.
1 2 3 4 5 6 | ## Not run:
net <- learn.network(dataset, layering=layering, layer.struct=layer.struct)
pdag <- dag.to.cpdag(dag(net), layering, layer.struct)
wpdag(net) <- pdag
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.