This repository contains the source files for the dlim
R package that implements distributed lag interaction models as described in the paper:
Simulation scripts from the manuscript can be found at https://github.com/ddemateis/dlim_simulations.
The dlim
package estimates a distributed lag model with modification by a single continuous factor. 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.
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 package using the following code.
vignette('dlimOverview')
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.