glmnet: Lasso and Elastic-Net Regularized Generalized Linear Models

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.

Version: 4.1-8
Depends: R (≥ 3.6.0), Matrix (≥ 1.0-6)
Imports: methods, utils, foreach, shape, survival, Rcpp
LinkingTo: RcppEigen, Rcpp
Suggests: knitr, lars, testthat, xfun, rmarkdown
Published: 2023-08-22
Author: Jerome Friedman [aut], Trevor Hastie [aut, cre], Rob Tibshirani [aut], Balasubramanian Narasimhan [aut], Kenneth Tay [aut], Noah Simon [aut], Junyang Qian [ctb], James Yang [aut]
Maintainer: Trevor Hastie <hastie at stanford.edu>
License: GPL-2
URL: https://glmnet.stanford.edu
NeedsCompilation: yes
SystemRequirements: C++17
Citation: glmnet citation info
Materials: README NEWS
In views: MachineLearning, Survival
CRAN checks: glmnet results

Documentation:

Reference manual: glmnet.pdf
Vignettes: Regularized Cox Regression
An Introduction to glmnet
The family Argument for glmnet
The Relaxed Lasso

Downloads:

Package source: glmnet_4.1-8.tar.gz
Windows binaries: r-devel: glmnet_4.1-8.zip, r-release: glmnet_4.1-8.zip, r-oldrel: glmnet_4.1-8.zip
macOS binaries: r-release (arm64): glmnet_4.1-8.tgz, r-oldrel (arm64): glmnet_4.1-8.tgz, r-release (x86_64): glmnet_4.1-8.tgz
Old sources: glmnet archive

Reverse dependencies:

