I\'ve tried searching the other threads on this topic but none of the fixes are working for me. I have the results of a natural experiment and I want to show the number of c
Please check nlsLM function in minpack.lm package. This is a more robust version of nls and can handle data with zero residual sum of squares.
https://www.r-bloggers.com/a-better-nls/