Learn R Programming

BSDA (version 1.2.0)

Aptitude: Aptitude test scores versus productivity in a factory

Description

Data for Exercises 2.1, 2.26, 2.35 and 2.51

Usage

Aptitude

Arguments

Format

A data frame/tibble with 8 observations on two variables

aptitude

aptitude test scores

product

productivity scores

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(product ~ aptitude, data = Aptitude, main = "Exercise 2.1")
model1 <- lm(product ~ aptitude, data = Aptitude)
model1
abline(model1, col = "red", lwd=3)
resid(model1)
fitted(model1)
cor(Aptitude$product, Aptitude$aptitude)

# }

Run the code above in your browser using DataLab