Bayesian Distributed Lag Non-Linear Models (B-DLNM)

A Bayesian framework for estimating distributed lag linear and non-linear models. Model fitting is implemented using Integrated Nested Laplace Approximation (R package 'INLA'), together with prediction and visualization of exposure-lag-response associations. Additional functions allow estimation of optimal exposure values (e.g., minimum mortality temperature) and computation of attributable fractions and numbers. Models with 'crossbasis' or 'onebasis' terms are supported (R package 'dlnm').


bdlnm bdlnm website

Lifecycle:experimental CRANstatus R-CMD-check Codecov testcoverage bdlnm downloads permonth bdlnm totaldownloads

The goal of bdlnm is to provide tools for fitting Bayesian distributed lag non-linear models (B-DLNM) using the INLA framework. The package allows users to estimate exposure-lag-response associations, generate posterior predictions, compute attributable risk measures, and estimate optimal exposure values within a fully Bayesian framework.

Key features

The package provides functions to:

  • Fit Bayesian distributed lag linear and non-linear models using INLA
  • Generate predictions of exposure-lag-response associations
  • Estimate attributable fractions and attributable numbers
  • Estimate optimal exposure values (e.g., minimum risk exposure)
  • Visualize exposure–lag–response associations

More detailed examples and tutorials are available in the package vignettes.

Installation

You can install the development version of bdlnm like so:

devtools::install_github("pasahe/bdlnm")

At least the stable version of INLA 23.4.24 (or newest) must be installed beforehand. You can install the newest stable INLA version by:

install.packages("INLA", repos=c(getOption("repos"), INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE)

Citation

If you use bdlnm in your research, please cite:

citation("bdlnm")

Acknowledgements

This package extends the distributed lag modelling framework implemented in the dlnm package developed by Gasparrini (2011) to a Bayesian setting.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("bdlnm")

0.1.1 by Pau Satorra, 4 months ago


https://github.com/pasahe/bdlnm, https://pasahe.github.io/bdlnm/


Report a bug at https://github.com/pasahe/bdlnm/issues


Browse source code at https://github.com/cran/bdlnm


Authors: Pau Satorra [aut, cre] , Marcos Quijal-Zamorano [aut] , Joan Ballester [aut] , Cristian Tebé [ctb] , Miguel A. Martínez-Beneito [aut, ths] , Marc Marí-Dell'Olmo [aut, ths]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports dlnm, cli, tsModel, crs, graphics, grDevices, stats, utils

Suggests INLA, knitr, rmarkdown, testthat, sn, splines, tidyr, lubridate, ggplot2


See at CRAN