alpmestan/statistics-linreg — pull request #3 by uriba (2012-12-09 12:10:39+00:00)
Title: Robust fit support

Hi Alp,
Hope you're doing well.

* Added support for robust fit based on the referenced article (see bottom-most link - It was a pretty friendly article to read, at least for me).
* Package dependencies changed and the test now also depends on plot.
* Minor version bumped.

Advice/review/suggestions are highly welcomed as this is quite a lot of code and I have a hunch it might be better structured functionally (all these if-then-else blocks that I'm wondering if there is any way of making nicer).
More ideas/implementations of tests are also welcomed (I've tested the provided example with larger set (10000 points that the algorithm reduces as is described in the article) but dropped it from the final code as it took a few minutes to run).

There are a few internal utility functions that could serve other purposes as well but that I have no idea where/if to export somehow.

The image output of the test is pretty nice, though.

Have a nice day,
Uri