ols function

Ordinary least squares.