# S3 method for LarsPath
coef(object, index = NULL, mode = c("lambda", "step", "fraction", "norm"), ...)
Value
A vector containing the estimated coefficient for index
Arguments
object
a LarsParth object
index
If mode ="norm", index represents the l1-norm of the coefficients with which we want to predict.
If mode="fraction", index represents the ratio
(l1-norm of the coefficients with which we want to predict)/(l1-norm maximal of the LarsPath object).
If mode="lambda", index represents the value of the penalty parameter. If mode="step", index represents the step number
at which we want coefficients.