Hello,
I am trying to do a nonlinear model using the "nls" command in R software.
The data I am using is as follows:
A<-c(7.132000,8.668667,9.880667,8.168000,10.86,10.381333,11.059333,7.589333,4.716667,4.268667,7.265333,10.309333,8.456667,13.359333,8.624000,13.571333,12.52,4.084667
,NaN,NaN)
Pot<-c(21.70,16.70,16.40,17.20,17.83,18.27,18.97,18.40,19.10,18.33,16.33,21.47,7.03,NaN,6.37,6.70,16.63,15.67
,17.88,NaN)
When using the nls command I recieve an error like this:
>mod = nls(A~ Amax * (1-exp(-b*Pot)),start=list(Amax=10,b=0.003))
/
/
Error in nls(A~ Amax * (1 - exp(-b * Pot), start = list(Amax = 10, :
/ step factor 0.000488281 reduced below 'minFactor' of 0.000976562
/I suppose that the used model is wrong, specialy Amax. I studied somewhere I
should use "plinear" model but I did not know.
If you can guide me, any advices would be realy appreciated.
Thank you in advance,/
Best regards,
Mitra RAHMATI/
[[alternative HTML version deleted]]
__
R-help@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.