Learn R Programming

BiDAG (version 2.1.4)

getMCMCscore: Extracting score from MCMC object

Description

This function extracts the score of a maximum DAG sampled in the MCMC run.

Usage

getMCMCscore(x)

Value

a score of a maximum-scoring DAG found/sampled in one MCMC run

Arguments

x

object of class 'orderMCMC','partitionMCMC' or 'iterativeMCMC'

Examples

Run this code
myscore<-scoreparameters("bge", Boston)
if (FALSE) {
itfit<-learnBN(myscore,algorithm="orderIter")
getMCMCscore(itfit)
}

Run the code above in your browser using DataLab