regress - regression coefficients of two variables

Calling Sequence

coefs=regress(x,y)

Parameters

Description

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.

REFERENCES

Examples

See Also

Author