This repository contains the source files for the dlimIM R package that implements distributed lag interaction models with index modification as described Demateis et al. (2025).
Simulation scripts from the manuscript can be found at https://github.com/ddemateis/dlimIM_simulations.
The dlimIM package estimates a distributed lag model with modification by a multiple factors through an index. If you are instead interested in a DLM with modification by a single continuous variable, see the dlim package on CRAN. If you are instead interested in a DLM with modification by a single categorical or binary variable, see the bdlim package. If you are interested in distributed lag models with heterogeneity by with multiple modifiers, see the heterogeneous distributed lag model in the dlmtree package.
Installation Install from GitHub:
remotes::install_github("ddemateis/dlimIM")References:
- Demateis, D., India Aldana, S., Wright, R. O., Wright, R., Baccarelli, A., Colicino, E., Wilson, A., Keller, K. P. (2025). Distributed Lag Interaction Model with Index Modification. In press at Biostatistics. https://doi.org/10.48550/arXiv.2504.06363.