SciRuby/statsample-glm — pull request #2 by v0dro (2014-09-14 19:49:06+00:00)
Title: Changed the GLM API for consistency

I have made some changes in the API so that we can integrate seamlessly with Statsample::MLE.

The constructor now accepts an entire dataset which includes the 'y' value of the regression, so that loading data from files will be fecilitated. The user then specifies the column name that should be used as the dependent variable. This I think adds more flexibility.

There was a bug in the original statsample-glm that if intercept values wernt supplied as the first column of the dataset, the regression would fail. This was handled in MLE by later appending a column of intercepts, which is what is done here too. We now give the user an option in the constructor to determine the value of intercepts, so that such type of bugs will be altogether avoided.

In the next few days I will add support for Newton Raphson from Statsample::MLE and give the user an option to choose the algorithm she wants to use, along with comprehensive documentation.

Once that is done, statsample will be completely relieved of GLM methods.

Please evaluate the code and let me know.

Cheers!