Package: fbrglm 0.0.1

Koki Tsuyuzaki

fbrglm: Safe Formula-Based Regularized Generalized Linear Models

A formula-based wrapper around 'glmnet' that brings the 'glm()'-compatible modeling workflow to regularized generalized linear models. Training-time 'terms', 'xlevels', and 'contrasts' are stored on the fit object and reused at predict time, so the design matrix is reconstructed consistently across sessions. Complete-case bookkeeping is exposed via 'nobs_info', and linearly dependent columns are detected by a QR pivot and reported as 'NA' in 'coef()' and 'summary()' (the 'stats::glm()' convention), distinguishing "not identifiable" from "shrunk to zero by the penalty". Novel factor levels at predict time raise the same error 'stats::predict.glm()' does by default, with 'on_new_levels = "na"' as a production-style opt-in. Accepts character family strings ('gaussian', 'binomial', 'poisson', 'cox', 'multinomial', 'mgaussian') and any 'glm' family object the underlying 'glmnet' itself accepts, including 'Gamma' and fixed-theta negative binomial via 'MASS::negative.binomial'.

Authors:Koki Tsuyuzaki [aut, cre]

fbrglm_0.0.1.tar.gz
fbrglm_0.0.1.tar.gz(r-4.7-any)fbrglm_0.0.1.tar.gz(r-4.6-any)
fbrglm_0.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
fbrglm/json (API)
NEWS

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

Bug tracker:https://github.com/dsc-chiba-u/fbrglm/issues

On CRAN:

Conda:

3.15 score 14 scripts 3 exports 10 dependencies

Last updated from:d41f22e20d. Checks:4 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK117
source / vignettesOK164
linux-release-x86_64OK115
wasm-releaseOK118

Exports:as_cv_glmnetas_glmnetfbrglm

Dependencies:codetoolsforeachglmnetiteratorslatticeMatrixRcppRcppEigenshapesurvival

Families and model types in fbrglm

Rendered fromfbrglm-families.Rmdusingknitr::rmarkdownon Jun 22 2026.

Last update: 2026-06-22
Started: 2026-06-22

Getting started with fbrglm

Rendered fromfbrglm.Rmdusingknitr::rmarkdownon Jun 22 2026.

Last update: 2026-06-22
Started: 2026-06-22

Readme and manuals

Help Manual

Help pageTopics
Extract the Underlying cv.glmnet Fitas_cv_glmnet
Extract the Underlying glmnet Fitas_glmnet
Fit a Formula-Based Regularized GLMcoef.fbrglm fbrglm nobs.fbrglm plot.fbrglm predict.fbrglm print.fbrglm print.summary.fbrglm summary.fbrglm