Learn R Programming

dbnR (version 0.7.8)

degree.dbn: 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 dbn
degree(object, Nodes, ...)

Value

the degree of the nodes

Arguments

object

a "dbn" object

Nodes

which nodes to check

...

additional parameters