Regularized parametric modal regression for high-dimensional positive responses: Lasso, elastic net and ridge
Christian E. Galarza (Escuela Superior Politécnica del Litoral, Ecuador) · Víctor H. Lachos (University of Connecticut, USA) · Dashun Liu (University of Connecticut, USA)
ModalNet performs variable selection and estimation in parametric modal regression, where the conditional mode of a positive response is linked to a linear predictor:
The Gamma, Weibull and Lognormal families are written in terms of their mode through the analytical reparameterization of Galarza and Lachos (2026), and the penalized log-likelihood
is maximized for the Lasso, elastic-net, ridge and adaptive-Lasso penalties, with
on the standardized columns (alpha = 1 Lasso, 0 < alpha < 1 elastic net, alpha = 0 ridge; the weights penalty.factor, which gives the adaptive Lasso).
The estimator is computed with a proximal Newton algorithm (equivalently, iteratively reweighted penalized least squares). At each iteration the modal log-likelihood is replaced by its second-order expansion in the linear predictor, which gives a pseudo-response
| Family | ||
|---|---|---|
| Gamma ( |
||
| Weibull ( |
||
| Lognormal ( |
The update of
solved exactly by the coordinate-descent solver of glmnet with observation weights. glmnet never sees the response
The penalty alpha. The intercept and the dispersion are updated jointly (with the slopes fixed) after every coordinate-descent step, because in the mode parameterization they are strongly coupled.
Two facts proved in the paper and visible in the package output:
-
Lognormal equivalence. The Lognormal modal Lasso at penalty
$\lambda$ is the Gaussian Lasso on$\log y$ at the same$\lambda$ : identical slopes, intercepts differing by exactly$\phi$ . The same holds for elastic net and ridge once glmnet's response scaling is accounted for. -
Mode and mean differ only in the intercept. With a log link and constant dispersion,
$E[Y \mid \mathbf{x}] = c(\phi),M(\mathbf{x})$ with$c(\phi) = 1+\phi$ (Gamma),${k/(k-1)}^{1/k}\Gamma(1+1/k)$ (Weibull),$e^{3\phi/2}$ (Lognormal).summary()reports$c(\hat\phi)$ and the mean-scale intercept.
install.packages("ModalNet") # CRAN
# development version:
# install.packages("remotes")
remotes::install_github("chedgala/ModalNet")library(ModalNet)
set.seed(1)
n <- 200; p <- 50
X <- matrix(rnorm(n * p), n, p)
gamma_true <- c(1, 0.6, -0.5, 0.4, rep(0, p - 3))
dat <- generate_modal_data(X, gamma_true, phi = 0.3, family = "gamma")
fit <- modal_net(dat$y, X, family = "gamma")
fit # selected variables and coefficients on the log-mode scale
summary(fit) # exp(coef), phi, EBIC, mode-mean constant
plot(fit) # EBIC curve and coefficient path
predict(fit, type = "mode")[1:5]
predict(fit, type = "mean")[1:5]library(glmnet)
cv <- cv.glmnet(X, log(dat$y))
coef(cv, s = "lambda.1se") # Lasso on log(y): targets the mean of log y
coef(fit) # modal Lasso: targets the mode of yFor the Lognormal family the two paths coincide (modal_net(..., family = "lognormal") versus glmnet(X, log(y)) at the same lambda), which is Proposition 1 of the paper; for the Gamma and Weibull families the working weights vary with the data and the fit, and the two selections differ.
- VA lung cancer trial (
survival::veteran, 128 complete cases, 9 covariates). - Riboflavin production,
$n = 71$ ,$p = 100$ genes with the largest variance. The subset is bundled asdata(riboflavinV100)(derived from theriboflavindata of thehdipackage, Bühlmann, Kalisch and Meier, 2014).
library(survival)
v <- veteran[veteran$status == 1, ] # 128 complete cases
Xv <- model.matrix(~ trt + karno + diagtime + age + prior + celltype, v)[, -1]
fit_g <- modal_net(v$time, Xv, family = "gamma")
fit_w <- modal_net(v$time, Xv, family = "weibull")
colnames(Xv)[fit_g$selected]; colnames(Xv)[fit_w$selected]
data(riboflavinV100)
y <- riboflavinV100$y / mean(riboflavinV100$y)
fit_r <- modal_net(y, riboflavinV100$x, family = "gamma")
colnames(riboflavinV100$x)[fit_r$selected]- Galarza, C. E. and Lachos, V. H. (2026). A proximal Newton algorithm for penalized modal regression with high-dimensional positive responses. Manuscript.
- Galarza, C. E. and Lachos, V. H. (2026). Parametric modal regression for right-censored positive responses. arXiv:2603.07099. R package ModalCens.
- Friedman, J., Hastie, T. and Tibshirani, R. (2010). Regularization paths for generalized linear models via coordinate descent. JSS 33(1).
- Chen, J. and Chen, Z. (2008). Extended Bayesian information criteria for model selection with large model spaces. Biometrika 95, 759–771.
GPL-3