Re: [R] Non linear regression with 2 explanatory variables

From: Rolf Turner <r.turner_at_auckland.ac.nz>
Date: Thu, 17 Jan 2008 08:51:21 +1300

I have never had much success in using nls(). If you scan the archives you will find one or two postings from me on this topic. I have received
no useful responses to these postings.

I have found that anything that I tried (and failed) to do using nls() could be done quite easily using optim().

        cheers,

                Rolf Turner

On 17/01/2008, at 3:56 AM, Gavin Simpson wrote:

> hits=-2.6 tests=BAYES_00
> X-USF-Spam-Flag: NO
>
> On Wed, 2008-01-16 at 11:02 +0100, Janice Kielbassa wrote:
>> Hello!
>>
>> I want to do a non-linear regression with 2 explanatory variables
>> (something like : length ~ a * time * exp( b* temperature)), having a
>> data set (length, time, temperature). Which function could I use (I
>> tried nls but I think it doesn't work)
>
> Janice, I'll start by saying I can't help you as I have never used
> nls()
> myself and I am not familiar with this type of analysis.
>
> Why do you think that nls() "doesn't work"? It is a widely used
> part of
> R and thus probably very well tested.
>
> My understanding of these things is that nls is a sophisticated tool
> that requires some effort on the part of the user, such as selecting
> appropriate starting values.

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 16 Jan 2008 - 19:55:03 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 17 Jan 2008 - 00:30:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive