DBNscore {BiDAG} | R Documentation |
This function calculates the score of a DBN defined by its compact adjacency matrix. Acceptable data matrices are homogeneous with all variables of the same type: continuous, binary or categorical. The BGe score is evaluated in the case of continuous data and the BDe score is evaluated for binary and categorical variables.
DBNscore(scorepar, incidence)
scorepar |
an object of class |
incidence |
a square matrix, representing initial and transitional structure of a DBN; the size of matrix is 2*nsmall+bgn, where nsmall is the number of variables per time slice excluding static nodes and bgn is the number of static variables
the matrix entries are in |
the log of the BGe or BDe score of the DBN
Polina Suter, Jack Kuipers
testscore<-scoreparameters("bge", DBNdata, DBN=TRUE, dbnpar=list(slices=5, b=3)) DBNscore(testscore, DBNmat)