Grocer Function

NAME

ols2a - ordinary least squares

CALLING SEQUENCE

[results]=ols2a(y,x ,prescte,results)

PARAMETERS

Input

Output

DESCRIPTION

One of the numerous functions performing ordinary least squares: this one assumes that x et y are already a matrix and a vector respectively, that the existence or absence of a constant has already been determined (and stored in a boolean) and that a result tlist exists which can be filled.

EXAMPLE

1) r1_00=ols2a(grocer_y,grocer_x,prescte,lrmod(2))

This example is taken from automatic.

AUTHOR

Eric Dubois 2002