dlim

CRAN status R-CMD-check Downloads

Overview

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.

Installation

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')