Skip to content

Modelling Multivariate Data with Additive Bayesian Networks

0packages depend
9.3Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 28.7 min · r-release-macos-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 3.1.13
READMEYes · 3,966 wordsVignettesYes · 8 · dynamicNEWS· In the repository, left out of the releaseCitation fileYes · cites a publicationWebsiteYes
Cites a JSS articleCites a JOSS paper
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

9.3K
CRAN downloads in the past year
Rank #3,451 · ~25/day · ~773/mo
Daily download trend is not available in this view yet.
1.6K30 days
3.2K90 days
9.3K1 year
Compare downloads with other packages →
Also on600 r2u219 c2d4u

Repository

10Stars
3Forks
46Open issues
5Open PRs
7Releases
442Commits
7Commit identities
bayesian-networkbinomialcategorical-datagaussiangrouped-datasetsmixed-effectsmultinomialmultivariate
License file reads as GPL-3.0 · 442 commits · Last activity 2026-10-15 · 0% stars, 30d
Responsiveness
How these are sampled
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

2025-09-10 · 82026-07-07 · 10
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux

Governance and community (2)
Code of conductContributing guide
Docs source (3)
pkgdown

GitHub Pages site last deployed 2024-03-18 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 3 practices
Reproducibility and dev environment (3)
renvdata-raw/Makefile
Research and citation (1)
CITATION.cff
Lint, format, editor (3)
lintrLint workflowRStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
29 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 4.0.0
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (7)
Author, Maintainer since 2.7-5 (2023) · added in 2.7-5
Author · added in 0.85
Author · added in 1.0.2
Author · added in 2.5-0
Contributor · added in 2.6-0
Contributor · added in 3.1.1
Contributor · added in 0.85

Previously maintained by Reinhard Furrer (2.6-0 to 2.7-3) and Gilles Kratzer (1.0.2 to 2.5-0).

Listed in earlier versions (2)
Fraser Lewis
no longer listed · 0.3-1 to 0.83
Fraser Ian Lewis
no longer listed · 0.85 to 2.3-0
Releases (41)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 3.1.13Latest
    record
    2025-12-19 · current release · diff ↗
  • 3.1.12
    record
    2025-11-25 · diff ↗ ·
    removed 6 exports
    factorial, factorial_fast, irls_binomial_cpp, irls_binomial_cpp_br, irls_gaussian_cpp, irls_poisson_cpp
    added 1 export
    export_abnFit
  • 3.1.9
    record
    2025-06-26 · diff ↗
  • unarchivedReturned to CRAN
    2025-06-24
  • 3.1.8
    record
    2025-06-24 · diff ↗
  • archivedRemoved from CRAN
    2025-06-09
    issues were not corrected in time , Does not use suggested package INLA conditionally
  • 3.1.7
    record
    2025-06-06 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • unarchivedReturned to CRAN
    2024-05-30
  • 3.1.1
    record
    2024-05-30 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • archivedRemoved from CRAN
    2024-03-28
    resubmitted 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 CRAN
    2024-03-22
  • 3.0.6
    record
    2024-03-22 · diff ↗ ·
    added 1 export
    forLoopContentBayes
  • archivedRemoved from CRAN
    2023-12-21
    issues were not corrected even on re-submission
