Learn R Programming

dbnR (version 0.7.8)

score.dbn: Computes the score of a BN or a DBN

Description

Generic method for computing the score of a "dbn" S3 object. Calls bnlearn's score underneath. The nodes 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
score(object, ...)

Value

the score of the network

Arguments

object

a "dbn" object

...

additional parameters