brmsmargins
0.3.0Bayesian Marginal Effects for 'brms' Models
Overview
Calculate Bayesian marginal effects, average marginal effects, and marginal coefficients (also called population averaged coefficients) for models fit using the 'brms' package including fixed effects, mixed effects, and location scale models. These are based on marginal predictions that integrate out random effects if necessary (see for example doi:10.1186/s12874-015-0046-6 and doi:10.1111/biom.12707).
Install
Health
- OK2026-07-0413 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- WARNING2026-07-0312 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0812 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-04-2512 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 3 earlier snapshots
- WARNING2026-04-2212 OK · 1 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-1811 OK · 1 NOTE · 1 WARNING · 1 ERROR · 0 FAILURE
- WARNING2026-03-1010 OK · 0 NOTE · 4 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 88%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 22%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Repository practices
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/jwiley/brmsmargins on 2026-07-19.
Dependencies
Code & Tests
- Cyclomatic complexity
- 3.0 median / 45 max
- Test cases
- 52 / 1.04 per code line
Test coverage
Line coverage
92%
Expression
94.4%
Tests / Examples
91.8% / 17% ex
Functions
46 10 exported
Complexity
5.1 avg / 45 max
Call network
46 nodes / 54 edges
Call graph
Open call graph →Lowest coverage
46 functions| Function | Cyclo | Coverage |
|---|---|---|
| .buildDF | 1 | 0% |
| .namesDF | 1 | 0% |
| bsummary exp | 5 | 68% |
| brmsmargins exp | 45 | 86% |
| prediction exp | 21 | 88% |
| .links | 8 | 92% |
People & History
4 releases. Pick two to compare their code metrics. R releases are shown for context.
Package metadata
- First published
- 2021-12-16
- Total releases
- 4 / 5 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.0.0
- Download size
- 948 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet