{
  "_id": "6a10ae12acfb0bcc41cc1400",
  "Package": "offsetreg",
  "Title": "An Extension of 'Tidymodels' Supporting Offset Terms",
  "Version": "1.2.0",
  "Authors@R": "person(\"Matt\", \"Heaphy\", email = \"mattrmattrs@gmail.com\", role = c(\"aut\", \"cre\", \"cph\"))",
  "Maintainer": "Matt Heaphy <mattrmattrs@gmail.com>",
  "Description": "Extend the 'tidymodels' ecosystem\n<https://www.tidymodels.org/> to enable the creation of\npredictive models with offset terms. Models with offsets are\nmost useful when working with count data or when fitting an\nadjustment model on top of an existing model with a prior\nexpectation. The former situation is common in insurance where\ndata is often weighted by exposures. The latter is common in\nlife insurance where industry mortality tables are often used\nas a starting point for setting assumptions.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/mattheaphy/offsetreg/,\nhttps://mattheaphy.github.io/offsetreg/",
  "BugReports": "https://github.com/mattheaphy/offsetreg/issues",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://mattheaphy.r-universe.dev",
  "Date/Publication": "2026-03-23 10:40:09 UTC",
  "RemoteUrl": "https://github.com/mattheaphy/offsetreg",
  "RemoteRef": "HEAD",
  "RemoteSha": "9b6840c1abfdad159d24ccddeaa30eadbdbd624e",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-22 18:57:10 UTC",
    "User": "root"
  },
  "Author": "Matt Heaphy [aut, cre, cph]",
  "MD5sum": "b092b892489bab46a318095f692271d9",
  "_user": "mattheaphy",
  "_type": "src",
  "_file": "offsetreg_1.2.0.tar.gz",
  "_fileid": "3db93f4a56c51c55018f43c66b0c7087cd5b2ca0fd9ff43924bc7d40617a3120",
  "_filesize": 154953,
  "_sha256": "3db93f4a56c51c55018f43c66b0c7087cd5b2ca0fd9ff43924bc7d40617a3120",
  "_created": "2026-05-22T18:57:10.000Z",
  "_published": "2026-05-22T19:27:14.309Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77444076251,
      "time": 157,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7168291279"
    },
    {
      "job": 77444076235,
      "time": 165,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168294146"
    },
    {
      "job": 77444076296,
      "time": 105,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7168677140"
    },
    {
      "job": 77444076223,
      "time": 140,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168529669"
    },
    {
      "job": 77443106759,
      "time": 234,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168166911"
    },
    {
      "job": 77444076258,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168280311"
    },
    {
      "job": 77444076289,
      "time": 127,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7168283859"
    },
    {
      "job": 77444076287,
      "time": 118,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7168275094"
    },
    {
      "job": 77444076294,
      "time": 100,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168270151"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mattheaphy/actions/runs/26279382441",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/mattheaphy/offsetreg",
  "_commit": {
    "id": "9b6840c1abfdad159d24ccddeaa30eadbdbd624e",
    "author": "Matt Heaphy <32379086+mattheaphy@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #11 from mattheaphy/glm-args\n\noffsetreg 1.2.0",
    "time": 1774262409
  },
  "_maintainer": {
    "name": "Matt Heaphy",
    "email": "mattrmattrs@gmail.com"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1",
      "role": "Depends"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "generics",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "parsnip",
      "version": ">= 1.3.0",
      "role": "Imports"
    },
    {
      "package": "poissonreg",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "broom",
      "role": "Suggests"
    },
    {
      "package": "glmnet",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "recipes",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rpart",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tune",
      "role": "Suggests"
    },
    {
      "package": "workflows",
      "role": "Suggests"
    },
    {
      "package": "rsample",
      "role": "Suggests"
    },
    {
      "package": "xgboost",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "mattheaphy",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-12",
      "n": 1
    },
    {
      "week": "2026-13",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v1.2.0",
      "date": "2026-03-23"
    }
  ],
  "_stars": 3,
  "_contributors": [
    {
      "user": "mattheaphy",
      "count": 93,
      "uuid": 32379086
    },
    {
      "user": "topepo",
      "count": 2,
      "uuid": 5731043
    }
  ],
  "_userbio": {
    "uuid": 32379086,
    "type": "user",
    "name": "Matt Heaphy",
    "description": "Uncertainty enthusiast and actuary.\r\n(he/him)"
  },
  "_downloads": {
    "count": 512,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/offsetreg"
  },
  "_devurl": "https://github.com/mattheaphy/offsetreg",
  "_pkgdown": "https://mattheaphy.github.io/offsetreg/",
  "_searchresults": 7,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/offsetreg.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/mattheaphy/offsetreg",
  "_realowner": "mattheaphy",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2024-01-23"
    },
    {
      "version": "1.1.0",
      "date": "2024-04-11"
    },
    {
      "version": "1.1.1",
      "date": "2025-03-02"
    },
    {
      "version": "1.2.0",
      "date": "2026-03-23"
    }
  ],
  "_exports": [
    "boost_tree_offset",
    "check_args",
    "decision_tree_exposure",
    "glm_offset",
    "glmnet_offset",
    "min_grid",
    "poisson_reg_offset",
    "rpart_exposure",
    "translate",
    "xgb_predict_offset",
    "xgb_train_offset"
  ],
  "_datasets": [
    {
      "name": "us_deaths",
      "title": "United States Deaths 2011-2020",
      "object": "us_deaths",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "gender",
        "age_group",
        "year",
        "deaths",
        "population",
        "qx"
      ],
      "rows": 140,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "boost_tree_offset",
      "title": "Boosted Poisson Trees with Offsets",
      "topics": [
        "boost_tree_offset"
      ]
    },
    {
      "page": "decision_tree_exposure",
      "title": "Poisson Decision Trees with Exposures",
      "topics": [
        "decision_tree_exposure"
      ]
    },
    {
      "page": "glm_offset",
      "title": "Fit Generalized Linear Models with an Offset",
      "topics": [
        "glm_offset"
      ]
    },
    {
      "page": "glmnet_offset",
      "title": "Fit Penalized Generalized Linear Models with an Offset",
      "topics": [
        "glmnet_offset"
      ]
    },
    {
      "page": "poisson_reg_offset",
      "title": "Poisson regression models with offsets",
      "topics": [
        "poisson_reg_offset"
      ]
    },
    {
      "page": "rpart_exposure",
      "title": "Poisson Recursive Partitioning and Regression Trees with Exposures",
      "topics": [
        "rpart_exposure"
      ]
    },
    {
      "page": "us_deaths",
      "title": "United States Deaths 2011-2020",
      "topics": [
        "us_deaths"
      ]
    },
    {
      "page": "xgb_train_offset",
      "title": "Boosted Poisson Trees with Offsets via 'xgboost'",
      "topics": [
        "xgb_predict_offset",
        "xgb_train_offset"
      ]
    }
  ],
  "_readme": "https://github.com/mattheaphy/offsetreg/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "globals",
    "glue",
    "gtable",
    "hardhat",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "parsnip",
    "pillar",
    "pkgconfig",
    "poissonreg",
    "prettyunits",
    "purrr",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "sparsevctrs",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "usage.Rmd",
      "filename": "usage.html",
      "title": "When to use offsetreg",
      "engine": "knitr::rmarkdown",
      "headings": [
        "When offsetreg is not necessary",
        "Offsets supported in model formulas: glm()",
        "Offsets not supported in model formulas: glmnet()",
        "When offsetreg is necessary",
        "Using recipe() when offsets cannot be specified in a formula",
        "Resampling when offsets cannot be specified in a formula"
      ],
      "created": "2024-04-04 13:23:32",
      "modified": "2024-04-04 13:23:32",
      "commits": 1
    }
  ],
  "_score": 4.477121254719663,
  "_indexed": true,
  "_nocasepkg": "offsetreg",
  "_universes": [
    "mattheaphy"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.0",
      "date": "2026-05-22T19:03:57.000Z",
      "distro": "noble",
      "commit": "9b6840c1abfdad159d24ccddeaa30eadbdbd624e",
      "fileid": "4074dd9c709e8179526019d1a2133c24a55798dbd813d1ddc554084f28b146e8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattheaphy/actions/runs/26279382441"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.0",
      "date": "2026-05-22T19:04:06.000Z",
      "distro": "noble",
      "commit": "9b6840c1abfdad159d24ccddeaa30eadbdbd624e",
      "fileid": "ded3904d9639cdb43ea7071797542085fe0f78820947d65c68db9bf8a1feed0e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattheaphy/actions/runs/26279382441"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.0",
      "date": "2026-05-22T19:26:31.000Z",
      "commit": "9b6840c1abfdad159d24ccddeaa30eadbdbd624e",
      "fileid": "9e097b18e71fed2b39428b0bfa86c6b056ead0c6a72784d1ba2f82d5f1e20eec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattheaphy/actions/runs/26279382441"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.0",
      "date": "2026-05-22T19:17:25.000Z",
      "commit": "9b6840c1abfdad159d24ccddeaa30eadbdbd624e",
      "fileid": "33c58c9dd3ab51718a93145cea9b093fb3e85ecc33559687fa90e2480a32e98c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattheaphy/actions/runs/26279382441"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.0",
      "date": "2026-05-22T19:03:56.000Z",
      "commit": "9b6840c1abfdad159d24ccddeaa30eadbdbd624e",
      "fileid": "a56228e29225ac87ddc15b5217ed18067889362545dee52adac2e2b10c726ba4",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mattheaphy/actions/runs/26279382441"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-05-22T19:03:22.000Z",
      "commit": "9b6840c1abfdad159d24ccddeaa30eadbdbd624e",
      "fileid": "8028e648f15a071a29130d61457e59d87730ba5b14fd938b7457a63f7a2cccfb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattheaphy/actions/runs/26279382441"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-05-22T19:02:49.000Z",
      "commit": "9b6840c1abfdad159d24ccddeaa30eadbdbd624e",
      "fileid": "4989d76e3ea463bff0c146f0255870c6e5c5faa941668c2d8cad45da1a5bc382",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattheaphy/actions/runs/26279382441"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-05-22T19:02:36.000Z",
      "commit": "9b6840c1abfdad159d24ccddeaa30eadbdbd624e",
      "fileid": "caa482f67c3dcd7e1bd47895c14ef3e2b021fda71fc8b7cb48aa0bbc4497c849",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattheaphy/actions/runs/26279382441"
    }
  ]
}