# Re: [R] non linear 3SLS with constraints

From: Spencer Graves <spencer.graves_at_pdf.com>
Date: Fri 03 Feb 2006 - 04:40:29 EST

RSiteSearch("3SLS") produced 27 hits for me just now. This identified several functions in contributed packages that offer 3SLS. I didn't look at all of them, but I didn't see any mention of constraints in the ones I skimmed. RSiteSearch("nonlinear least squares with constraints") returned 13, including
"http://finzi.psych.upenn.edu/R/Rhelp02a/archive/13304.html". This is a comment from Doug Bates, who is one of the world's leading experts on nonlinear regression. He suggests eliminating the constraints by transformation, and provides a reference to his book on the subject (which I highly recommend, if you are not already familiar with it).

I can't think of any sensible technique related to statistical computing that can NOT be done in R. Moreover, the more obscure or nonstandard the technique, the more likely it will be more easily done in R than anything else. For me, R is the premier platform for new statistical algorithm development. Much of what is available in other packages is already available in R or in a contributed package.

In particular, if you think you need 3SLS rather than some more general nonlinear least squares or maximum likelihood, or if you don't think transformations are appropriate, please submit another question to this listserve explaining as clearly and succinctly as you can why you think so.

```	  hope this helps.
spencer graves

```

Van Campenhout Bjorn wrote:

> hi,
>
> i am new here and wanted to know, before i start learning yet another statistical package:
>
> I want to estimate a system of equations that is
on linear in the parameters, using 3SLS. However, i will probably have to constrain some of the parameters to be between, say, zero and one. Is this possible with R, and better, is this easy? If so, since i am an absolute beginner, any pointers where to start would be greatly appreciated.
>
> Bjorn
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help