statsmodels/statsmodels — pull request #255 by bendmorris (2012-05-06 22:33:14+00:00)
Title: NonlinearLS

I've implemented a simple nonlinear least squares regression model in class NonlinearLS of statsmodels.regression.nonlinear_model. NonlinearLS takes a model function as an argument and uses scipy.optimize.curve_fit to fit parameters. I also included a test case that ensures that running NonlinearLS with a simple linear model function returns similar results to linear_model.OLS.