glmnet

Lasso and Elastic-Net Regularized Generalized Linear Models

CRAN Package

Extremely efficient procedures for fitting the entire lasso or elastic-net regularization path for linear regression, logistic and multinomial regression models, Poisson regression, Cox model, multiple-response Gaussian, and the grouped multinomial regression; see doi:10.18637/jss.v033.i01 and doi:10.18637/jss.v039.i05. There are two new and important additions. The family argument can be a GLM family object, which opens the door to any programmed family (doi:10.18637/jss.v106.i01). This comes with a modest computational cost, so when the built-in families suffice, they should be used instead. The other novelty is the relax option, which refits each of the active sets in the path unpenalized. The algorithm uses cyclical coordinate descent in a path-wise fashion, as described in the papers cited.


Documentation


Team


Insights

Last 30 days

This package has been downloaded 167,952 times in the last 30 days. Practically an academic rockstar! That's enough downloads to cause murmurs at international conferences. The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 3,713 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsFeb 9, 2025
0 downloadsFeb 10, 2025
0 downloadsFeb 11, 2025
0 downloadsFeb 12, 2025
0 downloadsFeb 13, 2025
7,231 downloadsFeb 14, 2025
3,529 downloadsFeb 15, 2025
2,326 downloadsFeb 16, 2025
5,069 downloadsFeb 17, 2025
4,862 downloadsFeb 18, 2025
6,653 downloadsFeb 19, 2025
7,891 downloadsFeb 20, 2025
7,703 downloadsFeb 21, 2025
5,615 downloadsFeb 22, 2025
6,410 downloadsFeb 23, 2025
8,595 downloadsFeb 24, 2025
7,765 downloadsFeb 25, 2025
5,243 downloadsFeb 26, 2025
5,686 downloadsFeb 27, 2025
6,654 downloadsFeb 28, 2025
3,613 downloadsMar 1, 2025
2,816 downloadsMar 2, 2025
4,955 downloadsMar 3, 2025
5,552 downloadsMar 4, 2025
5,836 downloadsMar 5, 2025
6,526 downloadsMar 6, 2025
5,177 downloadsMar 7, 2025
3,445 downloadsMar 8, 2025
4,159 downloadsMar 9, 2025
6,087 downloadsMar 10, 2025
6,449 downloadsMar 11, 2025
6,647 downloadsMar 12, 2025
6,014 downloadsMar 13, 2025
5,731 downloadsMar 14, 2025
3,713 downloadsMar 15, 2025
2,326
8,595

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 1,457,245 times in the last 365 days. Perhaps it's time to consider hiring a personal assistant to manage the newfound fame. That's an absurd number of downloads. The day with the most downloads was Feb 24, 2025 with 8,595 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Depends1 package
  • Imports4 packages
  • Suggests5 packages
  • Linking To2 packages
  • Reverse Depends44 packages
  • Reverse Imports361 packages
  • Reverse Suggests122 packages
  • Reverse Enhances2 packages