Other packages > Find by keyword >

glmnetr  

Nested Cross Validation for the Relaxed Lasso and Other Machine Learning Models
View on CRAN: Click here


Download and install glmnetr package within the R console
Install from CRAN:
install.packages("glmnetr")

Install from Github:
library("remotes")
install_github("cran/glmnetr")

Install by package version:
library("remotes")
install_version("glmnetr", "0.6-3")



Attach the package and use:
library("glmnetr")
Maintained by
Walter K Kremers
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2022-12-14
Latest Update: 2025-05-10
Description:
Cross validation informed Relaxed LASSO, Artificial Neural Network (ANN), gradient boosting machine ('xgboost'), Random Forest ('RandomForestSRC'), Recursive Partitioning ('RPART') or step wise regression models are fit. Nested cross validation (or analogous for the random forest) is used to estimate and compare performances between these models. For some datasets, for example when the design matrix is not of full rank, 'glmnet' may have very long run times when fitting the relaxed lasso model, from our experience when fitting Cox models on data with many predictors and many patients, making it difficult to get solutions from either glmnet() or cv.glmnet(). This may be remedied with the 'path=TRUE' options when calling glmnet() and cv.glmnet(). Within the glmnetr package the approach of path=TRUE is taken by default. When fitting not a relaxed lasso model but an elastic-net model, then the R-packages 'nestedcv' , 'glmnetSE' or others may provide greater functionality when performing a nested CV. As with the 'glmnet' package, this package passes most relevant output to the output object and tabular and graphical summaries can be generated using the summary and plot functions. Use of the 'glmnetr' has many similarities to the 'glmnet' package and it is recommended that the user of 'glmnetr' also become familiar with the 'glmnet' package , with the "An Introduction to 'glmnet'" and "The Relaxed Lasso" being especially helpful in this regard.
How to cite:
Walter K Kremers (2022). glmnetr: Nested Cross Validation for the Relaxed Lasso and Other Machine Learning Models. R package version 0.6-3, https://cran.r-project.org/web/packages/glmnetr. Accessed 06 Mar. 2026.
Previous versions and publish date:
0.1-1 (2022-12-14 13:10), 0.1-2 (2023-02-18 19:40), 0.2-0 (2023-05-10 20:40), 0.2-1 (2023-06-07 12:50), 0.3-1 (2023-08-10 08:50), 0.4-1 (2024-01-09 01:40), 0.4-2 (2024-02-09 01:50), 0.4-3 (2024-03-04 01:40), 0.4-4 (2024-03-23 16:50), 0.4-5 (2024-04-20 01:52), 0.4-6 (2024-04-21 23:02), 0.5-1 (2024-05-12 21:53), 0.5-2 (2024-07-12 16:20), 0.5-3 (2024-08-28 23:10), 0.5-4 (2024-10-24 19:10), 0.5-5 (2025-01-17 06:20), 0.6-1 (2025-05-10 20:20), 0.6-2 (2025-08-19 16:20)
Other packages that cited glmnetr R package
View glmnetr citation profile
Other R packages that glmnetr depends, imports, suggests or enhances
Complete documentation for glmnetr
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

lbfgs  
Limited-memory BFGS Optimization
A wrapper built around the libLBFGS optimization library by Naoaki Okazaki. The lbfgs package implem ...
Download / Learn more Package Citations See dependency  
DatabionicSwarm  
Swarm Intelligence for Self-Organized Clustering
Algorithms implementing populations of agents that interact with one another and sense their environ ...
Download / Learn more Package Citations See dependency  
openxlsx  
Read, Write and Edit xlsx Files
Simplifies the creation of Excel .xlsx files by providing a high level interface to writing, stylin ...
Download / Learn more Package Citations See dependency  
solitude  
An Implementation of Isolation Forest
Isolation forest is anomaly detection method introduced by the paper Isolation based Anomaly Detecti ...
Download / Learn more Package Citations See dependency  
r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  
EMVS  
The Expectation-Maximization Approach to Bayesian Variable Selection
An efficient expectation-maximization algorithm for fitting Bayesian spike-and-slab regularization p ...
Download / Learn more Package Citations See dependency  

26,264

R Packages

223,360

Dependencies

70,244

Author Associations

26,265

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA