Learn R Programming

⚠️There's a newer version (2.1.4) of this package.Take me there.

BiDAG (version 2.0.0)

Bayesian Inference for Directed Acyclic Graphs

Description

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 and G. Moffa (2018) , N. Friedman and D. Koller (2003) , D. Geiger and D. Heckerman (2002) , J. Kuipers and G. Moffa (2017) , M. Kalisch et al.(2012) .

Copy Link

Version

Install

install.packages('BiDAG')

Monthly Downloads

453

Version

2.0.0

License

GPL (>= 2)

Maintainer

Polina Suter

Last Published

February 15th, 2021

Functions in BiDAG (2.0.0)

Asia

Asia dataset
DBNscore

Calculating the BGe/BDe score of a single DBN
MCMCres

MCMCres class structure
DBNmat

An adjacency matrix of a dynamic Bayesian network
DBNunrolled

An unrolled adjacency matrix of a dynamic Bayesian network
Boston

Boston housing data
MCMCmult

MCMCmult class structure
compareDAGs

Comparing two DAGs
Asiamat

Asiamat
DBNdata

Simulated data set from a 2-step dynamic Bayesian network A synthetic dataset containing 100 observations generated from a random dynamic Bayesian network with 12 continuous dynamic nodes and 3 static discrete nodes. The DBN imcludes observations from 5 time slices.
compareDBNs

Comparing two DBNs
graph2m

Deriving an adjacency matrix of a graph
gsim

A simulated data set from a Gaussian continuous Bayesian network
iterations.check

Performance assessment of iterative MCMC scheme against a known Bayesian network
intSTRING

intSTRING dataset
mapSTRING

mapSTRING dataset
compact2full

Deriving an adjecency matrix of a full DBN
DAGscore

Calculating the BGe/BDe score of a single DAG
modelp

Estimating a graph corresponding to a posterior probability threshold
plot.MCMCres

S3 methods for class 'MCMCres'
plot.MCMCmult

S3 methods for class 'MCMCmult'
full2compact

Deriving a compact adjacency matrix of a DBN
MCMCscoretab

MCMCscoretab class structure
plotpedges

Plotting posterior probabilities of single edges
plotdiffs.DBN

Plotting difference between two DBNs
summary.MCMCmult

S3 methods for class 'MCMCmult'
m2graph

Deriving a graph from an adjacancy matrix
string2mat

Deriving interactions matrix
plotDBN

Plotting a DBN
kirp

KIRP dataset
print.MCMCmult

S3 methods for class 'MCMCmult'
summary.scoreparameters

S3 methods for class 'scoreparameters'
iterativeMCMC

Structure learning with an iterative order MCMC algorithm on an expanded search space
getSubGraph

Deriving subgraph
connectedSubGraph

Deriving connected subgraph
plotdiffs

Plotting difference between two graphs
kich

KICH dataset
plotpcor

Comparing posterior probabilitites of single edges based on several samples
print.MCMCres

S3 methods for class 'MCMCres'
print.MCMCscoretab

S3 methods for class 'MCMCscoretab'
gsim100

A simulated data set from a Gaussian continuous Bayesian network
sample.check

Performance assessment of sampling algorithms against a known Bayesian network
gsimmat

An adjacency matrix of a simulated dataset
print.scoreparameters

S3 methods for class 'scoreparameters'
edgep

Estimating posterior probabilities of single edges
kirc

KIRC dataset
kipan

KIPAN dataset
partitionMCMC

DAG structure sampling with partition MCMC
orderMCMC

Structure learning with the order MCMC algorithm
summary.MCMCres

S3 methods for class 'MCMCres'
summary.MCMCscoretab

S3 methods for class 'MCMCscoretab'
scoreparameters

Initialising score object
scoreagainstDAG

Calculating the score of a sample against a DAG