Modelling Multivariate Data with Additive Bayesian Networks
Overview
The 'abn' R package facilitates Bayesian network analysis, a probabilistic graphical model that derives from empirical data a directed acyclic graph (DAG). This DAG describes the dependency structure between random variables. The R package 'abn' provides routines to help determine optimal Bayesian network models for a given data set. These models are used to identify statistical dependencies in messy, complex data. Their additive formulation is equivalent to multivariate generalised linear modelling, including mixed models with independent and identically distributed (iid) random effects. The core functionality of the 'abn' package revolves around model selection, also known as structure discovery. It supports both exact and heuristic structure learning algorithms and does not restrict the data distribution of parent-child combinations, providing flexibility in model creation and analysis. The 'abn' package uses Laplace approximations for metric estimation and includes wrappers to the 'INLA' package. It also employs 'JAGS' for data simulation purposes. For more resources and information, visit the 'abn' website.
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-23
Show 9 earlier changesHide 9 earlier changes
- ERROR10 OK, 3 ERROR2026-07-08
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-01
- ERROR12 OK, 1 ERROR2026-04-30
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-04-22
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 115 (65 internal)includes a package overview page
- Examples that run
- 82%32 run in a plain check · 7 never run
- Exported functions with examples
- 53%
- Documented parameters
- 82%
- Return-value docs
- 98%
- Help pages citing references
- 15%
Downloads
Repository
- PRs merged (all time)
- 86%
- Median days to close, 50 most recently updated closed issues
- 2
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
15 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/furrer-lab/abn on 2026-10-21.
The R CMD check workflow runs on Linux
GitHub Pages site last deployed 2024-03-18 · The repository has a site deploy workflow
Show all practicesHide 3 practices
Dependencies
Installing abn adds 67 packages (38 with compiled code, 68 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB. 2 more not on CRAN are not measured.
Code & Tests
Datasets
People & History
Previously maintained by Reinhard Furrer (2.6-0 to 2.7-3) and Gilles Kratzer (1.0.2 to 2.5-0).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 3.1.13Latest
- 3.1.122025-11-25 · diff ↗ ·
removed 6 exports
factorial, factorial_fast, irls_binomial_cpp, irls_binomial_cpp_br, irls_gaussian_cpp, irls_poisson_cppadded 1 export
export_abnFit - 3.1.92025-06-26 · diff ↗
- unarchivedReturned to CRAN2025-06-24
- 3.1.82025-06-24 · diff ↗
- archivedRemoved from CRAN2025-06-09issues were not corrected in time , Does not use suggested package INLA conditionally
- 3.1.72025-06-06 · diff ↗
- RR 4.5.0 released · 2025-04-11
- unarchivedReturned to CRAN2024-05-30
- 3.1.12024-05-30 · diff ↗
- RR 4.4.0 released · 2024-04-24
- archivedRemoved from CRAN2024-03-28resubmitted with the same error as when archived, plus new ones Runs indefinitely when INLA is installed, fails on some platforms when it it not
- unarchivedReturned to CRAN2024-03-22
- 3.0.6
- archivedRemoved from CRAN2023-12-21issues were not corrected even on re-submission
Show 56 earlier eventsHide 56 earlier events
- 3.0.42023-11-30 · diff ↗
- 3.0.32023-11-03 · diff ↗
- 3.0.22023-10-26 · diff ↗
- 3.0.12023-10-09 · diff ↗
- 3.0.02023-09-06 · diff ↗ ·
removed 7 exports
fitabn, buildscorecache, mostprobable, searchHillclimber, plotabn, compareEG, abn.Versionadded 31 exports
bern_bugs, categorical_bugs, eval.across.grid, expit_cpp, factorial, factorial_fast, find.next.left.x, formula_abn, gauss_bugs, get.quantiles, getMargsINLA, getModeVector, irls_binomial_cpp, irls_binomial_cpp_br, irls_binomial_cpp_fast, irls_binomial_cpp_fast_br, irls_gaussian_cpp, irls_gaussian_cpp_fast, irls_poisson_cpp, irls_poisson_cpp_fast, logit_cpp, makebugs, makebugsGroup, mi_cpp, pois_bugs, rank_cpp, skewness, std.area.under.grid, strsplits, tidy.cache and 1 more - RR 4.3.0 released · 2023-04-21
- unarchivedReturned to CRAN2022-04-25
- RR 4.2.0 released · 2022-04-22
- archivedRemoved from CRAN2022-04-21check issues were not corrected in time
- unarchivedReturned to CRAN2022-01-07
- archivedRemoved from CRAN2021-11-05check problems were not corrected in time
- RR 4.1.0 released · 2021-05-18
- unarchivedReturned to CRAN2021-04-23
- archivedRemoved from CRAN2020-11-06check problems were not corrected in time
- unarchivedReturned to CRAN2020-10-22
- archivedRemoved from CRAN2020-07-21check problems were not corrected in time Mismatched reference output, including timings
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- RR 3.0.0 released · 2013-04-03
- 2.15.32012-11-02 · diff ↗ ·
removed 6 exports
check.data, check.dag, calc.node.mlik.inla, calc.node.mlik.inla.mixed, fitabn.inla, buildscorecache.inla - 2.15.22012-10-26 · diff ↗
- 2.15.12012-04-18 · diff ↗ ·
removed 1 export
prunenetsadded 5 exports
arcfreq, allnodesbn, allnodesabn, getposteriorfeaturesbn, findmostprobablebn - RR 2.15.0 released · 2012-03-30
- 2.14.1
- RR 2.14.0 released · 2011-10-31
- 2.13.22011-07-26 · diff ↗
- 2.7-52023-05-22 · diff ↗
- 2.7-32023-01-25 · diff ↗
- 2.7-12022-04-25 · diff ↗
- 2.7-02022-04-07 · diff ↗ ·
added 5 exports
compareEG, fit.control, build.control, abn.version, abn.Version - 2.6-02022-01-07 · diff ↗
- 2.5-02021-04-23 · diff ↗ ·
removed 3 exports
tographviz, search.hillclimber, create_abnDagadded 7 exports
toGraphviz, fitAbn, buildScoreCache, mostProbable, searchHillClimber, plotAbn, createAbnDag - 2.3-02020-10-22 · diff ↗
- 2.2.22020-07-02 · diff ↗
- 2.2.12020-06-15 · diff ↗
- 2.22019-11-23 · diff ↗
- 2.12019-07-04 · diff ↗
- 2.02019-07-01 · diff ↗ ·
removed 5 exports
buildscorecache.mle, fitabn.mle, simulateabn, link.strength, search.heuristicadded 6 exports
searchHillclimber, simulateAbn, linkStrength, searchHeuristic, scoreContribution, create_abnDag - 1.32018-11-22 · diff ↗
- 1.22018-08-10 · diff ↗ ·
added 18 exports
buildscorecache.mle, fitabn.mle, plotabn, simulateabn, logit, expit, odds, or, mb, link.strength, discretization, essentialGraph, compareDag, infoDag, simulateDag, search.heuristic, entropyData, miData - 1.0.22016-11-09 · diff ↗
- 1.02016-01-18 · diff ↗
- 0.862015-12-28 · diff ↗
- 0.852014-12-22 · diff ↗
- 0.832013-03-07 · diff ↗
- 0.822013-01-04 · diff ↗
- 0.82012-10-26 · diff ↗ ·
removed 15 exports
hillsearchbn, searchbn, fitbn, makeintofactors, makeintobinarymatrix, trim, arcfreq, uniquenets, hillsearchabn, searchabn, getmarginal, allnodesbn, allnodesabn, getposteriorfeaturesbn, findmostprobablebnadded 9 exports
check.data, check.dag, calc.node.mlik.inla, calc.node.mlik.inla.mixed, fitabn.inla, buildscorecache, buildscorecache.inla, mostprobable, search.hillclimber - 0.72012-07-11 · diff ↗
- 0.5-12011-11-17 · diff ↗
- 0.3-12011-07-26
- RR 2.13.0 released · 2011-04-13
Package metadata
- First published
- 2011-07-26
- Total releases
- 41 / 15 yrs
- License
- GPL (>= 3) OSI
- Additional repositories
- inla.r-inla-download.org
- Minimum R
- ≥ 4.0.0
- Bundled data
- 756 KB / 14 files
- Download size
- 4.8 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("abn")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v105.i08, 10.21105/joss.06822, 10.3389/fvets.2020.00073.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.