Fit a linear regression model using Ordinary Least Squares.
This function may be called directly. For regression with an intercept included, the first column in the dataset must be a column of 1s.
the function returns a column-vector containing the linear regression coefficients.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.