Description Usage Arguments Value Examples
Reduce the dimensionality (i.e., the column number) of a design matrix to a desired level using Lasso.
1 | reduce.dim(fit, X, bound)
|
fit |
The fitted cross validation object generated by glmnet::cv.glmnet. |
X |
An input design matrix whose column number is the dimensionality to be reduced. |
bound |
The targeted number of dimensionality after reducing. |
A list of (1) index.X, indices of selected columns in the design matrix; (2) sub.X, indices of selected columns in the design matrix.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.