cv.rlasso: rLASSO using path algorithm, where an optimal tuning...

Description Usage Arguments

View source: R/rlasso.R

Description

rLASSO using path algorithm, where an optimal tuning parameter is found by cross validation

Usage

1
cv.rlasso(X, Y, lambda = NULL, nlambda = 100, nfolds = 5)

Arguments

X

design matrix

Y

outcome vector

lambda

a vector of tuning parameters. If left unspecified, using the sequence of numbers from 0 to the smallest tuning parameter such that the solution is the zero vector

nlambda

the number of the sequence of the tuning parameters.

nfolds

number of folds in the cross-validation


KenLi93/PPWLSE documentation built on Dec. 18, 2021, 3:32 a.m.