Calculation of slope and points on the regression line