Re: [R] Use of optim to fit two curves at the same time ?

2012-04-26 Thread Rolf Turner
On 27/04/12 05:49, Greg Snow wrote: The phrase "does not work" is not very helpful, it can mean quit a few things including: * Your computer exploded. * No explosion, but smoke is pouring out the back and microsoft's "NoSmoke" utility is not compatible with your power supply. * The computer stop

Re: [R] Use of optim to fit two curves at the same time ?

2012-04-26 Thread Arnaud Mosnier
I second the proposition ! Thanks to let me discover that absolutely essential library !! :-) Arnaud Le 26 avril 2012 15:30, Marc Schwartz a écrit : > > On Apr 26, 2012, at 12:49 PM, Greg Snow wrote: > > > The phrase "does not work" is not very helpful, it can mean quit a few > > things includi

Re: [R] Use of optim to fit two curves at the same time ?

2012-04-26 Thread Marc Schwartz
On Apr 26, 2012, at 12:49 PM, Greg Snow wrote: > The phrase "does not work" is not very helpful, it can mean quit a few > things including: > > * Your computer exploded. > * No explosion, but smoke is pouring out the back and microsoft's > "NoSmoke" utility is not compatible with your power supp

Re: [R] Use of optim to fit two curves at the same time ?

2012-04-26 Thread Arnaud Mosnier
Nice, thank you ! I particularly appreciated the list of possible explanations for "it does not work" ! :-) Arnaud Le 26 avril 2012 13:49, Greg Snow <538...@gmail.com> a écrit : > The phrase "does not work" is not very helpful, it can mean quit a few > things including: > > * Your computer explo

Re: [R] Use of optim to fit two curves at the same time ?

2012-04-26 Thread Greg Snow
The phrase "does not work" is not very helpful, it can mean quit a few things including: * Your computer exploded. * No explosion, but smoke is pouring out the back and microsoft's "NoSmoke" utility is not compatible with your power supply. * The computer stopped working. * The computer sits aroun

Re: [R] Use of optim to fit two curves at the same time ?

2012-04-25 Thread Arnaud Mosnier
Dear list, In order to find a solution to my problem, I created a third objective function including both calculations done in the previous cases. This function return a value (i.e. the value to be minimize by optim) equal to the sum of the two sum of squares, but it does not work (see the code ad

[R] Use of optim to fit two curves at the same time ?

2012-04-24 Thread Arnaud Mosnier
Dear list, Here is a small example code that use optim and optimize in order to fit two functions. Is it possible to fit two functions (like those two for example) at the same time using optim ... or another function in R ? Thanks Arnaud #