Skip to content

enrichwith

Methods to Enrich R Objects with Extra Components

v0.4.0 · Sep 8, 2025 · GPL-3

Description

Provides the "enrich" method to enrich list-like R objects with new, relevant components. The current version has methods for enriching objects of class 'family', 'link-glm', 'lm', 'glm' and 'betareg'. The resulting objects preserve their class, so all methods associated with them still apply. The package also provides the 'enriched_glm' function that has the same interface as 'glm' but results in objects of class 'enriched_glm'. In addition to the usual components in a `glm` object, 'enriched_glm' objects carry an object-specific simulate method and functions to compute the scores, the observed and expected information matrix, the first-order bias, as well as model densities, probabilities, and quantiles at arbitrary parameter values. The package can also be used to produce customizable source code templates for the structured implementation of methods to compute new components and enrich arbitrary objects.

Downloads

8.6K

Last 30 days

1331st

27K

Last 90 days

117.4K

Last year

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

CRAN Check Status

14 OK
Show all 14 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-macos-arm64 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)

depends

imports

suggests

Dependency Network

Dependencies Reverse dependencies mbrglm brglm2 hdbayes psc WeightIt enrichwith

Version History

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