In [ ]:
library(ISLR)
summary(Carseats)
In [ ]:
lm.fit <- lm(Sales ~ Price + Urban + US, data = Carseats)
summary(lm.fit)
In [ ]:
lm.fit2 <- lm(Sales ~ Price + US, data = Carseats)
summary(lm.fit2)
In [ ]:
confint(lm.fit2)
In [ ]:
plot(predict(lm.fit2), rstudent(lm.fit2))