degree.dbn {dbnR} | R Documentation |
Calculates the degree of a list of nodes
Description
Generic method for calculating the degree of a list of nodes in a
"dbn" S3 object. Calls bnlearn's degree
underneath.
The degree function is specifically coded to look for either the "bn"
or the "bn.fit" method inside bnlearn, so I have to cast the "dbn" class
into "bn" for it to work.
Usage
## S3 method for class 'dbn'
degree(object, Nodes, ...)
Arguments
object |
a "dbn" object |
Nodes |
which nodes to check |
... |
additional parameters |
Value
the degree of the nodes
[Package dbnR version 0.7.9 Index]