Learn R Programming

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

bnlearn (version 0.5)

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.5

License

GPL (>= 2)

Maintainer

Marco Scutari

Last Published

August 20th, 2025

Functions in bnlearn (0.5)

bnlearn-package

Bayesian network constraint-based structure learning.
arc operations

Drop, add or set the direction of an arc
score

Score of the Bayesian network
inter.iamb

Interleaved Incremental Association (Inter-IAMB) learning algorithm
fast.iamb

Fast Incremental Association (Fast-IAMB) learning algorithm
bn class

The bn class structure
choose.direction

Try to infer the direction of an undirected arc
plot.bn

Plot a Bayesian network
model string tools

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

Generate random data from a given Bayesian network
gs

Grow-Shrink (GS) learning algorithm
graph generation tools

Generate an empty graph
iamb

Incremental Association (IAMB) learning algorithm
network tools

Utilities to manipulate graphs
compare

Compare two different Bayesian networks
learning.test

Synthetic dataset to test learning algorithms