8

I am interested in solving the following problem

$$ \min_{\boldsymbol{\beta}} \left( \mathbf{y}-\mathbf{X}\boldsymbol{\beta} \right)^T W \left( \mathbf{y}-\mathbf{X}\boldsymbol{\beta} \right) + \lambda \left|\boldsymbol{\beta}\right|_1 $$

$\mathbf{y}$ is the vector of observations for each dataset.

$\mathbf{X}$ is the matrix of predictors.

$\boldsymbol{\beta}$ is the set of regression coefficients.

$\mathbf{W}$ is a diagonal matrix filled with positive real numbers.

using the LARS-Lasso approach. Is there any existing package that does this, meaning that it accepts weights for each as an input?

With all the normalizing of the datasets (centering and scaling) that need to be done, I am hesitant to pre-process my data and multiply both the observation and the predictors with $\sqrt{W}$ and feed it in to the algorithm.

jonsca
  • 1,790
  • 3
  • 20
  • 30
Meenakshi
  • 391
  • 2
  • 9
  • Are you asking for an `R` package? Are you wondering about anything other than the name of a package that would do this for you? If not, this question is probably best asked on the r-help-listserve; it would be off-topic here (please see our [FAQ](http://stats.stackexchange.com/faq)). – gung - Reinstate Monica Nov 08 '12 at 20:40
  • Nope. This question is not specific to R. I am interested in finding if there exists any implementation of lars-lasso that takes into accounts weights on datasets. – Meenakshi Nov 08 '12 at 20:56
  • You want to know if there's any implementation of these algorithms in any software anywhere? – gung - Reinstate Monica Nov 08 '12 at 21:18
  • I have seen several implementation on the internet, the lars package in R, the package in mlpack etc.. but I am not aware of any that takes weights for the datasets into account. – Meenakshi Nov 09 '12 at 02:04

1 Answers1

4

The glmnet Package solves the lasso problem using coordinate descent. It also provides features for adding in weights

Meenakshi
  • 391
  • 2
  • 9
  • You can mark this reply as accepted (and change at a later time if another answer is proposed). – chl May 05 '13 at 14:19