Reverse depends: adapt4pv, AHM, bapred, BioMark, CBPS, cosso, ctmle, DTRlearn2, elasso, ensr, gamlss.lasso, GlarmaVarSel, glmnetcr, glmSparseNet, glmvsd, Grace, HIMA, HSDiC, InvariantCausalPrediction, ipflasso, islasso, KLexp, Lavash, mcen, metagenomeSeq, MetGen, mmabig, MNS, mpath, MRFcov, MTPS, MultiGlarmaVarSel, MultiVarSel, mvs, NBtsVarSel, netcox, omada, PAS, personalized, ProSGPV, prototest, qut, RLassoCox, roccv, selectiveInference, sharpPen, SIMMS, sox, tmle, TSGSIS
Reverse imports: a4Base, a4Classif, a4Core, afthd, aglm, alookr, aloom, AMARETTO, amp, AnchorRegression, ArCo, argo, ARGOS, armada, arulesCBA, ASICS, bbknnR, BBSSL, BeSS, bestglm, bgsmtr, biospear, BlockMissingData, BloodCancerMultiOmics2017, BNrich, bolasso, BOSSreg, BrainCon, BSPBSS, BWGS, c060, CARBayes, categoryEncodings, CausalMetaR, causalweight, cbl, CenBAR, CERFIT, changepoints, ciccr, CICI, clusterMI, cmenet, coca, coda4microbiome, comets, ComICS, Compositional, CondCopulas, conformalInference.multi, ConformalSmallest, ConnectednessApproach, cornet, covdepGE, Coxmos, cpfa, cpt, CRE, creditmodel, crossurr, CSCNet, csmpv, customizedTraining, CytoDx, DDL, ddml, DEET, DepInfeR, DevTreatRules, dipw, distillML, dlbayes, DLL, dmlalg, DMRnet, DMTL, dnr, doc2concrete, drcarlate, dtComb, DWLasso, ecpc, emBayes, enetLTS, EnMCB, ENMeval, EnsembleBase, EnsemblePenReg, ePCR, ER, eshrink, evalITR, EventPointer, eventstream, expandFunctions, EZtune, factReg, FADA, fairml, fastcpd, FGLMtrunc, FindIt, FindIT2, finnts, FLAME, FLORAL, fmerPack, fssemR, FunctanSNP, fuser, gamlss.foreach, gamreg, gapclosing, GAprediction, GEInfo, gespeR, ggmix, glmnetr, glmnetSE, glmnetUtils, glmtrans, GMDH2, GMSimpute, gofar, goffda, graphicalExtremes, graphicalVAR, GRSxE, GWLelast, GWRLASSO, hal9001, hbal, HCTR, HDCI, hdi, hdm, hdme, hdnom, hierGWAS, hierinf, HMC, HTLR, HTRX, iBART, ICBioMark, idopNetwork, IFAA, inet, iNETgrate, inters, IRCcheck, IsingFit, joinet, knockoff, KnockoffHybrid, kosel, l1spectral, LassoSIR, latentgraph, LEGIT, lilikoi, lime, LKT, localModel, logicDT, LPRelevance, LUCIDus, mase, MaximinInfer, maxnet, mcb, mcboost, mdpeer, MEAT, MendelianRandomization, MESS, MetabolicSurv, metafuse, mgm, mice, MicrobiomeSurv, mikropml, milr, mimi, miRLAB, MissCP, misspi, modnets, mombf, monaLisa, mplot, MRFA, MRZero, msaenet, MSclassifR, MTE, mudfold, multid, multiness, multivar, multiview, NADIA, naivereg, natural, nbfar, NCutYX, nestedcv, netDx, netgsa, nethet, nnfor, nnGarrote, nonet, NonProbEst, nproc, obliqueRSF, ocf, OHPL, omicwas, oncoPredict, OOS, OpenSpecy, palasso, PathoStat, pathwayTMB, PCGII, pda, PDN, pencal, pengls, penppml, pgraph, phd, pheble, PheCAP, PheVis, PhylogeneticEM, Pi, planningML, plasso, plsmselect, PMAPscore, politeness, polywog, POMA, PPLasso, pqrBayes, pre, precmed, predhy, predhy.GUI, predictoR, prioritylasso, PRISM.forecast, probe, PRSPGx, QTL.gCIMapping, QTL.gCIMapping.GUI, quanteda.textmodels, Qval, ramwas, rare, RaSEn, rdomains, regmhmm, regnet, regressoR, regsplice, regtools, relgam, RESOLVE, rexposome, Rforestry, Ricrt, RIVER, rminer, rMultiNet, RNAseqNet, roben, RobMixReg, robStepSplitReg, RobustIV, Robyn, ROCSI, RPtests, rqt, rrpack, RSDA, RTextTools, SAVER, SBICgraph, scAnnotate, SCFA, scGPS, sdafilter, SelectBoost, SEMgraph, SentimentAnalysis, sentometrics, sharp, SIAMCAT, Sieve, signeR, SIHR, SILM, simode, simputation, sirus, SIS, SISIR, sivs, SLBDD, slimrec, SLOPE, SMLE, sMTL, smurf, SoftBart, SOIL, sparsenetgls, sparsereg, sparsevar, sparsevb, spinBayes, SplitKnockoff, splitSelect, spm2, SPOT, sprintr, SPSP, SpTe2M, squant, squeezy, srlars, stabiliser, StabilizedRegression, stacks, starnet, statVisual, stepPenal, STGS, stm, STOPES, StratifiedMedicine, SubgrpID, sureLDA, SuRF.vs, survcompare, SurvHiDim, survival.svb, TANDEM, tehtuner, TextForecast, tools4uplift, TOP, TOSI, TraceAssist, traineR, transreg, TRexSelector, triplot, tsensembler, tspredit, tsrobprep, TULIP, varEst, varycoef, VSOLassoBag, webSDM, WLogit, WpProj, wsprv, xcore, xLLiM, xrf, xtune, ZVCV
Reverse suggests: adaptMT, animalcules, aorsf, BAGofT, bamlss, bbl, bcaboot, biglasso, bigstatsr, BiodiversityR, BOSO, broom, caretEnsemble, casebase, cases, catdata, censored, ClassifyR, CMA, coefplot, CompareCausalNetworks, concrete, condvis2, cpi, cuda.ml, cvwrapr, cydar, DebiasInfer, decoupleR, DoubleML, drape, easyalluvial, EBglmnet, eclust, ecostats, EHR, familiar, fdaSP, fdm2id, FeatureHashing, flevr, flexmix, flowml, forecastML, FRESA.CAD, fscaret, GenericML, gesso, ggfortify, GWASinlps, heuristica, iml, imputeR, LDLcalc, live, LSAmitR, MachineShop, MatchIt, medflex, MetNet, MFSIS, microbiomeMarker, mllrnrs, mlr, mlr3learners, mlr3pipelines, mlr3tuningspaces, mlr3viz, mlsurvlrnrs, modeltime, modeltime.ensemble, modeltime.resample, nestedmodels, nlpred, nscancor, offsetreg, oosse, ordinalNet, origami, oscar, Patterns, philr, plotmo, pmml, polle, projpred, pulsar, purgeR, qeML, quadrupen, qwraps2, r2pmml, rcellminer, regsem, riskRegression, RnBeads, s2net, sAIC, sense, sgd, sgs, simulator, sparsegl, spatstat.model, SplitReg, sqlscore, stabs, STPGA, stratamatch, subsemble, SuperLearner, superMICE, superml, survex, swag, TAPseq, TBSignatureProfiler, TensorTest2D, text, text2vec, tidyAML, tidyfit, tidyhte, timetk, tornado, tramnet, treemisc, UBayFS, varbvs, vimp, WeightedROC
Reverse enhances: prediction, vip

Linking:

Please use the canonical form https://CRAN.R-project.org/package=glmnet to link to this page.