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.
| Version: |
0.6 |
| Depends: |
R (≥ 3.0.0) |
| Suggests: |
whisker, SuppDists, brglm, brglm2, ggplot2, MASS, knitr, rmarkdown, testthat, numDeriv |
| Enhances: |
betareg (> 3.2-0), gnm |
| Published: |
2026-09-30 |
| DOI: |
10.32614/CRAN.package.enrichwith |
| Author: |
Ioannis Kosmidis [aut, cre] |
| Maintainer: |
Ioannis Kosmidis <ioannis.kosmidis at warwick.ac.uk> |
| BugReports: |
https://github.com/ikosmidis/enrichwith/issues |
| License: |
GPL-3 |
| URL: |
https://github.com/ikosmidis/enrichwith |
| NeedsCompilation: |
no |
| Citation: |
enrichwith citation info |
| Materials: |
README, NEWS |
| CRAN checks: |
enrichwith results |
Documentation:
Downloads:
Reverse dependencies:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=enrichwith
to link to this page.