Learn R Programming

nethet (version 1.4.2)

screen_cvsqrt.lasso: Cross-validated Lasso screening and sqrt-truncation.

Description

Cross-validated Lasso screening and sqrt-truncation.

Usage

screen_cvsqrt.lasso(x, y)

Arguments

x
Predictor matrix.
y
Response vector.

Value

  • Active-set.

Details

Computes Lasso coefficients (cross-validation optimal lambda). Truncates smallest coefficients to zero, such that there are no more than sqrt(n) non-zero coefficients.

Examples

Run this code
screen_cvsqrt.lasso(matrix(rnorm(5000),50,100),rnorm(50))

Run the code above in your browser using DataLab