BiDAG2.1.4 package

Bayesian Inference for Directed Acyclic Graphs

bidag2coda

Converting a single BiDAG chain to mcmc object

bidag2codalist

Converting multiple BiDAG chains to mcmc.list

compact2full

Deriving an adjecency matrix of a full DBN

compareDAGs

Comparing two graphs

compareDBNs

Comparing two DBNs

connectedSubGraph

Deriving connected subgraph

DAGscore

Calculating the BGe/BDe score of a single DAG

DBNscore

Calculating the BGe/BDe score of a single DBN

edgep

Estimating posterior probabilities of single edges

full2compact

Deriving a compact adjacency matrix of a DBN

getDAG

Extracting adjacency matrix (DAG) from MCMC object

getMCMCscore

Extracting score from MCMC object

getRuntime

Extracting runtime

getSpace

Extracting scorespace from MCMC object

getSubGraph

Deriving subgraph

getTrace

Extracting trace from MCMC object

graph2m

Deriving an adjacency matrix of a graph

iterativeMCMC

Structure learning with an iterative order MCMC algorithm on an expand...

iterativeMCMCclass

iterativeMCMC class structure

itercomp

Performance assessment of iterative MCMC scheme against a known Bayesi...

learnBN

Bayesian network structure learning

m2graph

Deriving a graph from an adjacancy matrix

modelp

Estimating a graph corresponding to a posterior probability threshold

orderMCMC

Structure learning with the order MCMC algorithm

orderMCMCclass

orderMCMC class structure

partitionMCMC

DAG structure sampling with partition MCMC

partitionMCMCclass

partitionMCMC class structure

plot2in1

Highlighting similarities between two graphs

plotDBN

Plotting a DBN

plotdiffs

Plotting difference between two graphs

plotdiffsDBN

Plotting difference between two DBNs

plotpcor

Comparing posterior probabilitites of single edges

plotpedges

Plotting posterior probabilities of single edges

sampleBN

Bayesian network structure sampling from the posterior distribution

samplecomp

Performance assessment of sampling algorithms against a known Bayesian...

scoreagainstDAG

Calculating the score of a sample against a DAG

scoreagainstDBN

Score against DBN

scoreparameters

Initializing score object

scorespace

Prints 'scorespace' object

scorespaceclass

scorespace class structure

string2mat

Deriving interactions matrix

Implementation of a collection of MCMC methods for Bayesian structure learning of directed acyclic graphs (DAGs), both from continuous and discrete data. For efficient inference on larger DAGs, the space of DAGs is pruned according to the data. To filter the search space, the algorithm employs a hybrid approach, combining constraint-based learning with search and score. A reduced search space is initially defined on the basis of a skeleton obtained by means of the PC-algorithm, and then iteratively improved with search and score. Search and score is then performed following two approaches: Order MCMC, or Partition MCMC. The BGe score is implemented for continuous data and the BDe score is implemented for binary data or categorical data. The algorithms may provide the maximum a posteriori (MAP) graph or a sample (a collection of DAGs) from the posterior distribution given the data. All algorithms are also applicable for structure learning and sampling for dynamic Bayesian networks. References: J. Kuipers, P. Suter, G. Moffa (2022) <doi:10.1080/10618600.2021.2020127>, N. Friedman and D. Koller (2003) <doi:10.1023/A:1020249912095>, J. Kuipers and G. Moffa (2017) <doi:10.1080/01621459.2015.1133426>, M. Kalisch et al. (2012) <doi:10.18637/jss.v047.i11>, D. Geiger and D. Heckerman (2002) <doi:10.1214/aos/1035844981>, P. Suter, J. Kuipers, G. Moffa, N.Beerenwinkel (2023) <doi:10.18637/jss.v105.i09>.

  • Maintainer: Polina Suter
  • License: GPL (>= 2)
  • Last published: 2023-05-16