From the full model to the n-1 model

We start with the full model, that is, the model with all variables included:

With the first step we try all possible combinations of 5-1 = 4 variables:

Based on the R-squared of each model from 1A to 1E, we choose the best model, which here we are supposing to be the 1E. In the next step we, therefore, remove the violet variable:

This second step is exactly equal to the first: we try all possible combinations ...

Get R Data Mining now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.