1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
7
<DATE>February 2001</DATE>
8
<SHORT_DESCRIPTION name="regress"> regression coefficients of two variables</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>coefs=regress(x,y) </CALLING_SEQUENCE_ITEM>
15
<PARAM_NAME>x,y</PARAM_NAME>
17
<SP>: real or complex vector</SP>
24
This function computes the regresion coefficients of two
25
variables <VERB>x</VERB> and <VERB>y</VERB>, both numerical vectors of
26
same number of elements <VERB>n</VERB>. <VERB>coefs=[a b]</VERB> be a
27
1x2 matrix such that <VERB>Y=a+bX</VERB> will be the equation of
28
the ordinary least square approximation to our data.</P>
30
<SECTION label="References">
32
Wonacott, T.H. & Wonacott, R.J.; Introductory Statistics, J.Wiley & Sons, 1990.</P>
36
x=[0.5608486 0.6623569 0.7263507 0.1985144 0.5442573 0.2320748 0.2312237]
37
y=[0.3616361 0.2922267 0.5664249 0.4826472 0.3321719 0.5935095 0.5015342]
46
<AUTHOR> Carlos Klimann</AUTHOR>