View source: R/dag_to_partition.R
DAGtoPartition | R Documentation |
This converts a DAG to it's partition by iteratively constructing sets of outpoints. This is further explained in section 4.1 of Kuipers & Moffa (2017).
DAGtoPartition(dag)
dag |
A directed acyclic graph represented as an adjacency matrix, igraph, or bnlearn object. |
Labelled partition for the given adjacency matrix.
Kuipers, J., & Moffa, G. (2017). Partition MCMC for inference on acyclic digraphs. Journal of the American Statistical Association, 112(517), 282-299.
dag <- UniformlySampleDAG(LETTERS[1:3])
partitioned_nodes <- DAGtoPartition(dag)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.