This repository contains the source files for thedlim Rpackage that implements distributed lag interaction models as describedin the paper:
Simulation scripts from the manuscript can be found athttps://github.com/ddemateis/dlim_simulations.
Thedlim package estimates a distributed lag model withmodification by a single continuous factor. If you are insteadinterested in a DLM with modification by a single categorical or binaryvariable see thebdlimpackage. If you are interested in distributed lag models withheterogeneity by with multiple modifiers see the heterogeneousdistributed lag model in thedlmtreepackage.
Install from CRAN:
install.packages("dlim")Install from GitHub:
remotes::install_github("ddemateis/dlim")A vignette is available on the package website or in the packageusing the following code.
vignette('dlimOverview')