Bayesian Distributed Lag Interaction Models
Overview
Estimation and interpretation of Bayesian distributed lag interaction models (BDLIMs). A BDLIM regresses a scalar outcome on repeated measures of exposure and allows for modification by a categorical variable under four specific patterns of modification. The main function is bdlim(). There are also summary and plotting files. Details on methodology are described in Wilson et al. (2017) doi:10.1093/biostatistics/kxx002.
Minor updates to allow for summary and plot.summary functions to work with bdlim1 objects. Now the bdlim1 model can be run to fit a single modification pattern and the same summary and plot functions apply.
The function bdlim1 now works with a only one group. This fits a Bayesian distributed lag model without modification.
Add new function getw to extract the posterior sample of the weight function from a bdlim1 object.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 15 (1 internal)includes a package overview page
- Examples that run
- 17%1 run in a plain check · 5 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 50%
- Documented parameters
- 96%
- Return-value docs
- 100%
- Help pages citing references
- 7%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 354
- Median days to close, 50 most recently updated closed PRs
- 0
Forks over time
Releases over time
Issues over time
6 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/anderwilson/bdlim on 2026-10-11.
The R CMD check workflow runs on Linux
GitHub Pages site last deployed 2025-06-11 · The repository has a site deploy workflow
pkgdown site last built 2025-06-11
Dependencies
Installing bdlim adds 19 packages (8 with compiled code, 16 MB of source tarballs). Heaviest: ggplot2 6.0 MB, LaplacesDemon 2.0 MB, isoband 1.5 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.5.0Latest
- RR 4.5.0 released · 2025-04-11
- 0.4.22024-06-12 · diff ↗
- 0.4.12024-05-22
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-05-22
- Total releases
- 3 / 2 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 1.3 MB / 1 file
- Download size
- 1.4 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("bdlim")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.