Description Usage Arguments Value Author(s) See Also Examples
get the lambda value that yield certain number of non-zero coefficients
1 | getLambdaNcoef(y, x, lambda1, nCoef, track=FALSE, model='linear', standardize=FALSE)
|
y |
A vector of expressions |
x |
a matrix of CN variables |
lambda1 |
minimum lambda to use |
nCoef |
the number of coefficients to get |
track |
logical value for tracking the progress |
model |
which model to use, default to 'linear' |
standardize |
standardize the data or not |
lambda |
The lambda value that gives approximate same number of non-zero coefficients as required |
Yinyin Yuan
lasso
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.