The Linear Regression function is composed of the functions LinReg and LinRegMatrix. LinRegMatrix takes a data set and outputs a linear regression model. LinReg takes the linear regression model and outputs its coefficients. The 0th coefficient corresponds to the slope intercept.
The output of the Linear Regression function can be input to the LinRegPredict function (as the model table).