CRAN/E | glmnetr

glmnetr

Nested Cross Validation for the Relaxed Lasso and Other Machine Learning Models

Installation

About

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 with results presented in tabular or graphical means. Calibration plots can also be generated, again based upon (nested) cross validation. 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. 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.

Copyright Mayo Foundation for Medical Education and Research

Key Metrics

Version 0.4-6
R ≥ 3.4.0
Published 2024-04-21 12 days ago
Needs compilation? no
License GPL-3
CRAN checks glmnetr results

Downloads

Yesterday 27 0%
Last 7 days 179 -87%
Last 30 days 13.942 -40%
Last 90 days 59.389 +174%
Last 365 days 83.920 +5026%

Maintainer

Maintainer

Walter K Kremers

kremers.walter@mayo.edu

Authors

Walter K Kremers

aut / cre

Nicholas B Larson

ctb

Material

Reference manual
Package source

Vignettes

An Overview of glmnetr
Calibration of Machine Learning Models
Ridge and Lasso
Using ann_tab_cv
Using stepreg

macOS

r-prerel

arm64

r-release

arm64

r-oldrel

arm64

r-prerel

x86_64

r-release

x86_64

Windows

r-prerel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

glmnetr archive

Depends

R ≥ 3.4.0

Imports

glmnet
survival
Matrix
xgboost
smoof
mlrMBO
ParamHelpers
randomForestSRC
rpart
torch

Suggests

R.rsp