I am trying to fit my modely~exp((a*x1+b*x2+c)^d)+f
but I getting an error as I am not sure how to incorporate mapply with nlsLM
from Package:minpack.lm
ERROR:
Error in fn(par, ...) :
unused arguments (x1 = c(0.203114295490632, -0.16516023916803,
0.0870323364177826,
More explanation with different structure of the data:
So the first call to fun should be:y[1,1,],x1[1,1,],x2[1,1,]
:fit the model using these value and give the results.then go to next call and do the same:y[1,2,],x1[1,2,],x2[1,2,]
...etc