Grocer Function

NAME

twosls - Two-Stage Least-squares Regression

CALLING SEQUENCE

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

PARAMETERS

Input

Output

DESCRIPTION

Computes Two-Stage Least-squares Regression

EXAMPLE

rt=twosls('y1=a+b*x1','y2=d+e*(y1-x2)+f*x2','coef=a;b;d;e;f')

Example taken from function twosls_d. The equations are 'y1=a+b*x1' and 'y2=d+e*(y1-x2)+f*x2'. Coefficients are a, b, d, e and f. Their name is given to the function through the input 'coef=a;b;d;e;f'.

AUTHOR

Eric Dubois 2002