{
  "_id": "6a27cf8024555f66ed544bb1",
  "Package": "dlnm",
  "Type": "Package",
  "Version": "2.4.10",
  "Date": "2025-04-17",
  "Title": "Distributed Lag Non-Linear Models",
  "Description": "Collection of functions for distributed lag linear and\nnon-linear models.",
  "Author": "Antonio Gasparrini [aut, cre], Ben Armstrong [aut], Fabian\nScheipl [ctb]",
  "Maintainer": "Antonio Gasparrini <antonio.gasparrini@lshtm.ac.uk>",
  "Authors@R": "c(\nperson(\"Antonio\",\"Gasparrini\",role=c(\"aut\",\"cre\"),email=\"antonio.gasparrini@lshtm.ac.uk\"),\nperson(\"Ben\",\"Armstrong\",role=\"aut\",email=\"ben.armstrong@lshtm.ac.uk\"),\nperson(\"Fabian\",\"Scheipl\",role=\"ctb\",email=\"fabian.scheipl@stat.uni-muenchen.de\"))",
  "URL": "https://github.com/gasparrini/dlnm,\nhttp://www.ag-myresearch.com/package-dlnm",
  "License": "GPL (>=2)",
  "LazyData": "yes",
  "Repository": "https://gasparrini.r-universe.dev",
  "Date/Publication": "2025-04-17 11:09:14 UTC",
  "RemoteUrl": "https://github.com/gasparrini/dlnm",
  "RemoteRef": "HEAD",
  "RemoteSha": "18ed5d047b0be41c05fc414d2640b12994b53d73",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-09 08:28:37 UTC",
    "User": "root"
  },
  "MD5sum": "8b24968e908ed8dad56d2a777a933e98",
  "_user": "gasparrini",
  "_type": "src",
  "_file": "dlnm_2.4.10.tar.gz",
  "_fileid": "a00cc0887479b67da0de9de4794ec8a3089f876933ce109b002e81863730e95a",
  "_filesize": 1230936,
  "_sha256": "a00cc0887479b67da0de9de4794ec8a3089f876933ce109b002e81863730e95a",
  "_created": "2026-06-09T08:28:37.000Z",
  "_published": "2026-06-09T08:32:00.353Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80280236063,
      "time": 140,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7502457627"
    },
    {
      "job": 80280236044,
      "time": 159,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7502464922"
    },
    {
      "job": 80280236060,
      "time": 113,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7502447069"
    },
    {
      "job": 80280236027,
      "time": 122,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7502450517"
    },
    {
      "job": 80279593463,
      "time": 220,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7502405702"
    },
    {
      "job": 80280236009,
      "time": 101,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7502443174"
    },
    {
      "job": 80280236055,
      "time": 104,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7502444166"
    },
    {
      "job": 80280236033,
      "time": 101,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7502443569"
    },
    {
      "job": 80280236103,
      "time": 119,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7502449941"
    }
  ],
  "_buildurl": "https://github.com/r-universe/gasparrini/actions/runs/27193586801",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/gasparrini/dlnm",
  "_commit": {
    "id": "18ed5d047b0be41c05fc414d2640b12994b53d73",
    "author": "Antonio Gasparrini <emsuagas@lshtm.ac.uk>",
    "committer": "Antonio Gasparrini <emsuagas@lshtm.ac.uk>",
    "message": "Fixed documentation links and minor stuff\n",
    "time": 1744888154
  },
  "_maintainer": {
    "name": "Antonio Gasparrini",
    "email": "antonio.gasparrini@lshtm.ac.uk",
    "login": "gasparrini",
    "linkedin": "in/antonio-gasparrini-48821530",
    "description": "",
    "uuid": 13588250
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.4",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "splines",
      "role": "Imports"
    },
    {
      "package": "nlme",
      "role": "Imports"
    },
    {
      "package": "mgcv",
      "role": "Imports"
    },
    {
      "package": "tsModel",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Suggests"
    },
    {
      "package": "lme4",
      "role": "Suggests"
    },
    {
      "package": "gee",
      "role": "Suggests"
    },
    {
      "package": "geepack",
      "role": "Suggests"
    },
    {
      "package": "mixmeta",
      "role": "Suggests"
    }
  ],
  "_owner": "gasparrini",
  "_selfowned": true,
  "_usedby": 8,
  "_updates": [],
  "_tags": [],
  "_stars": 96,
  "_contributors": [
    {
      "user": "gasparrini",
      "count": 8,
      "uuid": 13588250
    }
  ],
  "_userbio": {
    "uuid": 13588250,
    "type": "user",
    "name": "Antonio Gasparrini"
  },
  "_downloads": {
    "count": 2826,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/dlnm"
  },
  "_mentions": 209,
  "_devurl": "https://github.com/gasparrini/dlnm",
  "_searchresults": 830,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/dlnm.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/gasparrini/dlnm",
  "_realowner": "gasparrini",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2009-07-01"
    },
    {
      "version": "0.2.1",
      "date": "2009-07-18"
    },
    {
      "version": "0.3.0",
      "date": "2009-07-30"
    },
    {
      "version": "0.4.0",
      "date": "2009-08-04"
    },
    {
      "version": "0.4.1",
      "date": "2009-08-04"
    },
    {
      "version": "1.0.1",
      "date": "2009-09-18"
    },
    {
      "version": "1.0.2",
      "date": "2009-10-13"
    },
    {
      "version": "1.1.0",
      "date": "2009-10-19"
    },
    {
      "version": "1.1.1",
      "date": "2009-11-04"
    },
    {
      "version": "1.2.0",
      "date": "2010-03-26"
    },
    {
      "version": "1.2.1",
      "date": "2010-04-03"
    },
    {
      "version": "1.2.2",
      "date": "2010-05-01"
    },
    {
      "version": "1.2.3",
      "date": "2010-05-29"
    },
    {
      "version": "1.2.4",
      "date": "2010-06-24"
    },
    {
      "version": "1.3.1",
      "date": "2011-01-19"
    },
    {
      "version": "1.3.2",
      "date": "2011-03-26"
    },
    {
      "version": "1.4.0",
      "date": "2011-06-27"
    },
    {
      "version": "1.4.1",
      "date": "2011-07-21"
    },
    {
      "version": "1.5.2",
      "date": "2012-01-05"
    },
    {
      "version": "1.5.3",
      "date": "2012-02-21"
    },
    {
      "version": "1.6.0",
      "date": "2012-03-26"
    },
    {
      "version": "1.6.1",
      "date": "2012-04-16"
    },
    {
      "version": "1.6.2",
      "date": "2012-04-19"
    },
    {
      "version": "1.6.3",
      "date": "2012-06-19"
    },
    {
      "version": "1.6.4",
      "date": "2012-08-22"
    },
    {
      "version": "1.6.5",
      "date": "2013-01-21"
    },
    {
      "version": "1.6.6",
      "date": "2013-04-05"
    },
    {
      "version": "1.6.8",
      "date": "2013-05-16"
    },
    {
      "version": "2.0.3",
      "date": "2013-09-11"
    },
    {
      "version": "2.0.6",
      "date": "2013-10-17"
    },
    {
      "version": "2.0.9",
      "date": "2014-04-01"
    },
    {
      "version": "2.1.0",
      "date": "2014-05-21"
    },
    {
      "version": "2.1.2",
      "date": "2014-07-24"
    },
    {
      "version": "2.1.3",
      "date": "2014-08-05"
    },
    {
      "version": "2.2.3",
      "date": "2016-03-15"
    },
    {
      "version": "2.2.5",
      "date": "2016-04-11"
    },
    {
      "version": "2.2.6",
      "date": "2016-05-10"
    },
    {
      "version": "2.3.2",
      "date": "2017-01-16"
    },
    {
      "version": "2.3.4",
      "date": "2017-12-06"
    },
    {
      "version": "2.3.5",
      "date": "2018-08-02"
    },
    {
      "version": "2.3.6",
      "date": "2018-09-12"
    },
    {
      "version": "2.3.8",
      "date": "2019-02-04"
    },
    {
      "version": "2.3.9",
      "date": "2019-03-11"
    },
    {
      "version": "2.4.1",
      "date": "2020-05-13"
    },
    {
      "version": "2.4.2",
      "date": "2020-05-22"
    },
    {
      "version": "2.4.5",
      "date": "2021-03-21"
    },
    {
      "version": "2.4.6",
      "date": "2021-06-15"
    },
    {
      "version": "2.4.7",
      "date": "2021-10-07"
    },
    {
      "version": "2.4.10",
      "date": "2025-04-17"
    }
  ],
  "_exports": [
    "cbPen",
    "coef.crosspred",
    "coef.crossreduce",
    "cr",
    "crossbasis",
    "crosspred",
    "crossreduce",
    "equalknots",
    "exphist",
    "lines.crosspred",
    "lines.crossreduce",
    "logknots",
    "onebasis",
    "plot.crosspred",
    "plot.crossreduce",
    "points.crosspred",
    "points.crossreduce",
    "Predict.matrix.cb.smooth",
    "ps",
    "smooth.construct.cb.smooth.spec",
    "summary.crossbasis",
    "summary.crosspred",
    "summary.crossreduce",
    "summary.onebasis",
    "vcov.crosspred",
    "vcov.crossreduce"
  ],
  "_datasets": [
    {
      "name": "chicagoNMMAPS",
      "title": "Daily Mortality Weather and Pollution Data for Chicago",
      "object": "chicagoNMMAPS",
      "class": [
        "data.frame"
      ],
      "fields": [
        "date",
        "time",
        "year",
        "month",
        "doy",
        "dow",
        "death",
        "cvd",
        "resp",
        "temp",
        "dptp",
        "rhum",
        "pm10",
        "o3"
      ],
      "rows": 5114,
      "table": true,
      "tojson": true
    },
    {
      "name": "drug",
      "title": "A Trial on the Effect of Time-Varying Doses of a Drug",
      "object": "drug",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "out",
        "sex",
        "day1.7",
        "day8.14",
        "day15.21",
        "day22.28"
      ],
      "rows": 200,
      "table": true,
      "tojson": true
    },
    {
      "name": "nested",
      "title": "Nested Case-Control Study with a Time-Varying Exposure and a Cancer Outcome",
      "object": "nested",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "case",
        "age",
        "riskset",
        "exp15",
        "exp20",
        "exp25",
        "exp30",
        "exp35",
        "exp40",
        "exp45",
        "exp50",
        "exp55",
        "exp60"
      ],
      "rows": 600,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "dlnm-package",
      "title": "Distributed Lag Non-linear Models (DLNM)",
      "topics": [
        "dlnm-package",
        "dlnm"
      ]
    },
    {
      "page": "cbPen",
      "title": "Generate Penalty Matrices for a DLNM",
      "topics": [
        "cbPen"
      ]
    },
    {
      "page": "chicagoNMMAPS",
      "title": "Daily Mortality Weather and Pollution Data for Chicago",
      "topics": [
        "chicagoNMMAPS"
      ]
    },
    {
      "page": "coef.crosspred",
      "title": "Model Coefficients and their (Co)Variance Matrix of a DLNM",
      "topics": [
        "coef.crosspred",
        "coef.crossreduce",
        "vcov.crosspred",
        "vcov.crossreduce"
      ]
    },
    {
      "page": "cr",
      "title": "Generate a Basis Matrix for Penalized Cubic Regression Splines",
      "topics": [
        "cr"
      ]
    },
    {
      "page": "crossbasis",
      "title": "Generate a Cross-Basis Matrix for a DLNM",
      "topics": [
        "crossbasis",
        "summary.crossbasis"
      ]
    },
    {
      "page": "crosspred",
      "title": "Generate Predictions for a DLNM",
      "topics": [
        "crosspred",
        "summary.crosspred"
      ]
    },
    {
      "page": "crossreduce",
      "title": "Reduce the Fit of a DLNM to One-Dimensional Summaries",
      "topics": [
        "crossreduce",
        "summary.crossreduce"
      ]
    },
    {
      "page": "drug",
      "title": "A Trial on the Effect of Time-Varying Doses of a Drug",
      "topics": [
        "drug"
      ]
    },
    {
      "page": "equalknots",
      "title": "Define Knots at Equally-Spaced Values",
      "topics": [
        "equalknots"
      ]
    },
    {
      "page": "exphist",
      "title": "Define Exposure Histories from an Exposure Profile",
      "topics": [
        "exphist"
      ]
    },
    {
      "page": "integer",
      "title": "Generate a Basis Matrix of Indicator Variables for Integer Values",
      "topics": [
        "integer"
      ]
    },
    {
      "page": "lin",
      "title": "Generate a Basis Matrix with a Variable as Linear",
      "topics": [
        "lin"
      ]
    },
    {
      "page": "logknots",
      "title": "Define Knots for Lag Space at Equally-Spaced Log-Values",
      "topics": [
        "logknots"
      ]
    },
    {
      "page": "nested",
      "title": "Nested Case-Control Study with a Time-Varying Exposure and a Cancer Outcome",
      "topics": [
        "nested"
      ]
    },
    {
      "page": "onebasis",
      "title": "Generate a Basis Matrix for Different Functions",
      "topics": [
        "mkbasis",
        "mklagbasis",
        "onebasis",
        "summary.onebasis"
      ]
    },
    {
      "page": "plot.crosspred",
      "title": "Plot Predictions for a DLNM",
      "topics": [
        "crossplot",
        "lines.crosspred",
        "plot.crosspred",
        "points.crosspred"
      ]
    },
    {
      "page": "plot.crossreduce",
      "title": "Plot Predictions for a Reduced DLNM",
      "topics": [
        "lines.crossreduce",
        "plot.crossreduce",
        "points.crossreduce"
      ]
    },
    {
      "page": "poly",
      "title": "Generate a Basis Matrix of Polynomials",
      "topics": [
        "poly"
      ]
    },
    {
      "page": "ps",
      "title": "Generate a Basis Matrix for P-Splines",
      "topics": [
        "ps"
      ]
    },
    {
      "page": "smooth.construct.cb.smooth.spec",
      "title": "Cross-Basis Spline Smooths for a DLNM",
      "topics": [
        "Predict.matrix.cb.smooth",
        "smooth.construct.cb.smooth.spec"
      ]
    },
    {
      "page": "strata",
      "title": "Generate a Basis Matrix of Indicator Variables",
      "topics": [
        "strata"
      ]
    },
    {
      "page": "thr",
      "title": "Generate a Basis Matrix of Linear Threshold Transformations",
      "topics": [
        "thr"
      ]
    }
  ],
  "_readme": "https://github.com/gasparrini/dlnm/raw/HEAD/README.md",
  "_rundeps": [
    "lattice",
    "Matrix",
    "mgcv",
    "nlme",
    "tsModel"
  ],
  "_vignettes": [
    {
      "source": "dlnmTS.Rnw",
      "filename": "dlnmTS.pdf",
      "title": "Distributed lag linear and non-linear models for time series data",
      "engine": "utils::Sweave",
      "headings": [
        "Preamble",
        "Data",
        "Example 1: a simple DLM",
        "Example 2: seasonal analysis",
        "Example 3: a bi-dimensional DLNM",
        "Example 4: reducing a DLNM",
        "Bibliography"
      ],
      "created": "2016-09-15 16:51:52",
      "modified": "2020-05-01 17:14:26",
      "commits": 3
    },
    {
      "source": "dlnmOverview.Rnw",
      "filename": "dlnmOverview.pdf",
      "title": "Distributed lag linear and non-linear models: the R the package dlnm",
      "engine": "utils::Sweave",
      "headings": [
        "Preamble",
        "Installation",
        "Methodology and applications",
        "Functions and data in the package dlnm",
        "Changes in the package dlnm",
        "Acknowledgements",
        "Bibliography"
      ],
      "created": "2016-09-15 16:51:52",
      "modified": "2021-10-07 10:13:13",
      "commits": 3
    },
    {
      "source": "dlnmExtended.Rnw",
      "filename": "dlnmExtended.pdf",
      "title": "Extension of the dlnm package",
      "engine": "utils::Sweave",
      "headings": [
        "Preamble",
        "Data",
        "The matrix of exposure histories",
        "Applications beyond time series",
        "Extended prediction summaries",
        "Applying user-defined functions",
        "A general tool for regression analysis",
        "Bibliography"
      ],
      "created": "2016-09-15 16:51:52",
      "modified": "2025-04-17 11:09:14",
      "commits": 3
    },
    {
      "source": "dlnmPenalized.Rnw",
      "filename": "dlnmPenalized.pdf",
      "title": "Penalized distributed lag linear and non-linear models",
      "engine": "utils::Sweave",
      "headings": [
        "Preamble",
        "Penalized DLMs and DLNMs",
        "Bibliography"
      ],
      "created": "2017-01-16 11:32:40",
      "modified": "2017-01-16 11:32:40",
      "commits": 1
    }
  ],
  "_score": 11.033762720303768,
  "_indexed": true,
  "_nocasepkg": "dlnm",
  "_universes": [
    "gasparrini"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.4.10",
      "date": "2026-06-09T08:30:43.000Z",
      "distro": "noble",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "cb43c575538994f5394c5145ac2b15548f86abf335382073477656f2e21cd980",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/27193586801"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.4.10",
      "date": "2026-06-09T08:30:39.000Z",
      "distro": "noble",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "a08ef21db7c39235c720c91c4ebcd8a5e4ee602b237ea122a7091f02179ef9ec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/27193586801"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.4.10",
      "date": "2026-06-09T08:30:27.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "7305b1218ee15acaf43b8eef11a3ca900e6ae3d0c47f2c580d117567647d46ee",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/27193586801"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.4.10",
      "date": "2026-06-09T08:30:29.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "b61cc52ee592a6a4e15826f7e196c4dc9a0d0dff56e5e7d29709e3b7e90d5711",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/27193586801"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.4.10",
      "date": "2026-06-09T08:30:38.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "4d3738be843ec26feb04f16643818b22122f9fd92e7498ac2d78b2a8a0c46a0b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/27193586801"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.4.10",
      "date": "2026-06-09T08:29:58.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "722dfec0a22dc2b0927569b3f7fec0d85c069b7f8b7022131ac82729f1c69a2b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/27193586801"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.4.10",
      "date": "2026-06-09T08:29:58.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "efcf65d239d02204ce74f934b8912c475816372ff4596ee453b022b65151068a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/27193586801"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.4.10",
      "date": "2026-06-09T08:30:16.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "0344434e618f1dd87b82cdaf0e8f75c467c8a3c67f14d3d9c383f7c53f73a901",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/27193586801"
    }
  ]
}