Other packages > Find by keyword >

bnlearn  

Bayesian Network Structure Learning, Parameter Learning and Inference
View on CRAN: Click here


Download and install bnlearn package within the R console
Install from CRAN:
install.packages("bnlearn")

Install from Github:
library("remotes")
install_github("cran/bnlearn")

Install by package version:
library("remotes")
install_version("bnlearn", "5.1")



Attach the package and use:
library("bnlearn")
Maintained by
Marco Scutari
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2007-09-21
Latest Update: 2025-01-07
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 .
How to cite:
Marco Scutari (2007). bnlearn: Bayesian Network Structure Learning, Parameter Learning and Inference. R package version 5.1, https://cran.r-project.org/web/packages/bnlearn. Accessed 06 Aug. 2026.
Previous versions and publish date:
(2026-07-17 18:10), 0.3 (2007-09-21 17:18), 0.4 (2007-11-11 11:54), 0.5 (2007-12-08 15:43), 0.6 (2008-02-09 21:00), 0.7 (2008-03-26 11:26), 0.8 (2008-06-20 12:52), 0.9 (2008-09-08 09:42), 1.0 (2008-11-02 19:56), 1.1 (2009-01-14 19:12), 1.2 (2009-02-05 10:15), 1.3 (2009-03-29 16:54), 1.4.1 (2009-06-14 21:07), 1.4 (2009-05-05 20:08), 1.5 (2009-07-21 20:47), 1.6 (2009-08-24 13:00), 1.7 (2009-10-26 20:26), 1.8 (2010-01-07 16:41), 1.9 (2010-02-14 20:26), 2.0 (2010-05-11 20:43), 2.1.1 (2010-07-10 12:13), 2.1 (2010-06-14 08:55), 2.2 (2010-08-18 16:35), 2.3 (2010-11-19 14:26), 2.4 (2011-02-27 19:39), 2.5 (2011-06-02 07:34), 2.6 (2011-08-28 07:37), 2.7 (2011-10-08 08:43), 2.8 (2011-12-05 20:12), 2.9 (2012-03-05 20:05), 3.0 (2012-07-05 14:57), 3.1 (2012-09-27 12:03), 3.2 (2012-11-18 13:45), 3.3 (2013-03-05 07:01), 3.4 (2013-07-26 22:47), 3.5 (2014-01-23 10:43), 3.6 (2014-06-17 21:16), 3.7.1 (2015-01-23 09:57), 3.7 (2015-01-14 01:52), 3.8.1 (2015-05-17 12:45), 3.8 (2015-05-03 07:07), 3.9 (2015-11-27 14:59), 4.0 (2016-05-16 14:47), 4.1.1 (2017-03-26 09:40), 4.1 (2017-02-09 18:20), 4.2 (2017-07-03 15:35), 4.3 (2018-01-15 15:47), 4.4.1 (2019-03-05 23:00), 4.4 (2018-10-16 15:20), 4.5 (2019-08-05 06:20), 4.6.1 (2020-09-21 06:10), 4.6 (2020-09-15 10:50), 4.7.1 (2022-03-31 10:30), 4.7 (2021-09-06 19:30), 4.8.1 (2022-09-22 00:50), 4.8.3 (2023-04-29 12:30), 4.8 (2022-09-19 10:56), 4.9.1 (2023-12-05 16:40), 4.9.2 (2024-03-12 13:40), 4.9.3 (2024-03-15 14:00), 4.9.4 (2024-05-03 00:30), 4.9 (2023-09-07 09:20), 5.0.1 (2024-08-19 19:40), 5.0.2 (2025-01-07 15:40), 5.0 (2024-07-30 19:30), 5.1 (2025-08-20 14:50), 5.2 (2026-07-13 12:20)
Other packages that cited bnlearn R package
View bnlearn citation profile
Other R packages that bnlearn depends, imports, suggests or enhances
Complete documentation for bnlearn
Functions, R codes and Examples using the bnlearn R package
Some associated functions: alarm . alpha.star . arc.strength . arcops . asia . bayesian.network.classifiers . bf . blacklist . bn.class . bn.cv . bn.fit.class . bn.fit.methods . bn.fit . bn.fit.plots . bn.kcv.class . bn.strength-class . bnboot . bnlearn-package . ci.test . clgaussian-test . compare . conditional.independence.tests . configs . constraint . coronary . count.graphs . cpdag . cpquery . dsep . foreign . gRain . gaussian-test . graph . graphgen . graphpkg . graphviz.chart . graphviz.plot . hailfinder . hc . hybrid . igraphpkg . impute . insurance . kl . learn . learning-test . lizards . marks . mb . mi.matrix . modelstring . mvnorm . naive.bayes . network.scores . nodeops . ordering . pcalg . plot.bn . plot.bn.strength . predict.and.impute . preprocessing . rbn . rocrpkg . score . statspkg . strength.plot . structural.em . structure.learning . test.counter . whitelists.and.blacklists . 
Some associated R codes: aracne.R . arc.operations.R . arc.strength.R . averaged.fitted.R . averaged.network.R . backend-indep.R . backend-s4.R . backend-score.R . bootstrap.R . chow.liu.R . ci.test.R . classifiers.R . cpdag.R . cpq.R . custom.fit.R . cv.R . data.preprocessing.R . enumeration.R . fast-iamb.R . fit.R . fitted.assignment.R . foreign-read.R . foreign-write.R . formula.R . frontend-amat.R . frontend-arcs.R . frontend-averaging.R . frontend-bn.R . frontend-bootstrap.R . frontend-data.R . frontend-fit.R . frontend-foreign.R . frontend-formula.R . frontend-graph.R . frontend-lattice.R . frontend-learning.R . frontend-missingdata.R . frontend-mvnorm.R . frontend-nodes.R . frontend-packages.R . frontend-plot.R . frontend-predict.R . frontend-print.R . frontend-queries.R . frontend-score.R . frontend-simulation.R . frontend-strength.R . gRain.R . globals.R . graph-generation.R . graphviz-backend.R . graphviz-chart.R . graphviz-compare.R . grow-shrink.R . hill-climbing.R . hiton-pc.R . hybrid-pc.R . iamb-fdr.R . impute.R . incremental-association.R . init.R . inter-iamb.R . kullback.leibler.R . lattice.R . learning-algorithms.R . likelihood.R . loss.R . maxmin-pc.R . most.probable.explanation.R . mvnorm.R . nparams.R . pcalgo.R . predict.R . refit.lm.R . sanitization-amat.R . sanitization-arclists.R . sanitization-bootstrap.R . sanitization-classifiers.R . sanitization-cv.R . sanitization-data.R . sanitization-discretization.R . sanitization-enumeration.R . sanitization-fitted-assignment.R . sanitization-fitted.R . sanitization-fitting.R . sanitization-formula.R . sanitization-graph.R . sanitization-graphgen.R . sanitization-learning.R . sanitization-loss.R . sanitization-misc.R . sanitization-models.R . sanitization-mutual.R . sanitization-plot.R . sanitization-predict.R . sanitization-queries.R . sanitization-scores.R . sanitization-strength.R . sanitization-tests.R . sanitization-types.R . sanitization-vsdata.R . scores.R . simulation.R . tabu.R . test.R . utils-amat.R . utils-arcs.R . utils-cluster.R . utils-elist.R . utils-graph.R . utils-misc.R . utils-plot.R . utils-print.R . utils-strength.R . utils-tests.R .  Full bnlearn package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

TMDb  
Access to TMDb API
Provides an R-interface to the TMDb API (see TMDb API on < ...
Download / Learn more Package Citations See dependency  
lsmeans  
Least-Squares Means
Obtain least-squares means for linear, generalized linear, and mixed models. Compute contrasts or l ...
Download / Learn more Package Citations See dependency  
r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  
SAMBA  
Selection and Misclassification Bias Adjustment for Logistic Regression Models
Health research using data from electronic health records (EHR) has gained popularity, but miscla ...
Download / Learn more Package Citations See dependency  
RRedshiftSQL  
R Interface to the 'Redshift' Database
Superclasses 'PostgreSQL' connection to help enable full 'dplyr' functionality on 'Redshift'. ...
Download / Learn more Package Citations See dependency  

28,083

R Packages

239,283

Dependencies

74,457

Author Associations

28,084

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA