Skip to content

offsetreg

1.2.0Package record

An Extension of 'Tidymodels' Supporting Offset Terms

0packages depend
3.7Kdownloads / year
40.2%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.2.0
  • Added support for additional named arguments passed to stats::glm() in glm_offset() and glmnet::glmnet() in glmnet_offset().
  • Updated the minimum required version of xgboost to 3.0 and made behind-the-scenes changes to accomodate its updated API.
  • Added the cli package for warning and error messages.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.4 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 1.2.0
READMEYes · 441 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.2.0Citation fileNoWebsiteYes · pkgdown
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

3.7K
CRAN downloads in the past year
Rank #10,079 · ~10/day · ~311/mo
Daily download trend is not available in this view yet.
37030 days
1K90 days
3.7K1 year
Compare downloads with other packages →
Also on75 r2u3 autocran

Repository

3Stars
1Forks
1Open issues
0Open PRs
3Releases
95Commits
2Commit identities
95 commits · Last activity 2026-03-23 · 0% stars, 30d
Responsiveness
How these are sampled
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

2025-02-22 · 22026-07-07 · 3
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-03-23 · The repository has a site deploy workflow

pkgdown site last built 2026-03-23

Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)

Installing offsetreg adds 35 packages (16 with compiled code, 30 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, isoband 1.5 MB.

Depends (1)
R >= 4.1
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 1.0.0 (2024), Copyright holder
Releases (4)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.0Latest
    record
    2026-03-23 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.1.1
    record
    2025-03-02 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.1.0
    record
    2024-04-11 · diff ↗ ·
    added 6 exports
    boost_tree_offset, check_args, decision_tree_exposure, rpart_exposure, xgb_predict_offset, xgb_train_offset
  • 1.0.0
    record
    2024-01-23
  • R
    R 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")
Heaphy, M. (2026). offsetreg: An Extension of 'Tidymodels' Supporting Offset Terms (Version 1.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for offsetreg version 1.2.0 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy