| Regression coefficients and predicted values in LASSO-type problems | R Documentation |
Retrieving regression coefficients and predicted values from the 'solveEN' and 'LARS' functions' outputs
## S3 method for class 'LASSO'
coef(object, ...)
## S3 method for class 'LASSO'
predict(object, ...)
object |
An object of the class 'LASSO' returned either by the function 'LARS' or 'solveEN' |
... |
Other arguments:
|
Method coef returns a matrix that contains the regression coefficients (in rows) associated to each value of lambda (in columns). When the regression was applied to an object Gamma with more than one column, method coef returns a list
Method predict returns a matrix with predicted values
Xβ (in rows)
for each value of lambda (in columns).
# See examples in
# help(solveEN, package="SFSI")
# help(LARS, package="SFSI")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.