This routine will calculate the slope, the intercept and their standard error from arrays of X and Y with an optional weight on the Y values.

It is a very simple routine, the attached vi (in Labview 2018) can be downloaded here. It is used in calculating the Seebeck coefficient in other routine that will be posted here.