glmnetr
0.6-3Nested Cross Validation for the Relaxed Lasso and Other Machine Learning Models
Overview
Cross validation informed Relaxed LASSO (or more generally elastic net), gradient boosting machine ('xgboost'), Random Forest ('RandomForestSRC'), Oblique Random Forest ('aorsf'), Artificial Neural Network (ANN), Recursive Partitioning ('RPART') or step wise regression models are fit. Cross validation leave out samples (leading to nested cross validation) or bootstrap out-of-bag samples are used to evaluate and compare performances between these models with results presented in tabular or graphical means. Calibration plots can also be generated, again based upon (outer nested) cross validation or bootstrap leave out (out of bag) samples. Note, at the time of this writing, in order to fit gradient boosting machine models one must install the packages 'DiceKriging' and 'rgenoud' using the install.packages() function. 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 by using the 'path=TRUE' option when calling glmnet() and cv.glmnet(). Within the 'glmnetr' package the approach of path=TRUE is taken by default. other packages doing similar include 'nestedcv' https://cran.r-project.org/package=nestedcv, 'glmnetSE' https://cran.r-project.org/package=glmnetSE which may provide different functionality when performing a nested CV. Use of the 'glmnetr' has many similarities to the 'glmnet' package and it could be helpful for the user of 'glmnetr' also become familiar with the 'glmnet' package https://cran.r-project.org/package=glmnet, with the "An Introduction to 'glmnet'" and "The Relaxed Lasso" being especially useful in this regard.
Install
Health
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0812 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 47%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
People & History
19 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.6-3Latest
- 0.6-22025-08-19 · diff ↗
- 0.6-12025-05-10 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.5-52025-01-17 · diff ↗
- 0.5-42024-10-24 · diff ↗
- 0.5-32024-08-28 · diff ↗
- 0.5-22024-07-12 · diff ↗
- 0.5-12024-05-12 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.4-62024-04-21 · diff ↗
- 0.4-52024-04-20 · diff ↗
- 0.4-42024-03-23 · diff ↗
- 0.4-32024-03-04 · diff ↗
- 0.4-22024-02-09 · diff ↗
Show 10 earlier events
Package metadata
- First published
- 2022-12-14
- Total releases
- 19 / 4 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.4.0
- Download size
- 2.2 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet