Learn R Programming

BiDAG (version 2.1.4)

getSpace: Extracting scorespace from MCMC object

Description

This function extracts an object of class 'scorespace' from the result of the MCMC run when the parameter 'scoreout' was set to TRUE; otherwise extracts only adjacency matrix of the final search space without the score tables.

Usage

getSpace(x)

Value

an object of class 'scorespace' or an adjacency binary matrix corresponding to a search space last used in MCMC

Arguments

x

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

Examples

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

Run the code above in your browser using DataLab