apologies if this is a very simple question, but I have searched everywhere and can't find a solution. I have a data file with three columns - x:y:xerrors. I want to fit a function f(x) to the data, by entering
f(x)=a*x+b
fit f(x) 'data' using 1:2:3 via a,b
But is this fit assuming that the entries in column 3 are y-errors, when actually they are x-errors?
Change: fit f(x) 'data' using 1:2:3 via a,b
To: fit f(x) 'data' using 1:2:3 with xerrorbars via a,b
This treats the 3rd column as the uncertainty in x and computes an appropriate weight for the WSSR.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With