screen_cvfix.lasso: Cross-validated Lasso screening and upper bound on number of...

Description Usage Arguments Details Value Author(s) Examples

View source: R/diffregr.R

Description

Cross-validated Lasso screening and upper bound on number of predictors

Usage

1
screen_cvfix.lasso(x, y, no.predictors = 10)

Arguments

x

Predictor matrix.

y

Response vector.

no.predictors

Upper bound on number of active predictors,

Details

Computes Lasso coefficients (cross-validation optimal lambda). Truncates smalles coefficients to zero such that there are no more than no.predictors non-zero coefficients

Value

Active-set.

Author(s)

n.stadler

Examples

1
screen_cvfix.lasso(matrix(rnorm(5000),50,100),rnorm(50))

nethet documentation built on Nov. 8, 2020, 6:54 p.m.