enrichwith: Methods to Enrich R Objects with Extra Components

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.

Package details

AuthorIoannis Kosmidis [aut, cre]
MaintainerIoannis Kosmidis <ioannis.kosmidis@warwick.ac.uk>
LicenseGPL-3
Version0.5.0
URL https://github.com/ikosmidis/enrichwith
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("enrichwith")

Try the enrichwith package in your browser

Any scripts or data that you put into this service are public.

enrichwith documentation built on April 29, 2026, 5:08 p.m.