{
  "_id": "6ac64645f511ae58c09a94b3",
  "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-10-07 10:44:31 UTC",
    "User": "root"
  },
  "_user": "gasparrini",
  "_type": "src",
  "_file": "dlnm_2.4.10.tar.gz",
  "_fileid": "https://r2.ropensci.org/192cfa493d33dba8a4d4a000a83de9704223310614dfc8022c4ef5f17ff38a67",
  "_filesize": 1230849,
  "_sha256": "192cfa493d33dba8a4d4a000a83de9704223310614dfc8022c4ef5f17ff38a67",
  "_expires": "2027-01-15T13:16:51.000Z",
  "_created": "2026-10-07T10:44:31.000Z",
  "_published": "2026-10-07T13:16:53.213Z",
  "_buildurl": "https://github.com/r-universe/gasparrini/actions/runs/37609050215",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 112752861730,
      "time": 140,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11476970662"
    },
    {
      "job": 112752861611,
      "time": 142,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11477350979"
    },
    {
      "job": 112752861630,
      "time": 92,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11484044201"
    },
    {
      "job": 112752861550,
      "time": 106,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11484532067"
    },
    {
      "job": 112751706999,
      "time": 187,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11476631703"
    },
    {
      "job": 112752861499,
      "time": 85,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11477140926"
    },
    {
      "job": 112752861757,
      "time": 82,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11477430677"
    },
    {
      "job": 112752861578,
      "time": 93,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11476292795"
    },
    {
      "job": 112752861702,
      "time": 99,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11476622031"
    }
  ],
  "_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
  },
  "_distro": "resolute",
  "_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": 6,
  "_updates": [],
  "_tags": [],
  "_stars": 99,
  "_contributors": [
    {
      "user": "gasparrini",
      "count": 8,
      "uuid": 13588250
    }
  ],
  "_userbio": {
    "uuid": 13588250,
    "type": "user",
    "name": "Antonio Gasparrini",
    "followers": 386
  },
  "_downloads": {
    "count": 2828,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/dlnm"
  },
  "_mentions": 209,
  "_devurl": "https://github.com/gasparrini/dlnm",
  "_searchresults": 1280,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/dlnm.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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.110627070137568,
  "_indexed": true,
  "_nocasepkg": "dlnm",
  "_universes": [
    "gasparrini"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.4.10",
      "date": "2026-10-07T10:46:44.000Z",
      "distro": "resolute",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "https://r2.ropensci.org/6fa44d3510f26a083793305bcdac7425fd4158df1f19d5f66b779bee347ba7b1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/37609050215"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2.4.10",
      "date": "2026-10-07T10:46:59.000Z",
      "distro": "resolute",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "https://r2.ropensci.org/5c4a6fa627e261128b45e46e6210a04d9709da40f3960f5a5ea63f05579ee504",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/37609050215"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.4.10",
      "date": "2026-10-07T13:15:54.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "https://r2.ropensci.org/9866a81c2b7879aca4ce80425e32b7a38f335f8308ed47d2e4b3164294a44ed5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/37609050215"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "2.4.10",
      "date": "2026-10-07T13:15:10.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "https://r2.ropensci.org/a5745dbc7fbad85cf1ce83ded54bd622a4b1f9c6441dace50a435b37c4e45bf2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/37609050215"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.4.10",
      "date": "2026-10-07T10:46:25.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "https://r2.ropensci.org/2b508b102e729eb184080a47f99a8b7670fde4d76061bbd8b9b99cfb21091c5f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/37609050215"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.4.10",
      "date": "2026-10-07T10:45:52.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "https://r2.ropensci.org/5119730f4027dd79be763b6c4d4d1dfcb824138430c973046511fff89f0ef065",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/37609050215"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.4.10",
      "date": "2026-10-07T10:45:57.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "https://r2.ropensci.org/4c1d1bd49c5c700684ea27fd4fdb836722f95485c6b049f81e585c1cd5f3776d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/37609050215"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2.4.10",
      "date": "2026-10-07T10:45:58.000Z",
      "commit": "18ed5d047b0be41c05fc414d2640b12994b53d73",
      "fileid": "https://r2.ropensci.org/fada0afcbeeac5a6bd7492d39d8ac3599e0438cf6ffa2aa25b237f7d134d128d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gasparrini/actions/runs/37609050215"
    }
  ]
}