lars.lsa.Rd
These are all variants of LASSO, and provide the entire sequence of coefficients and fits, starting from zero to the least squares fit.
lars.lsa( Sigma0, b0, n, type = c("lar", "lasso"), max.steps = NULL, eps = .Machine$double.eps, adaptive = TRUE, para = NULL )
Sigma0 | A Grammian / covariance matrix of pathway predictors. |
---|---|
b0 | An eigenvector of |
n | The sample size. |
type | Option between |
max.steps | How many steps should the LAR or LASSO algorithms take? Defaults to 8 times the pathway dimension. |
eps | What should we consider to be numerically 0? Defaults to the
machine's default error limit for doubles ( |
adaptive | Ignore. |
para | Ignore. |
An object of class "lars"
.
LARS is described in detail in Efron, Hastie, Johnstone and
Tibshirani (2002). With the "lasso"
option, it computes the complete
LASSO solution simultaneously for all values of the shrinkage
parameter in the same computational cost as a least squares fit. This
function is adapted from the lars
function in the
lars
package to apply to covariance or Grammian pathway design
matrices.