wpdag.from.dag {bnstruct} | R Documentation |
Initialize a WPDAG from a DAG.
Description
Given a BN
object with a dag
, return a network
with its wpdag
set as the CPDAG computed starting from the dag
.
Usage
wpdag.from.dag(x, layering = NULL, layer.struct = NULL)
## S4 method for signature 'BN'
wpdag.from.dag(x, layering = NULL, layer.struct = NULL)
Arguments
x |
a |
layering |
vector containing the layers each node belongs to. |
layer.struct |
|
Value
a BN
object with an initialized wpdag
.
See Also
Examples
## 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)
[Package bnstruct version 1.0.15 Index]