Skip to content

bain

0.2.11

Bayes Factors for Informative Hypotheses

7packages depend
49.1Kdownloads / year
77.4%test coverage
11/13checks pass

Overview

About
Maintained by Caspar J van LissaFirst published 2019-02-0711 releasesCRAN page ↗GitHub ↗

Computes approximated adjusted fractional Bayes factors for equality, inequality, and about equality constrained hypotheses. For a tutorial on this method, see Hoijtink, Mulder, van Lissa, & Gu, (2019) doi:10.1037/met0000201. For applications in structural equation modeling, see: Van Lissa, Gu, Mulder, Rosseel, Van Zundert, & Hoijtink, (2021) doi:10.1080/10705511.2020.1745644. For the statistical underpinnings, see Gu, Mulder, and Hoijtink (2018) doi:10.1111/bmsp.12110; Hoijtink, Gu, & Mulder, J. (2019) doi:10.1111/bmsp.12145; Hoijtink, Gu, Mulder, & Rosseel, (2019) doi:10.31234/osf.io/q6h5w.

Install

Health

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 9.6 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 1.83
77.4%
Coverage · measured lines
100%
Documentation · exports
2
Dependencies · direct
Check history
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 301 wordsVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
83%
Documented parameters
100%
Return-value docs
100%
References docs
42%

Downloads

49.1K
CRAN downloads in the past year
Rank #2,105 · ~135/day · ~4.1K/mo
Daily download trend is not available in this view yet.
2.8K30 days
9.9K90 days
49.1K1 year
Compare downloads with other packages →
Also on530 r2u29 autocran3.6K conda_forge54 c2d4u

Repository

Repository
9Stars
6Forks
13Open issues
0Open PRs
2Releases
212Commits
8Contributors
License GPL-3.0 · 212 commits · Last activity 2026-08-14

Stars over time

2024-11-30 · 92026-07-07 · 9

Repository practices

Upstream repositoryBeta

5 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/cjvanlissa/bain on 2026-08-16.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
renv
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)
Depends (2)
R >= 3.0.0stats
Imports (1)
LinkingTo (0)
none
Suggests (4)
Enhances (0)
none
Reverse dependencies
7direct
2indirect

Code & Tests

Datasets

People & History

People (7)
Maintainer (1)
Author, Maintainer
Authors (4)
Author, Maintainer
Author
Contributors (3)
Contributor · added in 0.2.2
Contributor
Contributor
Listed in earlier versions (2)
no longer listed · 0.2.0 to 0.2.1
no longer listed · 0.2.0 to 0.2.11
Package Timeline

11 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.2.11Latest
    2024-06-12 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.2.10
    2023-09-27 · diff ↗
  • 0.2.9
    2023-09-06 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.2.8
    2021-12-06 · diff ↗
  • 0.2.7
    2021-11-26 · diff ↗
  • 0.2.6
    2021-09-03 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 0.2.4
    2020-03-09 · diff ↗
  • 0.2.3
    2019-12-04 · diff ↗
  • 0.2.2
    2019-09-26 · diff ↗
Show 4 earlier events
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2.1
    2019-02-08 · diff ↗
  • 0.2.0
    2019-02-07
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2019-02-07
Total releases
11 / 7 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 3.0.0
Bundled data
833 KB / 5 files
Download size
559 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("bain")
van Lissa, C. J., Camiel, V. Z., Gu, X., Hoijtink, H., Jones, J., Mulder, J., & Waller, N. (2024). bain: Bayes Factors for Informative Hypotheses (Version 0.2.11) [Computer software]. https://doi.org/10.32614/CRAN.package.bain

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 bain version 0.2.11 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, 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