Grocer Function

NAME

threesls - Three-Stage Least-squares Regression

CALLING SEQUENCE

[results]=threesls(arg1,...,argn)

PARAMETERS

Input

Output

DESCRIPTION

Computes Three-Stage Least-squares Regression

EXAMPLE

r=threesls('y1=a1+b1*x1','y2=a2+b2*x2+c2*y1','y3=a3+b3*x3+c3*y2+d3*x2',... 'coef=a1;a2;a3;b1;b2;b3;c1;c2;c3;d3')

Example taken from function threesls_d. The equations are 'y1=a1+b1*x1','y2=a2+b2*x2+c2*y1' and 'y3=a3+b3*x3+c3*y2+d3*x2'.Coefficients are a1, a2, a3, b1, b2, b3, c1, c2, c3, d3. Their name is given to the function through the input 'coef=a1;a2;a3;b1;b2;b3;c1;c2;c3;d3'.

AUTHOR

Eric Dubois 2002