Apologies in advance as maths isn't my strong point, so please go easy with your replies!
I'm using the "lsfitlinearw" method (least squares linear fit with weighting) to calculate the slope and intercept for a series of X,Y points. I've now been asked to "calculate the standard error and relative standard error of the slope and intercept". How would I go about doing this? I've noticed the lsfitlinearw method returns a series of "fitting report" error values and wondered if any of these would be relevant?
The alglib documentation describes the error values as follows:  "RMS error on the X,Y"  "Average error on the X,Y"  "Average relative error on the nonzero Y"  "Maximum error"
Thanks in advance Andrew
