Learn R Programming

BSDA (version 1.2.0)

Retail: Length of employment versus gross sales for 10 employees of a large retail store

Description

Data for Exercise 9.59

Usage

Retail

Arguments

Format

A data frame/tibble with 10 observations on two variables

months

length of employment (in months)

sales

employee gross sales (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(sales ~ months, data = Retail)
model <- lm(sales ~ months, data = Retail)
abline(model, col = "blue")
summary(model)

# }

Run the code above in your browser using DataLab