Skip to content

brmsmargins

0.3.0

Bayesian Marginal Effects for 'brms' Models

1packages depend
47.7Kdownloads / year
91.8%test coverage
13/13checks pass

Overview

About
Maintained by Joshua F. WileyFirst published 2021-12-164 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 5.6 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 1.04
91.8%
Coverage · measured lines
100%
Documentation · exports
8
Dependencies · direct
Check history
  • OK2026-07-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-07-03
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 3 earlier snapshots
  • WARNING2026-04-22
    12 OK · 1 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    11 OK · 1 NOTE · 1 WARNING · 1 ERROR · 0 FAILURE
  • WARNING2026-03-10
    10 OK · 0 NOTE · 4 WARNING · 0 ERROR · 0 FAILURE

Documentation

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

Downloads

47.7K
CRAN downloads in the past year
Rank #2,070 · ~131/day · ~4K/mo
Daily download trend is not available in this view yet.
2.3K30 days
11.7K90 days
47.7K1 year
Compare downloads with other packages →
Also on4.1K r2u66 autocran

Repository

Repository
20Stars
2Forks
1Open issues
0Open PRs
2Releases
109Commits
2Contributors
109 commits · Last activity 2026-06-18 · 0% stars, 30d

Stars over time

2024-02-14 · 192026-07-07 · 20

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

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

Code & Tests

Code Composition
R 3,490 (47%)Vignettes 2,530 (34%)Rd 1,066 (14%)C++ 371 (5%)C 31 (0%)
Code characteristics
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

Loading call graph…

Lowest coverage

46 functions
FunctionCycloCoverage
.buildDF10%
.namesDF10%
bsummary exp568%
brmsmargins exp4586%
prediction exp2188%
.links892%

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Author · added in 0.2.0
Package Timeline

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

  • R
    R 4.6.0 released · 2026-04-24
  • 0.3.0Latest
    2026-04-06 · current release · diff ↗
  • 0.2.1
    2025-09-26 · 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.2.0
    2022-05-19 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.1
    2021-12-16
  • R
    R 4.1.0 released · 2021-05-18

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
Report a problem with this page →