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.5.0 |
| Depends: | R (≥ 3.0.0) |
| Suggests: | whisker, SuppDists, brglm, brglm2, ggplot2, MASS, knitr, rmarkdown, testthat, numDeriv |
| Enhances: | betareg, gnm, stats |
| Published: | 2026-04-29 |
| 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 |
| Reference manual: | enrichwith.html , enrichwith.pdf |
| Vignettes: |
enriching glm objects (source, R code) Bias reduction in generalized linear models using enrichwith (source, R code) enriching family objects (source, R code) |
| Package source: | enrichwith_0.5.0.tar.gz |
| Windows binaries: | r-devel: enrichwith_0.5.0.zip, r-release: enrichwith_0.4.0.zip, r-oldrel: enrichwith_0.4.0.zip |
| macOS binaries: | r-release (arm64): enrichwith_0.5.0.tgz, r-oldrel (arm64): enrichwith_0.5.0.tgz, r-release (x86_64): enrichwith_0.4.0.tgz, r-oldrel (x86_64): enrichwith_0.4.0.tgz |
| Old sources: | enrichwith archive |
| Reverse imports: | brglm2, hdbayes, psc |
| Reverse suggests: | WeightIt |
Please use the canonical form https://CRAN.R-project.org/package=enrichwith to link to this page.