Fit a linear regression model using Ordinary Least Squares.

1 | ```
ols.rgr(dataset)
``` |

`dataset` |
a |

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 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.