Learn R Programming

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

bnlearn (version 4.6.1)

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

25,548

Version

4.6.1

License

GPL (>= 2)

Maintainer

Last Published

September 21st, 2020

Functions in bnlearn (4.6.1)

alarm

ALARM monitoring system (synthetic) data set
bn.boot

Nonparametric bootstrap of Bayesian networks
bn.cv

Cross-validation for Bayesian networks
bn class

The bn class structure
bn.fit utilities

Utilities to manipulate fitted Bayesian networks
cpdag

Equivalence classes, moral graphs and consistent extensions
bn.fit plots

Plot fitted Bayesian networks
bnlearn-package

Bayesian network structure learning, parameter learning and inference
graph enumeration

Count graphs with specific characteristics
alpha.star

Estimate the optimal imaginary sample size for BDe(u)
coronary

Coronary heart disease data set
dsep

Test d-separation
bn.fit

Fit the parameters of a Bayesian network
constraint-based algorithms

Constraint-based structure learning algorithms
foreign files utilities

Read and write BIF, NET, DSC and DOT files
utilities for whitelists and blacklists

Get or create whitelists and blacklists
bn.fit class

The bn.fit class structure
bn.strength class

The bn.strength class structure
cpquery

Perform conditional probability queries
marks

Examination marks data set
ctsdag

Equivalence classes in the presence of interventions
bn.kcv class

The bn.kcv class structure
graphviz.plot

Advanced Bayesian network plots
configs

Construct configurations of discrete variables
independence-tests

Conditional independence tests
graph integration

Import and export networks from the graph package
misc utilities

Miscellaneous utilities
gRain integration

Import and export networks from the gRain package
arc.strength

Measure arc strength
arc operations

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

Plot arc strengths derived from bootstrap
clgaussian.test

Synthetic (mixed) data set to test learning algorithms
graphviz.chart

Plotting networks with probability bars
choose.direction

Try to infer the direction of an undirected arc
compare

Compare two or more different Bayesian networks
insurance

Insurance evaluation network (synthetic) data set
graph utilities

Utilities to manipulate graphs
score-based algorithms

Score-based structure learning algorithms
gaussian.test

Synthetic (continuous) data set to test learning algorithms
preprocess

Pre-process data to better learn Bayesian networks
ci.test

Independence and conditional independence tests
single-node local discovery

Discover the structure around a single node
plot.bn

Plot a Bayesian network
hailfinder

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

Import and export networks from the pcalg package
graph generation utilities

Generate empty or random graphs
ROCR integration

Generating a prediction object for ROCR
whitelists-blacklists

Whitelists and blacklists in structure learning
rbn

Simulate random samples from a given Bayesian network
model string utilities

Build a model string from a Bayesian network and vice versa
local discovery algorithms

Local discovery structure learning algorithms
strength.plot

Arc strength plot
hybrid algorithms

Hybrid structure learning algorithms
lizards

Lizards' perching behaviour data set
learning.test

Synthetic (discrete) data set to test learning algorithms
impute

Predict or impute missing data from a Bayesian network
igraph integration

Import and export networks from the igraph package
node operations

Manipulate nodes in a graph
structural.em

Structure learning from missing data
score

Score of the Bayesian network
network-scores

Network scores
naive.bayes

Naive Bayes classifiers
node ordering utilities

Partial node orderings
structure-learning

Structure learning algorithms
lm integration

Produce lm objects from Bayesian networks
test counter

Manipulating the test counter
asia

Asia (synthetic) data set by Lauritzen and Spiegelhalter
BF

Bayes factor between two network structures
network-classifiers

Bayesian network Classifiers