LinearRegressionByClass function

Linear regression by class