Learn R Programming

GDSARM (version 0.1.1)

dantzigS: Dantzig selector using the lpsolve package

Description

The Dantzig selector (DS) finds a solution for the model parameters of a linear model, beta using linear programming. For a given delta, DS minimizes the L_1-norm (sum of absolute values) of beta subject to the constraint that max(|t(X)(y-X * beta)|)<= delta.

Usage

dantzigS(X, y, delta, scale.X = 1)

Value

A list containing the (a) opt (Value of objective function at optimum), (b) status (Numeric indicator: 0 = success, 2 = no feasible solution), (c) beta (the estimated values of beta), (d) delta

Arguments

X

a design matrix.

y

a vector of responses.

delta

the specific value of delta for which the Dantzig Selector optimization needs to be solved

scale.X

a number by which each column of X should be scaled