[R] Non Negative Least Squares Regression with nnls

2012-01-04 Thread Joglekar, Prasad V.
Hello R experts, I have two questions related to the nnls library (http://www.inside-r.org/packages/cran/nnls), and more broadly to linear regression with positive coefficients. Sample code is below the Qs. Q1: Regular regression (with lm) gives me the significance of each variable. How do I g

[R] Non-negative least squares for sparse matrix

2011-07-14 Thread Erik Wright
Hello, I am attempting to solve the least squares problem Ax = b in R, where A and b are known and x is unknown. It is simple to solve for x using one of a variety of methods outlined here: http://cran.r-project.org/web/packages/Matrix/vignettes/Comparisons.pdf As far as I can tell, none of th

Re: [R] non-negative least squares

2008-09-08 Thread Tobias Verbeke
Terry Therneau wrote: I have a problem whose solution requires non-negative least squares. That is minimize sum(y - Xbeta)^2 subject to beta >=0 Splus has the nnls.fit command. Is there an R alternative? There is a package nnls on CRAN by Kate Mullen and Ivo van Stokkum:

[R] non-negative least squares

2008-09-08 Thread Terry Therneau
I have a problem whose solution requires non-negative least squares. That is minimize sum(y - Xbeta)^2 subject to beta >=0 Splus has the nnls.fit command. Is there an R alternative? Terry Therneau __ R-help@r-project.org ma