LASSO.exact() generates the next value of $\lambda_k$ and the associated selection indicator vector.
LASSO.exact(lambda, tau, X, y)lambda. It does not need to be one of the $\lambda_k$s.
"+"), inactive ("-"), or remains unchanged ("|").
This function computes the next $\lambda_k$ that $\lambda_k<\lambda$. although="" it="" is="" a="" stand-alone="" function,="" meant="" to="" be="" called="" by="" exact.path(). exact.path() automatically finds recursively the $\lambda_k$s and sets up the correct values for tau for each $\lambda_k$.\lambda$.>
It is not necessary to standardize the columns of X and the response vector y. Such standardization is conducted anyway in this function.
exact.path automatically generates the whole solution paths.
library(lars)
data(diabetes)
LASSO.exact(0.05, c(0,-1,1,1,0,0,-1,0,1,1), diabetes$x, diabetes$y)
Run the code above in your browser using DataLab