Learn R Programming

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

bnlearn (version 4.9.3)

Bayesian Network Structure Learning, Parameter Learning and Inference

Description

Bayesian network structure learning, parameter learning and inference. This package implements constraint-based (PC, GS, IAMB, Inter-IAMB, Fast-IAMB, MMPC, Hiton-PC, HPC), pairwise (ARACNE and Chow-Liu), score-based (Hill-Climbing and Tabu Search) and hybrid (MMHC, RSMAX2, H2PC) structure learning algorithms for discrete, Gaussian and conditional Gaussian networks, along with many score functions and conditional independence tests. The Naive Bayes and the Tree-Augmented Naive Bayes (TAN) classifiers are also implemented. Some utility functions (model comparison and manipulation, random data generation, arc orientation testing, simple and advanced plots) are included, as well as support for parameter estimation (maximum likelihood and Bayesian) and inference, conditional probability queries, cross-validation, bootstrap and model averaging. Development snapshots with the latest bugfixes are available from .

Copy Link

Version

Install

install.packages('bnlearn')

Monthly Downloads

24,158

Version

4.9.3

License

GPL (>= 2)

Maintainer

Marco Scutari

Last Published

March 15th, 2024

Functions in bnlearn (4.9.3)

bnlearn-package

Bayesian network structure learning, parameter learning and inference
ci.test

Independence and conditional independence tests
bn.kcv class

The bn.kcv class structure
bn.fit

Fit the parameters of a Bayesian network
bn.strength class

The bn.strength class structure
clgaussian.test

Synthetic (mixed) data set to test learning algorithms
bn.fit class

The bn.fit class structure
bn.fit utilities

Utilities to manipulate fitted Bayesian networks
bn.boot

Nonparametric bootstrap of Bayesian networks
bn.fit plots

Plot fitted Bayesian networks
configs

Construct configurations of discrete variables
constraint-based algorithms

Constraint-based structure learning algorithms
foreign files utilities

Read and write BIF, NET, DSC and DOT files
independence-tests

Conditional independence tests
cpdag

Equivalence classes, moral graphs and consistent extensions
compare

Compare two or more different Bayesian networks
graph enumeration

Count graphs with specific characteristics
dsep

Test d-separation
coronary

Coronary heart disease data set
cpquery

Perform conditional probability queries
graph utilities

Utilities to manipulate graphs
gaussian.test

Synthetic (continuous) data set to test learning algorithms
hybrid algorithms

Hybrid structure learning algorithms
score-based algorithms

Score-based structure learning algorithms
graph generation utilities

Generate empty, complete or random graphs
hailfinder

The HailFinder weather forecast system (synthetic) data set
gRain integration

Import and export networks from the gRain package
graph integration

Import and export networks from the graph package
model string utilities

Build a model string from a Bayesian network and vice versa
misc utilities

Miscellaneous utilities
KL

Compute the distance between two fitted Bayesian networks
marks

Examination marks data set
insurance

Insurance evaluation network (synthetic) data set
igraph integration

Import and export networks from the igraph package
graphviz.plot

Advanced Bayesian network plots
graphviz.chart

Plotting networks with probability bars
local discovery algorithms

Local discovery structure learning algorithms
learning.test

Synthetic (discrete) data set to test learning algorithms
lizards

Lizards' perching behaviour data set
single-node local discovery

Discover the structure around a single node
data preprocessing

Pre-process data to better learn Bayesian networks
node operations

Manipulate nodes in a graph
network-scores

Network scores
plot.bn

Plot a Bayesian network
multivariate normal distribution

Gaussian Bayesian networks and multivariate normals
pcalg integration

Import and export networks from the pcalg package
predict and impute

Predict or impute missing data from a Bayesian network
plot.bn.strength

Plot arc strengths derived from bootstrap
node ordering utilities

Partial node orderings
naive.bayes

Naive Bayes classifiers
structure-learning

Structure learning algorithms
whitelists-blacklists

Whitelists and blacklists in structure learning
ROCR integration

Generating a prediction object for ROCR
lm integration

Produce lm objects from Bayesian networks
score

Score of the Bayesian network
strength.plot

Arc strength plot
test counter

Manipulating the test counter
rbn

Simulate random samples from a given Bayesian network
structural.em

Structure learning from missing data
BF

Bayes factor between two network structures
utilities for whitelists and blacklists

Get or create whitelists and blacklists
alarm

ALARM monitoring system (synthetic) data set
alpha.star

Estimate the optimal imaginary sample size for BDe(u)
bn class

The bn class structure
bn.cv

Cross-validation for Bayesian networks
arc.strength

Measure arc strength
arc operations

Drop, add or set the direction of an arc or an edge
network-classifiers

Bayesian network Classifiers
asia

Asia (synthetic) data set by Lauritzen and Spiegelhalter