coef.nnlasso: Extract coefficients from a fitted nnlasso object

Description Usage Arguments Value Author(s) References Examples

Description

The function returns the coefficients from a fitted nnlasso object

Usage

1
2
## 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

1
2
3
4
5
6
7
8
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)

nnlasso documentation built on May 2, 2019, 8:19 a.m.