Learn R Programming

nnlasso (version 0.3)

coef.nnlasso: Extract coefficients from a fitted nnlasso object

Description

The function returns the coefficients from a fitted nnlasso object

Usage

"coef"(object,...)

Arguments

object
A `nnlasso' object obtained using `nnlasso' function.
...
Not used

Value

References

Mandal, B.N. and Ma, J. (2016). L1 regularized multiplicative iterative path algorithm for non-negative generalized linear models

Examples

Run this code
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)

Run the code above in your browser using DataLab