Fitting Data

Hello Community!

I would like to know about which package you would recommend me to fit data sets, i.e received from a spectral analysis. Currently I am working with GnuPlot, but I guess there is a more accurate way to do that. Anyways, looking forward to your thoughts an recomendations.

Best wishes,

Probably that depends on the data and what you mean by accurate. But LsqFit is a common option.

A simple interface for 2D fits is:

For more complex fitting you probably need an optimization package like JuMP or Optim.