Dear Peter Thank you that is an error in the code but unfortunately the problem is still apparent. I think it is related to calculating the gradient Tom -- View this message in context: http://n4.nabble.com/Confidence-intervals-nls-tp1556487p1556585.html Sent from the R help mailing list archive at Nabble.com.