<keunhchoi <at> gmail.com> writes: > > Here is a clean version. I did this with nls and it works (see below), but > I need to do it with optim. Keun-Hyung Great that you got it to work! Just curious if there is any reason why one should use optim when nls works fine? If this should be on a reviewer's request, challenge the reviewer. Dieter