getSpace {BiDAG}R Documentation

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)

Arguments

x

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

Value

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

Examples

myscore<-scoreparameters("bge", Boston)
## Not run: 
itfit<-learnBN(myscore,algorithm="orderIter",scoreout=TRUE)
itspace<-getSpace(itfit)

## End(Not run)

[Package BiDAG version 2.1.4 Index]