Skip to content

enrichwith

Methods to Enrich R Objects with Extra Components

v0.5.0 · Apr 29, 2026 · GPL-3

Description

Provides the "enrich()" method for augmenting list-like R objects with additional, model-specific components. Methods are currently available for objects of class "family", "link-glm", "lm", "glm", and "betareg". Enriched objects retain their original class and remain compatible with existing methods. For example, enriching a "glm" object produces an "enriched_glm" object that also inherits from "glm". In addition to the standard components, the "enriched_glm" object includes methods for simulation and functions to compute scores, observed and expected information matrices, first-order bias, and other model quantities such as densities, probabilities, and quantiles, which can be evaluated at use-supplied parameter values. The package also provides tools for generating customizable source code templates for the structured implementation of methods to compute new components and enrich arbitrary objects.

Downloads

11K

Last 30 days

1168th

33.8K

Last 90 days

135.2K

Last year

Trend: -13.5% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (5)

suggests

Dependency Network

Dependencies Reverse dependencies brglm2 hdbayes psc twoPhaseGAS WeightIt enrichwith

Version History

13 tracked
updated 0.5.0 ← 0.4.0 diff Apr 29, 2026
new 0.4.0 Mar 10, 2026
updated 0.4.0 ← 0.3.1 diff Sep 7, 2025
updated 0.3.1 ← 0.3 diff Jan 9, 2020
updated 0.3 ← 0.2 diff Oct 13, 2019
updated 0.2 ← 0.1.1 diff Jan 10, 2019
updated 0.1.1 ← 0.1 diff May 3, 2018
updated 0.1 ← 0.0.5 diff Nov 5, 2017
updated 0.0.5 ← 0.0.4 diff Oct 7, 2017
updated 0.0.4 ← 0.0.3 diff May 11, 2017
updated 0.0.3 ← 0.0.2 diff Mar 6, 2017
updated 0.0.2 ← 0.0.1 diff Sep 2, 2016
new 0.0.1 Aug 7, 2016