I inserted the non-linear adjustment function gnls
into a loop for
so that I could test a series of start values
automatically.
The issue is that eventually any of these start values
generate error in the gnls
routine.
What I need to do is to cause the loop
to return with the next value in the event of an error, ignoring the problem.
Something like on error goto next
, but there is no such syntax in R.