Lines, Sines, and Curve Fitting 10 – nls

The “nonlinear least squares” (nls) function is part of the core of R. John Fox wrote an introduction to it: Nonlinear Regression and Nonlinear Least Squares. This function will in a few dozen iterations return a better fit than my brain-dead looping around parameter space a few tens of thousands of times. So we will … Continue reading Lines, Sines, and Curve Fitting 10 – nls