Skip to content

alphaN

0.3.0

Set Alpha Based on Sample Size Using Bayes Factors

0packages depend
3.1Kdownloads / year
97.9%test coverage
13/13checks pass

Overview

About
Maintained by Jesper WulffFirst published 2023-01-124 releasesCRAN page ↗GitHub ↗

Sets the alpha level for coefficients in a regression model as a decreasing function of the sample size through the use of Jeffreys' Approximate Bayes factor. You tell alphaN() your sample size, and it tells you to which value you must lower alpha to avoid Lindley's Paradox. For details, see Wulff and Taylor (2024) doi:10.1177/14761270231214429. Alpha can also be calibrated to the effect-size and moment Bayes factors of Klauer, Meyer-Grant, and Kellen (2025) doi:10.3758/s13423-024-02612-2, which center the alternative hypothesis on an effect size of your choosing.

Install

Health

CRAN checks
13OK
Slowest check: 5.4 min · r-release-macos-arm64
Code health
Yes
Tests · ratio 0.62
97.9%
Coverage · measured lines
100%
Documentation · exports
0
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 810 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

3.1K
CRAN downloads in the past year
Rank #12,150 · ~9/day · ~262/mo
Daily download trend is not available in this view yet.
32230 days
83590 days
3.1K1 year
Compare downloads with other packages →
Also on145 r2u59 autocran

Repository

Repository
8Stars
1Forks
1Open issues
0Open PRs
2Releases
91Commits
1Contributors
91 commits · Last activity 2026-07-27

Stars over time

2024-02-10 · 82026-07-07 · 8

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/jespernwulff/alphan on 2026-08-23.

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

Development tooling

AI-assisted toolingBeta

Uses AI-assisted development tooling (declared in repo)

Earliest detected marker: claude on 2026-07-11

claude

Most recent: claude on 2026-07-11

Evidence
  • claude: on 2026-07-11 · evidence B, D
How this is detected·Detection ruleset v2 (updated 2026-07-29)

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.0
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Package Timeline

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

  • 0.3.0Latest
    2026-07-27 · current release · diff ↗
  • 0.2.0
    2026-07-12 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.2
    2025-07-13 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.1.0
    2023-01-12
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2023-01-12
Total releases
4 / 3 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.0
Download size
116 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("alphaN")
Wulff, J., & Taylor, L. (2026). alphaN: Set Alpha Based on Sample Size Using Bayes Factors (Version 0.3.0) [Computer software]. https://doi.org/10.32614/CRAN.package.alphaN

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

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