{
  "_id": "6a1efa33b401979e73418543",
  "Package": "cirls",
  "Title": "Constrained Iteratively Reweighted Least Squares",
  "Version": "0.4.0-6",
  "Authors@R": "c( \nperson(given = \"Pierre\",\nfamily = \"Masselot\",\nrole = c(\"aut\", \"cre\", \"cph\"),\nemail = \"pierre.masselot@lshtm.ac.uk\",\ncomment = c(ORCID = \"0000-0002-7326-1290\")),\nperson(given = \"Antonio\",\nfamily = \"Gasparrini\",\nrole = c(\"aut\"),\nemail = \"antonio.gasparrini@lshtm.ac.uk\",\ncomment = c(ORCID = \"0000-0002-2271-3568\"))\n)",
  "Description": "Fitting and inference functions for generalized linear\nmodels with constrained coefficients.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE, old_usage = TRUE)",
  "Config/testthat/edition": "3",
  "URL": "https://github.com/PierreMasselot/cirls",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "make",
  "Repository": "https://pierremasselot.r-universe.dev",
  "Date/Publication": "2026-05-18 14:51:56 UTC",
  "RemoteUrl": "https://github.com/pierremasselot/cirls",
  "RemoteRef": "HEAD",
  "RemoteSha": "48a9339776313a84c7c1b4c49f5fb6e729d2f3d5",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-18 15:39:01 UTC",
    "User": "root"
  },
  "Author": "Pierre Masselot [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-7326-1290>),\nAntonio Gasparrini [aut] (ORCID:\n<https://orcid.org/0000-0002-2271-3568>)",
  "Maintainer": "Pierre Masselot <pierre.masselot@lshtm.ac.uk>",
  "MD5sum": "feb4353ea665bad8df67447ce6c91edc",
  "_user": "pierremasselot",
  "_type": "src",
  "_file": "cirls_0.4.0-6.tar.gz",
  "_fileid": "7b9a4b9f0f3a0c241cac3ce48ac3d77fdc8e0441dee8631d60b261143c20b5b8",
  "_filesize": 427694,
  "_sha256": "7b9a4b9f0f3a0c241cac3ce48ac3d77fdc8e0441dee8631d60b261143c20b5b8",
  "_created": "2026-05-18T15:39:01.000Z",
  "_published": "2026-06-02T15:43:47.128Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79111452480,
      "time": 152,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7062413962"
    },
    {
      "job": 79111453113,
      "time": 150,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7062413224"
    },
    {
      "job": 79111453085,
      "time": 145,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7062449698"
    },
    {
      "job": 79111453195,
      "time": 108,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7062401828"
    },
    {
      "job": 79111451878,
      "time": 204,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7062351076"
    },
    {
      "job": 79111451656,
      "time": 100,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7362656157"
    },
    {
      "job": 79111452695,
      "time": 121,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7062400881"
    },
    {
      "job": 79111453102,
      "time": 128,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7062405023"
    },
    {
      "job": 79111452874,
      "time": 120,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7062400447"
    }
  ],
  "_buildurl": "https://github.com/r-universe/pierremasselot/actions/runs/26043585589",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/pierremasselot/cirls",
  "_commit": {
    "id": "48a9339776313a84c7c1b4c49f5fb6e729d2f3d5",
    "author": "PierreMasselot <pierre.masselot@lshtm.ac.uk>",
    "committer": "PierreMasselot <pierre.masselot@lshtm.ac.uk>",
    "message": "V 0.4.0-6 New reduceCons\n\n## Changes\n- `checkCmat` has been replaced by `reduceCons` a more comprehensive function to reduce constraints, removing redundant and underlying equality constraints. See `?reduceCons`.\n- `reduceCons` can now be controlled from `cirls.control`.\n- Changed default of `dim` when constraining crossbases. Now defaults to `var` whatever the specification.\n- Some changes to examples for better clarity.\n\n## Bug fixed\n- `boundConstr.crossbasis` was sometimes removing constraints.\n- Bounds for constraints on crossbasis, were sometimes forced to 0 even when the initial bounds were different.\n",
    "time": 1779115916
  },
  "_maintainer": {
    "name": "Pierre Masselot",
    "email": "pierre.masselot@lshtm.ac.uk",
    "login": "pierremasselot",
    "description": "",
    "uuid": 43249952,
    "orcid": "0000-0002-7326-1290"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "quadprog",
      "role": "Imports"
    },
    {
      "package": "osqp",
      "role": "Imports"
    },
    {
      "package": "coneproj",
      "role": "Imports"
    },
    {
      "package": "TruncatedNormal",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "limSolve",
      "role": "Imports"
    },
    {
      "package": "dlnm",
      "role": "Suggests"
    },
    {
      "package": "splines",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "pierremasselot",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-20",
      "n": 2
    },
    {
      "week": "2025-32",
      "n": 1
    },
    {
      "week": "2025-37",
      "n": 3
    },
    {
      "week": "2025-39",
      "n": 2
    },
    {
      "week": "2025-44",
      "n": 2
    },
    {
      "week": "2026-03",
      "n": 4
    },
    {
      "week": "2026-04",
      "n": 4
    },
    {
      "week": "2026-10",
      "n": 1
    },
    {
      "week": "2026-17",
      "n": 2
    },
    {
      "week": "2026-19",
      "n": 4
    },
    {
      "week": "2026-21",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.4.0",
      "date": "2025-09-12"
    }
  ],
  "_stars": 2,
  "_contributors": [
    {
      "user": "pierremasselot",
      "count": 60,
      "uuid": 43249952
    },
    {
      "user": "gasparrini",
      "count": 11,
      "uuid": 13588250
    }
  ],
  "_userbio": {
    "uuid": 43249952,
    "type": "user",
    "name": "Pierre Masselot"
  },
  "_downloads": {
    "count": 493,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cirls"
  },
  "_devurl": "https://github.com/pierremasselot/cirls",
  "_searchresults": 2,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/cirls.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/pierremasselot/cirls",
  "_realowner": "pierremasselot",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.3.1",
      "date": "2024-09-12"
    },
    {
      "version": "0.4.0",
      "date": "2025-09-12"
    }
  ],
  "_exports": [
    "boundConstr",
    "buildCmat",
    "cirls.control",
    "cirls.fit",
    "edf",
    "reduceCons",
    "shapeConstr",
    "simulCoef",
    "uncons",
    "zerosumConstr"
  ],
  "_datasets": [
    {
      "name": "fgl",
      "title": "Measurement of forensic glass fragments",
      "object": "fgl",
      "class": [
        "data.frame"
      ],
      "fields": [
        "RI",
        "Na",
        "Mg",
        "Al",
        "Si",
        "K",
        "Ca",
        "Ba",
        "Fe",
        "type"
      ],
      "rows": 214,
      "table": true,
      "tojson": true
    },
    {
      "name": "london",
      "title": "Daily mortality, temperature and pollution data in London",
      "object": "london",
      "class": [
        "data.frame"
      ],
      "fields": [
        "date",
        "doy",
        "dow",
        "death",
        "age0_64",
        "age65_74",
        "age75_84",
        "age85plus",
        "tmax",
        "tmean",
        "tmin",
        "pm10",
        "o3",
        "co"
      ],
      "rows": 2922,
      "table": true,
      "tojson": true
    },
    {
      "name": "warming",
      "title": "Global temperature anomaly",
      "object": "warming",
      "class": [
        "data.frame"
      ],
      "fields": [
        "year",
        "decade",
        "anomaly"
      ],
      "rows": 166,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "cirls-package",
      "title": "cirls: Constrained Iteratively Reweighted Least Squares",
      "topics": [
        "cirls-package",
        "cirls"
      ]
    },
    {
      "page": "boundConstr",
      "title": "Boundary constraints",
      "topics": [
        "bound",
        "boundConstr",
        "boundConstr.bs",
        "boundConstr.default",
        "boundConstr.factor",
        "boundConstr.ns",
        "boundConstr.onebasis",
        "boundConstr.ps",
        "boundConstr.strata"
      ]
    },
    {
      "page": "shapeConstr.crossbasis",
      "title": "Constraints for distributed lag linear and non-linear models",
      "topics": [
        "boundConstr.crossbasis",
        "shapeConstr.crossbasis"
      ]
    },
    {
      "page": "buildCmat",
      "title": "Build a constraint matrix",
      "topics": [
        "buildCmat"
      ]
    },
    {
      "page": "cirls.control",
      "title": "Parameters controlling CIRLS fitting",
      "topics": [
        "cirls.control"
      ]
    },
    {
      "page": "cirls.fit",
      "title": "Constrained Iteratively Reweighted Least-Squares algorithm",
      "topics": [
        "cirls.fit"
      ]
    },
    {
      "page": "edf",
      "title": "Expected degrees of freedom",
      "topics": [
        "edf"
      ]
    },
    {
      "page": "fgl",
      "title": "Measurement of forensic glass fragments",
      "topics": [
        "fgl"
      ]
    },
    {
      "page": "logLik.cirls",
      "title": "Extract Log-Likelihood",
      "topics": [
        "logLik.cirls"
      ]
    },
    {
      "page": "london",
      "title": "Daily mortality, temperature and pollution data in London",
      "topics": [
        "london"
      ]
    },
    {
      "page": "reduceCons",
      "title": "Reduce a set of linear constraints",
      "topics": [
        "reduceCons"
      ]
    },
    {
      "page": "shapeConstr",
      "title": "Shape constraints",
      "topics": [
        "shape",
        "shapeConstr",
        "shapeConstr.bs",
        "shapeConstr.default",
        "shapeConstr.factor",
        "shapeConstr.lin",
        "shapeConstr.ns",
        "shapeConstr.onebasis",
        "shapeConstr.ps",
        "shapeConstr.strata"
      ]
    },
    {
      "page": "simulCoef",
      "title": "Methods for inference on the coefficients of a 'cirls' object.",
      "topics": [
        "confint.cirls",
        "simulCoef",
        "vcov.cirls"
      ]
    },
    {
      "page": "uncons",
      "title": "Unconstrained model",
      "topics": [
        "uncons"
      ]
    },
    {
      "page": "warming",
      "title": "Global temperature anomaly",
      "topics": [
        "warming"
      ]
    },
    {
      "page": "zerosumConstr",
      "title": "Specify Zero-sum constraints",
      "topics": [
        "zerosum",
        "zerosumConstr"
      ]
    }
  ],
  "_readme": "https://github.com/pierremasselot/cirls/raw/HEAD/README.md",
  "_rundeps": [
    "alabama",
    "cli",
    "coneproj",
    "lattice",
    "limSolve",
    "lpSolve",
    "MASS",
    "Matrix",
    "nleqslv",
    "numDeriv",
    "osqp",
    "qrng",
    "quadprog",
    "Rcpp",
    "RcppArmadillo",
    "S7",
    "spacefillr",
    "TruncatedNormal"
  ],
  "_score": 4.041392685158225,
  "_indexed": true,
  "_nocasepkg": "cirls",
  "_universes": [
    "pierremasselot"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0-6",
      "date": "2026-05-18T15:41:15.000Z",
      "distro": "noble",
      "commit": "48a9339776313a84c7c1b4c49f5fb6e729d2f3d5",
      "fileid": "52c2d64327d7ae133c5ac378794f1b38ef0fbe4d7b1e05d7f0dd4dd80b6742ed",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pierremasselot/actions/runs/26043585589"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.0-6",
      "date": "2026-05-18T15:41:13.000Z",
      "distro": "noble",
      "commit": "48a9339776313a84c7c1b4c49f5fb6e729d2f3d5",
      "fileid": "65815905be56fbfeb8ef585c0d094decd5ed1ca930eef4597bd626619f9d9d97",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pierremasselot/actions/runs/26043585589"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0-6",
      "date": "2026-05-18T15:42:51.000Z",
      "commit": "48a9339776313a84c7c1b4c49f5fb6e729d2f3d5",
      "fileid": "2eb197c709d8fcc19fc619716563c75159cd1921859052a20d993bbd8e5b0a56",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pierremasselot/actions/runs/26043585589"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.0-6",
      "date": "2026-05-18T15:40:56.000Z",
      "commit": "48a9339776313a84c7c1b4c49f5fb6e729d2f3d5",
      "fileid": "621b451956d0f9f13ee593a0fa13799578d2b00a526ce3d77d0a7466ed320de4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pierremasselot/actions/runs/26043585589"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0-6",
      "date": "2026-05-18T15:40:22.000Z",
      "commit": "48a9339776313a84c7c1b4c49f5fb6e729d2f3d5",
      "fileid": "ad3a892b49ffc5000ab57442fa0c09061a96e62924344fd934a8ad6e03ce5a58",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pierremasselot/actions/runs/26043585589"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0-6",
      "date": "2026-05-18T15:40:32.000Z",
      "commit": "48a9339776313a84c7c1b4c49f5fb6e729d2f3d5",
      "fileid": "de79a2716c3f18f0eadfd1cb1508469ac11532eed9e7d0b67b8c1b8257034d82",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pierremasselot/actions/runs/26043585589"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4.0-6",
      "date": "2026-05-18T15:40:20.000Z",
      "commit": "48a9339776313a84c7c1b4c49f5fb6e729d2f3d5",
      "fileid": "127fe28b2f852cd71c332c09cb6e86ad92b76f7239fbbb2c68b3f45303130b57",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pierremasselot/actions/runs/26043585589"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0-6",
      "date": "2026-06-02T15:43:27.000Z",
      "commit": "48a9339776313a84c7c1b4c49f5fb6e729d2f3d5",
      "fileid": "0c11aa4c373a0bb001b3ecadc688c60b99defa36f69cfc9580027b3c2cfca6f8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/pierremasselot/actions/runs/26043585589"
    }
  ]
}