getSpace: Extracting scorespace from MCMC object

View source: R/extractors.R

getSpaceR 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)

BiDAG documentation built on May 31, 2023, 6:46 p.m.

Related to getSpace in BiDAG...