coef.nnlasso {nnlasso} | R Documentation |
The function returns the coefficients from a fitted nnlasso object
## S3 method for class 'nnlasso'
coef(object,...)
object |
A ‘nnlasso’ object obtained using ‘nnlasso’ function. |
... |
Not used |
Estimated coefficients for different lambdas starting from maximum value of lambda to minimum value of lambda
Baidya Nath Mandal and Jun Ma
Mandal, B.N. and Ma, J. (2016). L1 regularized multiplicative iterative path algorithm for non-negative generalized linear models
data(car)
attach(car)
x=car[,1:10]
g1=nnlasso(x,y1,family="binomial")
coef(g1)
g1=nnlasso(x,y,family="normal")
coef(g1)
detach(car)