coef.extlasso | R Documentation |
The function returns the coefficients from a fitted extlasso object
## S3 method for class 'extlasso' coef(object,...)
object |
A ‘extlasso’ object obtained using ‘extlasso’ function. |
... |
Not used |
Estimated coefficients for different lambdas starting from maximum value of lambda to minimum value of lambda
B N Mandal and Jun Ma
Mandal, B.N. and Jun Ma, (2014). A Jacobi-Armijo Algorithm for LASSO and its Extensions.
x=matrix(rnorm(100*30),100,30) y=sample(c(0,1),100,replace=TRUE) g1=extlasso(x,y,family="binomial") coef(g1) x=matrix(rnorm(100*30),100,30) y=rnorm(100) g1=extlasso(x,y,family="normal") coef(g1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.