regression coefficients of two variables
coefs=regress(x,y)
real or complex vector
This function computes the regresion coefficients of two
variables x and y, both numerical vectors of
same number of elements n. coefs=[a b] be a
1x2 matrix such that Y=a+bX will be the equation of
the ordinary least square approximation to our data.
Wonacott, T.H. & Wonacott, R.J.; Introductory Statistics, J.Wiley & Sons, 1990.
Carlos Klimann