library(tidyverse)
library(knitr)
library(broom)
library(Sleuth3)
library(leaps)
sat_scores <- case1201 %>%
  select(-State) #remove the state variable

Backward selection “manually”

full_model <- lm(SAT ~ ., data = sat_scores)
m1 <- lm(SAT ~ Income + Years + Public + Expend + Rank, data = sat_scores)
m2 <- lm(SAT ~ Takers + Years + Public + Expend + Rank, data = sat_scores)
m3 <- lm(SAT ~ Takers + Income + Public + Expend + Rank, data = sat_scores)
m4 <- lm(SAT ~ Takers + Years + Income + Expend + Rank, data = sat_scores)
m5 <- lm(SAT ~ Takers + Years + Public + Income + Expend, data = sat_scores)
m6 <- lm(SAT ~ Takers + Years + Public + Income + Rank, data = sat_scores)

Continue the model selection until you have a final model. Show each step of the model selection process.

Backward selection using regsubsets

Changing selection criteria

Different selection procedure

Choosing a final model