Description
Distributed Lag Interaction Model.
Description
Collection of functions for fitting and interpreting distributed lag interaction models (DLIM). A DLIM regresses a scalar outcome on repeated measures of exposure and allows for modification by a continuous variable. Includes a dlim() function for fitting, predict() function for inference, and plotting functions for visualization. Details on methodology are described in Demateis et al. (2024) <doi:10.1002/env.2843>.
README.md
This repository contains the source files for the dlim package from "Penalized Distributed Lag Interaction Model: Air Pollution, Birth Weight and Neighborhood Vulnerability," which can be found at https://arxiv.org/abs/2401.02939. Simulation scripts can be found at https://github.com/ddemateis/dlim_simulations.
To install this package, run the following lines of code in R.
#install.packages("devtools") #run if devtools is not already installed
library(devtools)
install_github("ddemateis/dlim")