[R] Linear Models with positive coefficients?

Bill Simpson wsimpson at gcal.ac.uk
Thu Jul 8 12:06:31 CEST 1999

I don't think nnls.fit is available in R.

I would guess the way to do it would be to use a nonlinear optimizer that
allows constraints on the search space. R has a nonlinear optimizer called
nlm, but it does an unconstrained search. (nlm is just a standard routine
from netlib I think that is glued onto R. It would be nice to have a
nonlin optimizer with constraints, and several exist at netlib and
elsewhere; perhaps someone with the need for it and the knowledge of how
to do it will glue one onto R)


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list