Skip to content

fibr

0.1.1

Prior-Fraction Diagnostics for Hierarchical Models

0packages depend
131downloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Aidan D BindoffFirst published 2026-06-291 releasesCRAN page ↗GitHub ↗

Computes the prior fraction, the per-group pooling or shrinkage factor, for hierarchical models, including directly from 'brms' fits. For each group-level coefficient the prior fraction is the share of the posterior precision contributed by the shrinkage prior relative to the likelihood; values near one indicate a coefficient that is prior-dominated (the centring/non-centring funnel regime), values near zero indicate a likelihood-dominated coefficient that is well identified from the data. These quantities are invisible to standard convergence diagnostics such as R-hat and effective sample size, and they indicate where a non-centred reparameterisation is likely to help. A companion advisor reports the same decomposition for changepoint random effects fitted with 'smoothbp'. The underlying geometry (the Fisher-metric connection on the base-fiber split, for which this connection is flat so the obstruction is statistical rather than geometric) is described in Bindoff (2026) doi:10.5281/zenodo.20724550; code reproducing the paper is in the package's source repository.

Install

Health

CRAN checks
13OK
Slowest check: 59 s · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.70
not tracked
Coverage
100%
Documentation · exports
None
Vignettes
Yes
README
2
Dependencies · direct
Check history
  • OK2026-06-30
    7 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

131
CRAN downloads in the past year
Rank #24,265 · ~0/day · ~11/mo
fibr
Daily download trend is not available in this view yet.
13130 days
13190 days
1311 year
Compare downloads with other packages →

Repository

Dependencies

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

Nothing depends on this yet.

Code & Tests

Code Composition
R 1,010 (84%)Rd 194 (16%)
Code characteristics
Object systems
S36
Cyclomatic complexity
2.0 median / 19 max
Test cases
22 / 0.70 per code line
Documented parameters
100%
System requirements
3 external

Test coverage

Line coverage

Expression

Tests / Examples

Functions

13 2 exported

Complexity

4 avg / 19 max

Call network

13 nodes / 3 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Release timeline

1 release. R releases are shown for context.

  • 0.1.1Latest
    2026-06-29 · current release
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-06-29
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Additional repositories
stan-dev.r-universe.dev
Minimum R
≥ 4.1.0
Download size
not tracked yet
Installed size
not tracked yet
With dependencies
not tracked yet