powered by
Data for Exercise 9.36
Toaster
A data frame/tibble with 17 observations on three variables
name of toaster
Consumer Reports score
price of toaster (in dollars)
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
# NOT RUN { plot(cost ~ score, data = Toaster) model <- lm(cost ~ score, data = Toaster) summary(model) names(summary(model)) summary(model)$r.squared plot(model, which = 1) # }
Run the code above in your browser using DataLab