degree.dbn: Calculates the degree of a list of nodes

View source: R/bnlearn_compat.R

degree.dbnR 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


dbnR documentation built on Oct. 5, 2022, 1:07 a.m.