Learn R Programming

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

bnlearn (version 1.1)

Bayesian network structure learning

Description

Bayesian network structure learning via constraint-based (also known as 'conditional independence') and score-based algorithms. This package implements the Grow-Shrink (GS) algorithm, the Incremental Association (IAMB) algorithm, the Interleaved-IAMB (Inter-IAMB) algorithm, the Fast-IAMB (Fast-IAMB) algorithm, the Max-Min Parents and Children (MMPC) algorithm and the Hill-Climbing (HC) greedy search algorithm for both discrete and Gaussian networks, along with many score functions and conditional independence tests. Some utility functions (model comparison and manipulation, random data generation, arc orientation testing) are also included.

Copy Link

Version

Install

install.packages('bnlearn')

Monthly Downloads

24,198

Version

1.1

License

GPL (>= 2)

Maintainer

Marco Scutari

Last Published

January 7th, 2025

Functions in bnlearn (1.1)

hc

Hill-Climbing (HC) learning algorithm
graphviz.plot

Advanced Bayesian network plots
ci.test

Independence and Conditional Independence Tests
gaussian.test

Synthetic (continuous) dataset to test learning algorithms
mmpc

Max-Min Parents and Children (MMPC) learning algorithm
network tools

Utilities to manipulate graphs
graph generation tools

Generate an empty or random graph
bnlearn-package

Bayesian network structure learning.
iamb

Incremental Association (IAMB) learning algorithm
deal integration

bnlearn - deal package integration
asia

Asia (synthetic) data set by Lauritzen and Spiegelhalter
fast.iamb

Fast Incremental Association (Fast-IAMB) learning algorithm
rbn

Generate random data from a given Bayesian network
node ordering tools

Partial node ordering utilities
arc.strength

Measure the strength of the arcs
choose.direction

Try to infer the direction of an undirected arc
compare

Compare two different Bayesian networks
plot.bn

Plot a Bayesian network
learning.test

Synthetic (discrete) data set to test learning algorithms
inter.iamb

Interleaved Incremental Association (Inter-IAMB) learning algorithm
bn class

The bn class structure
model string tools

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

Grow-Shrink (GS) learning algorithm
snow integration

bnlearn - snow package integration
score

Score of the Bayesian network
arc operations

Drop, add or set the direction of an arc