Learn R Programming

BSDA (version 1.01)

Register: Maintenance cost versus age of cash registers in a department store

Description

Data for Exercise 2.3, 2.39, and 2.54

Usage

Register

Arguments

Format

A data frame with 9 observations on the following 4 variables.

age

a numeric vector

cost

a numeric vector

SRES1

a numeric vector

FITS1

a numeric vector

Examples

Run this code
# NOT RUN {
str(Register)
attach(Register)
plot(age,cost,main="Exercise 2.3")
model <- lm(cost~age)
abline(model)
plot(age,resid(model))
detach(Register)
# }

Run the code above in your browser using DataLab