CRAN/E | glmnetr

glmnetr

Relaxed Lasso Model for Data Which Might Have Long Run Times Using 'glmnet'

Installation

About

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, in particular when fitting a Cox based model, making it difficult to get solutions either from glmnet() or cv.glmnet(). In this package, 'glmnetr', we provide a workaround and solve for the non penalized relaxed model where gamma=0 for model structures analogue to 'R' functions like glm() or coxph() of the 'survival' package. If you are not fitting relaxed lasso models, or if you are able to get convergence using 'glmnet', then this package may not be of much benefit to you. Note, while this package may allow one to fit relaxed lasso models that have difficulties converging using 'glmnet', this package does not afford the full function and versatility of 'glmnet'. In addition to fitting the relaxed lasso model this package also includes the function cv.glmnetr() to perform a cross validation to identify hyper-parameters for a lasso fit, much like the cv.glmnet() function of the 'glmnet' package. Additionally, the package includes the function nested.glmnetr() to perform a nested cross validation to assess the fit of a cross validated derived lasso model fit. If though you are 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' first 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.1-2
R ≥ 3.4.0
Published 2023-02-18 30 days ago
Needs compilation? no
License GPL-3
CRAN checks glmnetr results

Downloads

Last 24 hours 0 -100%
Last 7 days 96 +81%
Last 30 days 315 -6%
Last 90 days 928 +2408%
Last 365 days 957

Maintainer

Maintainer

Walter K Kremers

kremers.walter@mayo.edu

Authors

Walter K Kremers

aut / cre

Material

Reference manual
Package source

Vignettes

Using glmnetr
Using stepreg

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

glmnetr archive

Depends

R ≥ 3.4.0

Imports

glmnet
survival
Matrix
rpart

Suggests

R.rsp