Package: enrichwith 0.5.0

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.

Authors:Ioannis Kosmidis [aut, cre]

enrichwith_0.5.0.tar.gz
enrichwith_0.5.0.zip(r-4.7)enrichwith_0.5.0.zip(r-4.6)enrichwith_0.5.0.zip(r-4.5)
enrichwith_0.5.0.tgz(r-4.6-any)enrichwith_0.5.0.tgz(r-4.5-any)
enrichwith_0.5.0.tar.gz(r-4.7-any)enrichwith_0.5.0.tar.gz(r-4.6-any)
enrichwith_0.5.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
enrichwith/json (API)
NEWS

# Install 'enrichwith' in R:
install.packages('enrichwith', repos = c('https://ikosmidis.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ikosmidis/enrichwith/issues

Datasets:
  • endometrial - Histology grade and risk factors for 79 cases of endometrial cancer

On CRAN:

Conda:

infrastructure

8.64 score 5 stars 19 packages 16 scripts 13k downloads 12 exports 0 dependencies

Last updated from:fdd0dbb467. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK113
source / vignettesOK207
linux-release-x86_64OK128
macos-release-arm64OK129
macos-oldrel-arm64OK183
windows-develOK64
windows-releaseOK78
windows-oldrelOK84
wasm-releaseOK101

Exports:create_enrichwith_skeletonenrichenriched_glmget_auxiliary_functionsget_bias_functionget_dmodel_functionget_enrichment_optionsget_information_functionget_pmodel_functionget_qmodel_functionget_score_functionget_simulate_function

Dependencies:

Bias reduction in generalized linear models using enrichwith

Rendered frombias.Rmdusingknitr::rmarkdownon May 29 2026.

Last update: 2025-09-08
Started: 2016-09-02

Enriching family objects: exponential family of distributions

Rendered fromexponential_family.Rmdusingknitr::rmarkdownon May 29 2026.

Last update: 2025-09-08
Started: 2017-10-15

Enriching glm objects

Rendered fromGLMs.Rmdusingknitr::rmarkdownon May 29 2026.

Last update: 2025-09-08
Started: 2017-01-16

Readme and manuals

Help Manual

Help pageTopics
Function to extract model coefficients from objects of class 'enriched_glm'coef.enriched_glm
Function to extract model coefficients from objects of class 'enriched_lm'coef.enriched_lm
Create a enrichwith skeletoncreate_enrichwith_skeleton
Histology grade and risk factors for 79 cases of endometrial cancerendometrial
Generic method for enriching objectsenrich
Enrich objects of class betaregenrich.betareg
Enrich objects of class 'family'enrich.family
Enrich objects of class 'glm'enrich.glm
Enrich objects of class 'link-glm'enrich.link-glm
Enrich objects of class 'lm'enrich.lm
Fitting generalized linear models enriched with useful componentsenriched_glm
Methods to enrich list-like R objects with extra componentsenrichwith-package enrichwith
Generic method for extracting or computing auxiliary functions for objectsget_auxiliary_functions
Function to compute/extract auxiliary functions from objects of class 'betreg'/'enriched_betareg'get_auxiliary_functions.betareg
Function to compute/extract auxiliary functions from objects of class 'glm'/'enriched_glm'get_auxiliary_functions.glm
Function to compute/extract auxiliary functions from objects of class 'lm'/'enriched_lm'get_auxiliary_functions.lm
Generic method for extracting or computing a function that returns the bias for the parameters in modelling objectsget_bias_function
Function to compute/extract a function that returns the first term in the expansion of the bias of the MLE for the parameters of an object of class 'betareg'/'enriched_betareg'get_bias_function.betareg
Function to compute/extract a function that returns the first term in the expansion of the bias of the MLE for the parameters of an object of class 'glm'/'enriched_glm'get_bias_function.glm
Function to compute/extract a function that returns the first term in the expansion of the bias of the MLE for the parameters of an object of class 'lm'/'enriched_lm'get_bias_function.lm
Generic method for extracting or computing a dmodel function for modelling objectsget_dmodel_function
Function to compute/extract a 'dmodel' functionget_dmodel_function.glm
Generic method for getting available options for the enrichment of objectsget_enrichment_options print.enrichment_options
Available options for the enrichment objects of class betaregget_enrichment_options.betareg
Available options for the enrichment objects of class familyget_enrichment_options.family
Available options for the enrichment objects of class 'glm'get_enrichment_options.glm
Available options for the enrichment objects of class link-glmget_enrichment_options.link-glm
Available options for the enrichment objects of class 'lm'get_enrichment_options.lm
Generic method for extracting or computing a function that returns the information matrix for modelling objectsget_information_function
Function to compute/extract a function that returns the information matrix for an object of class 'betareg'/'enriched_betareg'get_information_function.betareg
Function to compute/extract a function that returns the information matrix for an object of class 'glm'/'enriched_glm'get_information_function.glm
Function to compute/extract a function that returns the information matrix for an object of class 'lm'/'enriched_lm'get_information_function.lm
Generic method for extracting or computing a pmodel function for modelling objectsget_pmodel_function
Function to compute/extract a 'pmodel' functionget_pmodel_function.glm
Generic method for extracting or computing a qmodel function for modelling objectsget_qmodel_function
Function to compute/extract a 'qmodel' functionget_qmodel_function.glm
Generic method for extracting or computing a function that returns the scores for modelling objectsget_score_function
Function to compute/extract a function that returns the scores (derivatives of the log-likelihood) for an object of class 'betareg'/'enriched_betareg'get_score_function.betareg
Function to compute/extract a function that returns the scores (derivatives of the log-likelihood) for an object of class 'glm'/'enriched_glm'get_score_function.glm
Function to compute/extract a function that returns the scores (derivatives of the log-likelihood) for an object of class 'lm'/'enriched_lm'get_score_function.lm
Generic method for extracting or computing a simulate function for modelling objectsget_simulate_function
Function to compute/extract a simulate function for response vectors from an object of class 'betareg'/'enriched_betareg'get_simulate_function.betareg
Function to compute/extract a simulate function for response vectors from an object of class 'glm'/'enriched_glm'get_simulate_function.glm
Function to compute/extract a simulate function for response vectors from an object of class 'lm'/'enriched_lm'get_simulate_function.lm