Show 56 earlier eventsHide 56 earlier events
  • 3.0.4
    record
    2023-11-30 · diff ↗
  • 3.0.3
    record
    2023-11-03 · diff ↗
  • 3.0.2
    record
    2023-10-26 · diff ↗
  • 3.0.1
    record
    2023-10-09 · diff ↗
  • 3.0.0
    record
    2023-09-06 · diff ↗ ·
    removed 7 exports
    fitabn, buildscorecache, mostprobable, searchHillclimber, plotabn, compareEG, abn.Version
    added 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
  • R
    R 4.3.0 released · 2023-04-21
  • unarchivedReturned to CRAN
    2022-04-25
  • R
    R 4.2.0 released · 2022-04-22
  • archivedRemoved from CRAN
    2022-04-21
    check issues were not corrected in time
  • unarchivedReturned to CRAN
    2022-01-07
  • archivedRemoved from CRAN
    2021-11-05
    check problems were not corrected in time
  • R
    R 4.1.0 released · 2021-05-18
  • unarchivedReturned to CRAN
    2021-04-23
  • archivedRemoved from CRAN
    2020-11-06
    check problems were not corrected in time
  • unarchivedReturned to CRAN
    2020-10-22
  • archivedRemoved from CRAN
    2020-07-21
    check problems were not corrected in time Mismatched reference output, including timings
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • R
    R 3.0.0 released · 2013-04-03
  • 2.15.3
    record
    2012-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.2
    record
    2012-10-26 · diff ↗
  • 2.15.1
    record
    2012-04-18 · diff ↗ ·
    removed 1 export
    prunenets
    added 5 exports
    arcfreq, allnodesbn, allnodesabn, getposteriorfeaturesbn, findmostprobablebn
  • R
    R 2.15.0 released · 2012-03-30
  • 2.14.1
    record
    2011-11-16 · diff ↗ ·
    removed 1 export
    fitbnMulti
  • R
    R 2.14.0 released · 2011-10-31
  • 2.13.2
    record
    2011-07-26 · diff ↗
  • 2.7-5
    record
    2023-05-22 · diff ↗
  • 2.7-3
    record
    2023-01-25 · diff ↗
  • 2.7-1
    record
    2022-04-25 · diff ↗
  • 2.7-0
    record
    2022-04-07 · diff ↗ ·
    added 5 exports
    compareEG, fit.control, build.control, abn.version, abn.Version
  • 2.6-0
    record
    2022-01-07 · diff ↗
  • 2.5-0
    record
    2021-04-23 · diff ↗ ·
    removed 3 exports
    tographviz, search.hillclimber, create_abnDag
    added 7 exports
    toGraphviz, fitAbn, buildScoreCache, mostProbable, searchHillClimber, plotAbn, createAbnDag
  • 2.3-0
    record
    2020-10-22 · diff ↗
  • 2.2.2
    record
    2020-07-02 · diff ↗
  • 2.2.1
    record
    2020-06-15 · diff ↗
  • 2.2
    record
    2019-11-23 · diff ↗
  • 2.1
    record
    2019-07-04 · diff ↗
  • 2.0
    record
    2019-07-01 · diff ↗ ·
    removed 5 exports
    buildscorecache.mle, fitabn.mle, simulateabn, link.strength, search.heuristic
    added 6 exports
    searchHillclimber, simulateAbn, linkStrength, searchHeuristic, scoreContribution, create_abnDag
  • 1.3
    record
    2018-11-22 · diff ↗
  • 1.2
    record
    2018-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.2
    record
    2016-11-09 · diff ↗
  • 1.0
    record
    2016-01-18 · diff ↗
  • 0.86
    record
    2015-12-28 · diff ↗
  • 0.85
    record
    2014-12-22 · diff ↗
  • 0.83
    record
    2013-03-07 · diff ↗
  • 0.82
    record
    2013-01-04 · diff ↗
  • 0.8
    record
    2012-10-26 · diff ↗ ·
    removed 15 exports
    hillsearchbn, searchbn, fitbn, makeintofactors, makeintobinarymatrix, trim, arcfreq, uniquenets, hillsearchabn, searchabn, getmarginal, allnodesbn, allnodesabn, getposteriorfeaturesbn, findmostprobablebn
    added 9 exports
    check.data, check.dag, calc.node.mlik.inla, calc.node.mlik.inla.mixed, fitabn.inla, buildscorecache, buildscorecache.inla, mostprobable, search.hillclimber
  • 0.7
    record
    2012-07-11 · diff ↗
  • 0.5-1
    record
    2011-11-17 · diff ↗
  • 0.3-1
    record
    2011-07-26
  • R
    R 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
Appears in task views

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for abn version 3.1.13 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy