coef.nnlasso {nnlasso}R Documentation

Extract coefficients from a fitted nnlasso object

Description

The function returns the coefficients from a fitted nnlasso object

Usage

## S3 method for class 'nnlasso'
coef(object,...)

Arguments

object

A ‘nnlasso’ object obtained using ‘nnlasso’ function.

...

Not used

Value

Estimated coefficients for different lambdas starting from maximum value of lambda to minimum value of lambda

Author(s)

Baidya Nath Mandal and Jun Ma

References

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

Examples

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)

[Package nnlasso version 0.3 Index]