http://nevafuly.keep.pl/cas-and-linear-regressions.php.