getSpace | R Documentation |
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.
getSpace(x)
x |
object of class 'orderMCMC','partitionMCMC' or 'iterativeMCMC' |
an object of class 'scorespace' or an adjacency binary matrix corresponding to a search space last used in MCMC
myscore<-scoreparameters("bge", Boston)
## Not run:
itfit<-learnBN(myscore,algorithm="orderIter",scoreout=TRUE)
itspace<-getSpace(itfit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.