I have a R / S / Nonlinear regression related issue and i am not a R programmer, so i kinda need help.
I have two arrays - tt and td.
I need to find the parameters a,b and c so the sum of least squares is minimal for a non linear function:
td / tt - a * exp( b * tt ) + c
I have no idea how to do this. I tried nls()
function, nls2()
nad had no luck...
Thanks in advance.
EDIT:
My data:
td <-as.array(0.2, 0.4, 0.8, 1.5, 3);
tt <-as.array(0.016, 0.036, 0.0777, 0.171, 0.294);
With the method from the answer below, i get ok values for random data, but the data i am using returns the Missing value or an infinity produced when evaluating the model message.
Sorry for not providing data sooner.