An Extension of 'Tidymodels' Supporting Offset Terms
Overview
Extend the 'tidymodels' ecosystem https://www.tidymodels.org/ to enable the creation of predictive models with offset terms. Models with offsets are most useful when working with count data or when fitting an adjustment model on top of an existing model with a prior expectation. The former situation is common in insurance where data is often weighted by exposures. The latter is common in life insurance where industry mortality tables are often used as a starting point for setting assumptions.
- Added support for additional named arguments passed to
stats::glm()inglm_offset()andglmnet::glmnet()inglmnet_offset(). - Updated the minimum required version of
xgboostto 3.0 and made behind-the-scenes changes to accomodate its updated API. - Added the
clipackage for warning and error messages.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-02
Show 2 earlier changesHide 2 earlier changes
- ERROR11 OK, 1 ERROR2026-04-25
- OK14 OK2026-03-10
Documentation
- Help pages
- 10 (2 internal)includes a package overview page
- Examples that run
- 100%7 run in a plain check (4 of them under a condition)
- Exported functions with examples
- 88%
- Documented parameters
- 100%
- Return-value docs
- 88%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 2
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
9 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/mattheaphy/offsetreg on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-03-23 · The repository has a site deploy workflow
pkgdown site last built 2026-03-23
Show all practicesHide 1 practice
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.2.0Latest
- RR 4.5.0 released · 2025-04-11
- 1.1.12025-03-02 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.1.02024-04-11 · diff ↗ ·
added 6 exports
boost_tree_offset, check_args, decision_tree_exposure, rpart_exposure, xgb_predict_offset, xgb_train_offset - 1.0.02024-01-23
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2024-01-23
- Total releases
- 4 / 2 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1
- Bundled data
- 2.9 KB / 1 file
- Download size
- 36 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("offsetreg")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.