I got this error although it is real positive.
Error in max_nr_method (line 35) frfCurve(location(i))
I printed the value of location(i) right before the error. It is 1002016.
The error is not about the value being huge, because it was greater in the previous iteration.
Thanks in advance.
Best Answer