Skip to content

grpnet

Group Elastic Net Regularized GLMs and GAMs

v1.2 · Apr 29, 2026 · GPL (>= 2)

Description

Efficient algorithms for fitting generalized linear and additive models with group elastic net penalties as described in Helwig (2025) <doi:10.1080/10618600.2024.2362232>. Implements group LASSO, group MCP, and group SCAD with an optional group ridge penalty. Computes the regularization path for linear regression (gaussian), multivariate regression (multigaussian), smoothed support vector machines (svm1), squared support vector machines (svm2), logistic regression (binomial), proportional odds logistic regression (ordinal), multinomial logistic regression (multinomial), log-linear count regression (poisson and negative.binomial), and log-linear continuous regression (gamma and inverse gaussian). Supports default and formula methods for model specification, k-fold cross-validation for tuning the regularization parameters, and nonparametric regression via tensor product reproducing kernel (smoothing spline) basis function expansion.

Downloads

CRAN

489

Last 30 days

8334th

1.5K

Last 90 days

4.4K

Last year

Trend: -10.1% (30d vs prior 30d)

r2u CRAN

24

Last 30 days

131

Last 90 days

443

Last year

Trend: -51% (30d vs prior 30d)

autoCRAN

13

Last 7 days

23

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Line coverage

Expression

Tests / Examples

Functions

78 10 exported

Complexity

29.1 avg / 190 max

Call network

78 nodes / 94 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Code

Structure

Lines of code

20,141

Files

78

Compiled share

29.8%

Has compiled src

Yes

Language breakdown

R 10,798 (53.6%)C/C++/src 5,999 (29.8%)Docs 3,344 (16.6%)

API

Exported functions

10

Internal functions

0

Recent export changes

v1.2+10 cv.compare, cv.grpnet, family.grpnet +7 more  −1 pattern:^[[:alpha:]]+
v1.0+1 pattern:^[[:alpha:]]+  −32 coef.cv.grpnet, coef.grpnet, cv.compare 29 more

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

10.5%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5.0

System requirements

C++ standard

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

12

First release

2023-07-13

Latest release

2026-04-29

Avg cadence

90 days

Cold removal rate

100%

Dep drift

0

LOC over versions

v0.1: 7,211 LOCv0.2: 8,419 LOCv0.3: 8,501 LOCv0.4: 9,372 LOCv0.5: 13,006 LOCv0.6: 13,108 LOCv0.7: 14,329 LOCv0.8: 14,329 LOCv0.9: 15,480 LOCv1.0: 17,875 LOCv1.1: 19,767 LOCv1.2: 20,141 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Version History

13 tracked
updated 1.2 ← 1.1 diff Apr 29, 2026
new 1.1 Mar 10, 2026
updated 1.1 ← 1.0 diff Jan 7, 2026
updated 1.0 ← 0.9 diff Jun 9, 2025
updated 0.9 ← 0.8 diff May 1, 2025
updated 0.8 ← 0.7 diff Mar 27, 2025
updated 0.7 ← 0.6 diff Jan 23, 2025
updated 0.6 ← 0.5 diff Oct 10, 2024
updated 0.5 ← 0.4 diff Jul 12, 2024
updated 0.4 ← 0.3 diff Jun 4, 2024
updated 0.3 ← 0.2 diff Feb 20, 2024
updated 0.2 ← 0.1 diff Sep 7, 2023
new 0.1 Jul 12, 2023