Description Usage Arguments Details Value Author(s) References See Also Examples
This function computes the lasso and adaptive lasso solution based on k-fold cross-validation. The initial weights for adaptive lasso are computed from a lasso fit.
1 |
X |
matrix of input observations. The rows of |
y |
vector of responses. The length of y must equal the number of rows of X |
k |
the number of splits in |
use.Gram |
When the number of variables is very large, you may not want LARS to precompute the Gram matrix. Default is |
both |
Logical. If both=FALSE, only the lasso coefficients are computed. Default is both=TRUE. |
intercept |
Should an intercept be included? Default is |
In each of the k
-fold cross-validation steps, the weights for adaptive lasso are computed in
terms of a lasso fit. (The optimal value of the
penalty term is selected via k
-fold cross-validation). Note that this implies that a lasso solution is computed k*k times!
intercept.lasso |
intercept for lasso. If |
intercept.adalasso |
intercept for adaptive lasso. If |
coefficients.adalasso |
regression coefficients for adaptive lasso. |
coefficients.lasso |
regression coefficients for lasso. |
cv.lasso |
cv error for the optimal lasso model. |
cv.adalasso |
cv error for the optimal adaptive lasso model. |
lambda.lasso |
optimal lambda value for lasso- |
lambda.adalasso |
optimal lambda value for adaptive lasso. |
Nicole Kraemer, Juliane Schaefer
H. Zou (2006) "The Adaptive Lasso and its Oracle Property", Journal of the American Statistical Association 101 (476): 1418-1429.
N. Kraemer, J. Schaefer, A.-L. Boulesteix (2009) "Regularized Estimation of Large-Scale Gene Regulatory Networks using Gaussian Graphical Models", BMC Bioinformatics, 10:384
http://www.biomedcentral.com/1471-2105/10/384/
1 2 3 4 5 |
Loading required package: MASS
Loading required package: glmnet
Loading required package: Matrix
Loading required package: foreach
Loaded glmnet 2.0-16
Loading required package: ppls
Loading required package: splines
Loading required package: Epi
Loading required package: GeneNet
Loading required package: corpcor
Loading required package: longitudinal
Loading required package: fdrtool
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.