Package: dlnm 2.4.10

dlnm: Distributed Lag Non-Linear Models

Collection of functions for distributed lag linear and non-linear models.

Authors:Antonio Gasparrini [aut, cre], Ben Armstrong [aut], Fabian Scheipl [ctb]

dlnm_2.4.10.tar.gz
dlnm_2.4.10.zip(r-4.7)dlnm_2.4.10.zip(r-4.6)dlnm_2.4.10.zip(r-4.5)
dlnm_2.4.10.tgz(r-4.6-any)dlnm_2.4.10.tgz(r-4.5-any)
dlnm_2.4.10.tar.gz(r-4.7-any)dlnm_2.4.10.tar.gz(r-4.6-any)
dlnm_2.4.10.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
dlnm/json (API)
NEWS

# Install 'dlnm' in R:
install.packages('dlnm', repos = c('https://gasparrini.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gasparrini/dlnm/issues

Datasets:
  • chicagoNMMAPS - Daily Mortality Weather and Pollution Data for Chicago
  • drug - A Trial on the Effect of Time-Varying Doses of a Drug
  • nested - Nested Case-Control Study with a Time-Varying Exposure and a Cancer Outcome

On CRAN:

Conda:

11.02 score 94 stars 8 packages 864 scripts 2.7k downloads 209 mentions 26 exports 5 dependencies

Last updated from:18ed5d047b. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK135
source / vignettesOK218
linux-release-x86_64OK142
macos-release-arm64OK148
macos-oldrel-arm64OK151
windows-develOK101
windows-releaseOK110
windows-oldrelOK92
wasm-releaseOK93

Exports:cbPencoef.crosspredcoef.crossreducecrcrossbasiscrosspredcrossreduceequalknotsexphistlines.crosspredlines.crossreducelogknotsonebasisplot.crosspredplot.crossreducepoints.crosspredpoints.crossreducePredict.matrix.cb.smoothpssmooth.construct.cb.smooth.specsummary.crossbasissummary.crosspredsummary.crossreducesummary.onebasisvcov.crosspredvcov.crossreduce

Dependencies:latticeMatrixmgcvnlmetsModel

Distributed lag linear and non-linear models for time series data

Rendered fromdlnmTS.Rnwusingutils::Sweaveon May 10 2026.

Last update: 2020-05-01
Started: 2016-09-15

Distributed lag linear and non-linear models: the R the package dlnm

Rendered fromdlnmOverview.Rnwusingutils::Sweaveon May 10 2026.

Last update: 2021-10-07
Started: 2016-09-15

Extension of the dlnm package

Rendered fromdlnmExtended.Rnwusingutils::Sweaveon May 10 2026.

Last update: 2025-04-17
Started: 2016-09-15

Penalized distributed lag linear and non-linear models

Rendered fromdlnmPenalized.Rnwusingutils::Sweaveon May 10 2026.

Last update: 2017-01-16
Started: 2017-01-16

Readme and manuals

Help Manual

Help pageTopics
Distributed Lag Non-linear Models (DLNM)dlnm-package dlnm
Generate Penalty Matrices for a DLNMcbPen
Daily Mortality Weather and Pollution Data for ChicagochicagoNMMAPS
Model Coefficients and their (Co)Variance Matrix of a DLNMcoef.crosspred coef.crossreduce vcov.crosspred vcov.crossreduce
Generate a Basis Matrix for Penalized Cubic Regression Splinescr
Generate a Cross-Basis Matrix for a DLNMcrossbasis summary.crossbasis
Generate Predictions for a DLNMcrosspred summary.crosspred
Reduce the Fit of a DLNM to One-Dimensional Summariescrossreduce summary.crossreduce
A Trial on the Effect of Time-Varying Doses of a Drugdrug
Define Knots at Equally-Spaced Valuesequalknots
Define Exposure Histories from an Exposure Profileexphist
Generate a Basis Matrix of Indicator Variables for Integer Valuesinteger
Generate a Basis Matrix with a Variable as Linearlin
Define Knots for Lag Space at Equally-Spaced Log-Valueslogknots
Nested Case-Control Study with a Time-Varying Exposure and a Cancer Outcomenested
Generate a Basis Matrix for Different Functionsmkbasis mklagbasis onebasis summary.onebasis
Plot Predictions for a DLNMcrossplot lines.crosspred plot.crosspred points.crosspred
Plot Predictions for a Reduced DLNMlines.crossreduce plot.crossreduce points.crossreduce
Generate a Basis Matrix of Polynomialspoly
Generate a Basis Matrix for P-Splinesps
Cross-Basis Spline Smooths for a DLNMPredict.matrix.cb.smooth smooth.construct.cb.smooth.spec
Generate a Basis Matrix of Indicator Variablesstrata
Generate a Basis Matrix of Linear Threshold Transformationsthr