Skip to content

bain

0.2.12Package record

Bayes Factors for Informative Hypotheses

4packages dependsuggested by 3
43Kdownloads / year
77.8%test coverage
13/13flavors OK

Overview

About

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
13OK
Slowest check: 8.9 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-28
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.2.12
READMEYes · 301 wordsVignettesYes · 1 · dynamicNEWSNoCitation fileNoWebsiteYes
Help pages
19 (9 internal)
Examples that run
83%5 run in a plain check · 1 never run
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
42%
Vignettes (1)

Downloads

43K
CRAN downloads in the past year
Rank #2,089 · ~118/day · ~3.6K/mo
Daily download trend is not available in this view yet.
2.8K30 days
8.6K90 days
43K1 year
Compare downloads with other packages →
Also on543 r2u38 autocran3.9K conda_forge117 c2d4u

Repository

9Stars
6Forks
13Open issues
0Open PRs
2Releases
212Commits
8Commit identities
License file reads as GPL-3.0 · 212 commits · Last activity 2026-08-14
Responsiveness
How these are sampled
PRs merged (all time)
69%
Median days to close, 50 most recently updated closed issues
62
Median days to close, 50 most recently updated closed PRs
0

Stars over time

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

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

Checks run against github.com/cjvanlissa/bain on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
Code of conduct
Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-08-14

Coverage (1)
Coverage reporting
Show all practicesHide 3 practices
Reproducibility and dev environment (1)
renv
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)

Installing bain adds 5 packages (3 with compiled code, 1.8 MB of source tarballs). Heaviest: lavaan 1.6 MB, numDeriv 74 KB, mnormt 63 KB.

Depends (2)
R >= 3.0.0stats
Imports (1)
LinkingTo (0)
none
Suggests (4)
Enhances (0)
none
Reverse dependencies
4direct
2indirect
Depends 2 · Imports 2
Suggested by 3
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (7)
Author, Maintainer since 0.2.0 (2019)
Author
Contributor · added in 0.2.2
Contributor
Contributor
Listed in earlier versions (2)
no longer listed · 0.2.0 to 0.2.1
Caspar J
no longer listed · 0.2.0 to 0.2.12
Releases (12)

Pick two releases to compare their code metrics.

  • 0.2.12Latest
    record
    2026-08-24 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.2.11
    record
    2024-06-12 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.2.10
    record
    2023-09-27 · diff ↗
  • 0.2.9
    record
    2023-09-06 · diff ↗ ·
    added 1 export
    pbf
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.2.8
    record
    2021-12-06 · diff ↗
  • 0.2.7
    record
    2021-11-26 · diff ↗
  • 0.2.6
    record
    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
    record
    2020-03-09 · diff ↗ ·
    added 1 export
    bain_sensitivity
  • 0.2.3
    record
    2019-12-04 · diff ↗
Show 5 earlier eventsHide 5 earlier events
  • 0.2.2
    record
    2019-09-26 · diff ↗ ·
    added 1 export
    get_estimates
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2.1
    record
    2019-02-08 · diff ↗
  • 0.2.0
    record
    2019-02-07
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2019-02-07
Total releases
12 / 7 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 3.0.0
Bundled data
833 KB / 5 files
Download size
589 KB
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. (2026). bain: Bayes Factors for Informative Hypotheses (Version 0.2.12) [Computer software]. https://doi.org/10.32614/CRAN.package.bain

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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.12 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, 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