{
  "_id": "6a104d0cacfb0bcc41ca0510",
  "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-05-10 07:08:45 UTC",
    "User": "root"
  },
  "MD5sum": "3563d5a6607ea1ddb69d157444b4d982",
  "_user": "gasparrini",
  "_type": "src",
  "_file": "dlnm_2.4.10.tar.gz",
  "_fileid": "265bbf1187b03ff21bc0fb0249fcbaaa3faa1c27f162cf9524e76649134f8c1d",
  "_filesize": 1233562,
  "_sha256": "265bbf1187b03ff21bc0fb0249fcbaaa3faa1c27f162cf9524e76649134f8c1d",
  "_created": "2026-05-10T07:08:45.000Z",
  "_published": "2026-05-22T12:33:16.322Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77380115667,
      "time": 135,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6901852613"
    },
    {
      "job": 77380115812,
      "time": 142,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6901853349"
    },
    {
      "job": 77380115107,
      "time": 151,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6901852084"
    },
    {
      "job": 77380115530,
      "time": 148,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6901850692"
    },
    {
      "job": 77380114784,
      "time": 218,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6901836983"
    },
    {
      "job": 77380114725,
      "time": 93,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7160554868"
    },
    {
      "job": 77380115101,
      "time": 101,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6901848509"
    },
    {
      "job": 77380115699,
      "time": 92,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6901847623"
    },
    {
      "job": 77380115857,
      "time": 110,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6901849608"
    }
  ],
  "_buildurl": "https://github.com/r-universe/gasparrini/actions/runs/25622497606",
  "_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",
    "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": 94,
  "_contributors": [
    {
      "user": "gasparrini",
      "count": 8,
      "uuid": 13588250
    }
  ],
  "_userbio": {
    "uuid": 13588250,
    "type": "user",
    "name": "Antonio Gasparrini"
  },
  "_downloads": {
    "count": 2690,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/dlnm"
  },
  "_mentions": 209,
  "_devurl": "https://github.com/gasparrini/dlnm",
  "_searchresults": 864,
  "_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": [],
      "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": [],
      "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": [],
      "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": [],
      "created": "2017-01-16 11:32:40",
      "modified": "2017-01-16 11:32:40",
      "commits": 1
    }
  ],
  "_score": 11.020635113456585,
  "_indexed": true,
  "_nocasepkg": "dlnm",
  "_universes": [
    "gasparrini"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.4.10",
      "date": "2026-05-10T07:10:55.000Z",
      "distro": "noble",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "11c4b20ec3d46b19eb1c9589fff5f8f99c00ab947bbe3dc90d37985ede252521",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/25622497606"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.4.10",
      "date": "2026-05-10T07:11:03.000Z",
      "distro": "noble",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "d40d03e9a2231c204119925a879043660360a804f0bd6ec2fc230a87b00527d8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/25622497606"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.4.10",
      "date": "2026-05-10T07:11:01.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "c5841eaba432c15a9c148dd0f75d34955223464d64c16e03bf8c9a73df94f5f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/25622497606"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.4.10",
      "date": "2026-05-10T07:10:48.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "22911254c44ff2cbc03c76a6970a5d6cb1eabfad45f19696049857ab0fbf89e0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/25622497606"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.4.10",
      "date": "2026-05-10T07:10:15.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "bda8b9207b0d4635fcf0dbe3b59a7ddd3c2bfadcb53e91acb28445cae64e6dd5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/25622497606"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.4.10",
      "date": "2026-05-10T07:10:07.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "f8ebd82a797dc50a13204499aabaf0d4cbb4c75c77845007838bbb7f22280bda",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/25622497606"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.4.10",
      "date": "2026-05-10T07:10:23.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "f8f484fa413accb7b39d5002d0e55f0f22fd746c589438fd382672027459e83b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/25622497606"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.4.10",
      "date": "2026-05-22T12:33:01.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "8fafe699f1c03beb036433900ccc1f54e06d04d28e5c2fc09dd007afc4b7ed56",
      "status": "success",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/25622497606"
    }
  ]
}