Hello everyone, I apologize if this is a trivial question, but I have been looking for an answer for a long time and I didn't manage to find any. My problem is the following: I have a set of data, tmpdata
, and a set of experimental errors on these data, tmperr
. I am performing a fit with a certain fitting function fitfunc[q]
and I would like to know how to estimate the errors on the fitted parameters. In particular, since this is an experimental measurement I want the errors on the parameters to be solely determined by the errors on the data.
Right now I am doing the following:
fitG =
NonlinearModelFit[tmpdata, fitfunc[q], param, {q},
Weights -> 1/tmperr^2];
Is this the right way to proceed? I also found that I might have to use the VarianceEstimatorFunction
option. However, it is not clear to me how I should use it and if it is necessary.
Can anyone help me out?
Thanks a lot!