elnet_coord: Solving elastic net via coordinate descent

Description Usage Arguments Value

Description

Solving elastic net via coordinate descent

Usage

1
elnet_coord(y, X, Lambda, alpha, beta_init, iterlength)

Arguments

y

The response vector

X

Design matrix

Lambda

Sequence of penalizing weights

alpha

weightage on L_1 norm

beta_init

initial coefficient vector (default rep(0,ncol(X)) - the zero vector )

iterlength

no. of iteration of the coordinate descent algorithm (default = 1000)

Value

Solution path - A matrix of dimension (length(Lambda),ncol(X)) where each row gives the coefficient vector for a fixed Lambda.


samlahiry/hw2 documentation built on May 25, 2019, 12:43 a.m.