| wpdag.from.dag | R Documentation |
Given a BN object with a dag, return a network
with its wpdag set as the CPDAG computed starting from the dag.
wpdag.from.dag(x, layering = NULL, layer.struct = NULL)
## S4 method for signature 'BN'
wpdag.from.dag(x, layering = NULL, layer.struct = NULL)
x |
a |
layering |
vector containing the layers each node belongs to. |
layer.struct |
|
a BN object with an initialized wpdag.
dag.to.cpdag
## Not run:
net <- learn.network(dataset, layering=layering, layer.struct=layer.struct)
wp.net <- wpdag.from.dag(net, layering, layer.struct=layer.struct)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.