Learn R Programming

BSDA (version 1.2.0)

Toaster: Consumer Reports (Oct 94) rating of toaster ovens versus the cost

Description

Data for Exercise 9.36

Usage

Toaster

Arguments

Format

A data frame/tibble with 17 observations on three variables

toaster

name of toaster

score

Consumer Reports score

cost

price of toaster (in dollars)

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples

Run this code
# 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