Learn R Programming

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

bnlearn (version 0.4)

Bayesian network structure learning

Description

Bayesian network structure learning via constraint-based (also known as 'conditional independence') algorithms. This package implements the Grow-Shrink (GS) algorithm, the Incremental Association (IAMB) algorithm, the Interleaved-IAMB (Inter-IAMB) algorithm and the Fast-IAMB (Fast-IAMB) algorithm for both discrete and gaussian networks. Simulation and some score functions are implemented for discrete networks.

Copy Link

Version

Install

install.packages('bnlearn')

Monthly Downloads

24,158

Version

0.4

License

GPL (>= 2)

Maintainer

Marco Scutari

Last Published

August 20th, 2025

Functions in bnlearn (0.4)

inter.iamb

Interleaved Incremental Association (Inter-IAMB) learning algorithm
gs

Grow-Shrink (GS) learning algorithm
fast.iamb

Fast Incremental Association (Fast-IAMB) learning algorithm
compare

Compare two different Bayesian networks
network tools

Utilities to manipulate graphs
learning.test

Synthetic dataset to test learning algorithms
choose.direction

Try to infer the direction of an undirected arc
rbn

Generate random data from a given Bayesian network
score

Score of the Bayesian network
set.arc

Drop, add or set the direction of an arc
plot.bn

Plot a Bayesian network
bnlearn-package

Bayesian network constraint-based structure learning.
model string tools

Build a model string from a Bayesian network and vice versa
iamb

Incremental Association (IAMB) learning algorithm