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. There are two new and important additions. The family argument can be a GLM family object, which opens the door to any programmed family. 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 listed in the URL below.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


4.1-2 by Trevor Hastie, 4 months ago,,

Browse source code at

Authors: Jerome Friedman [aut] , Trevor Hastie [aut, cre] , Rob Tibshirani [aut] , Balasubramanian Narasimhan [aut] , Kenneth Tay [aut] , Noah Simon [aut] , Junyang Qian [ctb]

Documentation:   PDF Manual  

Task views: Machine Learning & Statistical Learning, Survival Analysis

GPL-2 license

Imports methods, utils, foreach, shape, survival

Depends on Matrix

Suggests knitr, lars, testthat, xfun, rmarkdown

Imported by AnchorRegression, ArCo, BBSSL, BNrich, BOSSreg, BWGS, BeSS, BrainCon, CISE, CSUV, CausalKinetiX, CenBAR, ComICS, Compositional, ConformalSmallest, CovSelHigh, DMRnet, DMTL, DWLasso, DevTreatRules, ENMeval, ER, EZtune, EnsembleBase, EnsemblePenReg, FADA, FLAME, FindIt, GMDH2, GMSimpute, GRPtests, GWLelast, HCTR, HDCI, HTLR, ICBioMark, IRCcheck, IsingFit, KOBT, LDLcalc, LEGIT, LKT, LPRelevance, LUCIDus, LassoSIR, LinearDetect, MESS, MPAgenomics, MRFA, MTE, MWRidge, MendelianRandomization, MetabolicSurv, NADIA, NCutYX, NonProbEst, NormalBetaPrime, OHPL, OOS, PDN, PO.EN, PRISM.forecast, PheCAP, PheVis, PhylogeneticEM, QTL.gCIMapping, QTL.gCIMapping.GUI, RAEN, RCPmod, RISCA, RNAseqNet, RPtests, RSDA, RTextTools, RaSEn, Rforestry, RobMixReg, SAVER, SBICgraph, SEMgraph, SIHR, SILM, SIS, SISIR, SLBDD, SMLE, SOIL, SPOT, SSDL, STGS, STOPES, SelectBoost, SentimentAnalysis, SplitKnockoff, StabilizedRegression, StratifiedMedicine, SuperPCA, SurvHiDim, TANDEM, TULIP, TextForecast, TraceAssist, ZVCV, afthd, aglm, argo, armada, arulesCBA, aurelius, bastah, bestglm, bgsmtr, biospear, blin, c060, categoryEncodings, causalweight, changedetection, cmenet, coca, cornet, cpt, creditmodel, customizedTraining, dipw, dlbayes, dmlalg, dnr, doc2concrete, ePCR, ecpc, elasticIsing, enetLTS, epiGWAS, eshrink, eventstream, expandFunctions, expose, fairml, fdm2id, fmerPack, fssemR, fuser, gamreg, gapclosing, gencve, ggmix, glmnetUtils, glmtrans, goffda, graphicalVAR, gren, hal9001, hdi, hdm, hdme, hdnom, healthcareai, hierbase, hit, hmgm, hybridEnsemble, joinet, knockoff, kosel, l1spectral, landmap, latentgraph, lilikoi, lime, localModel, mase, maxnet, mcb, mcboost, mdpeer, metafuse, mgm, mikropml, milr, mimi, modnets, mplot, msaenet, mudfold, multid, naivereg, natural, netgsa, nnGarrote, nnfor, nonet, nproc, obliqueRSF, omicwas, oncoPredict, palasso, parboost, partialCI, pathwayTMB, pencal, penppml, pgraph, phd, plsmselect, politeness, polywog, pre, predhy, predictoR, prioritylasso, quanteda.textmodels, rare, regnet, regressoR, relgam, rminer, roben, rrpack, sail, sdafilter, sentometrics, sirus, sivs, slimrec, smurf, sparsereg, sparsevar, sparsevb, spinBayes, splitSelect, spm2, sprintr, squeezy, stabiliser, stacks, starnet, statVisual, stepPenal, stm, sureLDA, tools4uplift, traineR, triplot, tsensembler, tsrobprep, varEst, varycoef, xLLiM, xrf, xtune.

Depended on by AHM, AdapEnetClass, BigTSP, BioMark, CBPS, DTRlearn2, EstHer, GlarmaVarSel, Grace, HIMA, HSDiC, HiCfeat, IGG, InvariantCausalPrediction, KLexp, Lavash, MNS, MRFcov, MTPS, MetGen, MultiVarSel, PAS, ProSGPV, RVtests, SIMMS, SPSP, TSGSIS, adapt4pv, bapred, cosso, ctmle, elasso, ensr, fcd, gamlss.lasso, glmnetcr, glmvsd, hdlm, ipflasso, islasso, lassoscore, mcen, mmabig, mpath, personalized, prototest, qut, roccv, selectiveInference, sharpPen, tmle.

Suggested by BAGofT, BOSO, BiodiversityR, CBDA, CPGLIB, CompareCausalNetworks, DoubleML, DriveML, EBglmnet, EHR, FRESA.CAD, FeatureHashing, GWASinlps, LSAmitR, MachineShop, MatchIt, ModelGood, Patterns, SLOPE, STPGA, SplitGLM, SplitReg, SuperLearner, WeightedROC, adaptMT, bamlss, bbl, bcaboot, biglasso, bigstatsr, broom, caretEnsemble, casebase, catdata, coefplot, condvis2, cvwrapr, easyalluvial, eclust, fbRanks, flexmix, forecastML, fscaret, gesso, ggfortify, heuristica, iml, imputeR, live, medflex, mlr, mlr3learners, mlr3pipelines, mlr3tuningspaces, mlr3viz, modelplotr, modeltime.ensemble, modeltime.resample, nlpred, nscancor, ordinalNet, origami, plotmo, pmml, projpred, pulsar, purgeR, quadrupen, r2pmml, regsem, s2net, sAIC, sense, sgd, simputation, sqlscore, stabs, stratamatch, superml, swag, text, text2vec, tramnet, varbvs, vimp, vip.

Enhanced by prediction.

See at CRAN