A wrapper to create a lm model just specifying columns, generating a model formula for you. This makes it easier to run automated comparisons with other models in heuristica.

1 | ```
regInterceptModel(train_matrix, criterion_col, cols_to_fit)
``` |

`train_matrix` |
A matrix (or data.frame) of data to train (fit) the model with. |

`criterion_col` |
The index of the criterion columnâ€“ "y" in the formula. |

`cols_to_fit` |
A vector of column indexes to fitâ€“ the "x's" in the formula. |

This version assumes you always want to include the intercept.

An object of class regInterceptModel, which is a subclass of lm.

`regModel`

for a version that excludes the intercept.

`predict.lm`

for prediction.

`predictPairProb`

for predicting between a pair of rows.

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

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