What if we would like to perform a regression using all of the variables but one? For example, in the above regression output, age has a high p-value. So we may wish to run a regression excluding this predictor. The following syntax results in a regression using all predictors except age.

lm.fit1 <- lm(medv ~ . - age, data = Boston)
summary (lm.fit1)
...

Try creating a model with all the predictors except age and crim. Store the model in lm.fit.


Assume that: