bf | R Documentation |
Compute the Bayes factor for two graph structures.
bf( num, den, bdgraph.obj, log = TRUE )
num , den |
adjacency matrix corresponding to the true graph structure in which |
bdgraph.obj |
object of |
log |
character value. If TRUE the Bayes factor is given as log(BF). |
single numeric value, the Bayes factor of the two graph structures num
and den
.
Reza Mohammadi a.mohammadi@uva.nl
Mohammadi, R. and Wit, E. C. (2019). BDgraph: An R
Package for Bayesian Structure Learning in Graphical Models, Journal of Statistical Software, 89(3):1-30, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v089.i03")}
bdgraph
, bdgraph.mpl
, compare
, bdgraph.sim
## Not run:
# Generating multivariate normal data from a 'circle' graph
data.sim <- bdgraph.sim( n = 50, p = 6, graph = "circle", vis = TRUE )
# Running sampling algorithm
bdgraph.obj <- bdgraph( data = data.sim )
graph_1 <- graph.sim( p = 6, vis = TRUE )
graph_2 <- graph.sim( p = 6, vis = TRUE )
bf( num = graph_1, den = graph_2, bdgraph.obj = bdgraph.obj )
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.