A pure(r) implementation of OLS and logistic regression.