Package: bml 0.9.0

Benjamin Rosche

bml: Bayesian Multiple-Membership Multilevel Models with Parameterizable Weight Functions

Implements Bayesian multiple-membership multilevel models with parameterizable weight functions via 'JAGS' to model how lower-level units jointly shape higher-level outcomes (micro-macro link) across a range of outcome types (e.g., linear, logit, and survival models). Supports estimation and comparison of alternative aggregation mechanisms, allows weight matrices to be endogenized through parameters and covariates, and accommodates complex dependence structures that extend beyond traditional multilevel frameworks. For details, see Rosche (2026) "A Multilevel Model for Coalition Governments. Uncovering Party-Level Dependencies Within and Between Governments" <doi:10.31235/osf.io/4bafr_v2>.

Authors:Benjamin Rosche [aut, cre]

bml_0.9.0.tar.gz
bml_0.9.0.tar.gz(r-4.7-any)bml_0.9.0.tar.gz(r-4.6-any)
bml_0.9.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
bml/json (API)
NEWS

# Install 'bml' in R:
install.packages('bml', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/benrosche/bml/issues

Pkgdown/docs site:https://benrosche.github.io

Uses libs:
  • jags– Just Another Gibbs Sampler for Bayesian MCMC - binary JAGS is Just Another Gibbs Sampler. It is a program for analysis of Bayesian hierarchical models using Markov Chain Monte Carlo (MCMC) simulation not wholly unlike BUGS. JAGS was written with three aims in mind: * To have an engine for the BUGS language that runs on Unix * To be extensible, allowing users to write their own functions, distributions and samplers. * To be a plaftorm for experimentation with ideas in Bayesian modelling This package contains the 'jags' binary as well as the associated shared library modules loaded by the binary.
  • c++– GNU Standard C++ Library v3
Datasets:
  • coalgov - Coalition Governments in Western Democracies

On CRAN:

Conda:

jagscpp

3.40 score 5 scripts 193 downloads 10 exports 52 dependencies

Last updated from:cfde3345ae. Checks:4 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK161
source / vignettesOK179
linux-release-x86_64OK162
wasm-releaseOK108

Exports:bmlfixfnhmidmcmcDiagmmmonetPlotvarDecompvars

Dependencies:abindbitbit64bootclicliprcodacpp11crayondplyrfarverforcatsgenericsGGallyggmcmcggplot2ggstatsgluegtablehmsisobandlabelinglatticelifecyclemagrittrMASSpatchworkpillarpkgconfigprettyunitsprogresspurrrR2jagsR2WinBUGSR6RColorBrewerreadrrjagsrlangS7scalesstringistringrtibbletidyrtidyselecttzdbutf8vctrsviridisLitevroomwithr

Examples

Rendered fromexamples.Rmdusingknitr::rmarkdownon May 21 2026.

Last update: 2026-02-20
Started: 2026-02-20

Frequently Asked Questions

Rendered fromfaq.Rmdusingknitr::rmarkdownon May 21 2026.

Last update: 2026-02-20
Started: 2026-02-20

Getting Started with bml

Rendered frombml.Rmdusingknitr::rmarkdownon May 21 2026.

Last update: 2026-02-20
Started: 2026-02-20

Installation

Rendered frominstallation.Rmdusingknitr::rmarkdownon May 21 2026.

Last update: 2026-02-20
Started: 2026-02-20

Model Structure

Rendered frommodel.Rmdusingknitr::rmarkdownon May 21 2026.

Last update: 2026-02-20
Started: 2026-02-20