Grocer Function

NAME

ols0 - ordinary least squares

CALLING SEQUENCE

[bhat]=ols0(y,x)

PARAMETERS

Input

Output

DESCRIPTION

The most basic least-squares regression: provides only the estimated beta, bhat. Used mainly in other programs.

EXAMPLE

beta=ols0(y,x)

This example is taken from hwhite.

AUTHOR

Eric Dubois 2002