coef.extlasso: Extract coefficients from a fitted extlasso object

Description Usage Arguments Value Author(s) References Examples

View source: R/extlasso.R

Description

The function returns the coefficients from a fitted extlasso object

Usage

1
2
## S3 method for class 'extlasso'
coef(object,...)

Arguments

object

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

...

Not used

Value

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

Author(s)

B N Mandal and Jun Ma

References

Mandal, B.N. and Jun Ma, (2014). A Jacobi-Armijo Algorithm for LASSO and its Extensions.

Examples

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

extlasso documentation built on May 2, 2019, 11:39 a.m.