fibr
0.1.1Prior-Fraction Diagnostics for Hierarchical Models
Overview
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
- OK2026-06-307 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Downloads
Repository
Dependencies
Nothing depends on this yet.
Code & Tests
- 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.
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
People & History
1 release. R releases are shown for context.
- 0.1.1Latest2026-06-29 · current release
- RR 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