Learn R Programming

BSDA (version 1.2.0)

Readiq: Reading scores versus IQ scores

Description

Data for Exercises 2.10 and 2.53

Usage

Readiq

Arguments

Format

A data frame/tibble with 14 observations on two variables

reading

reading achievement score

iq

IQ score

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(reading ~ iq, data = Readiq)
model <- lm(reading ~ iq, data = Readiq)
abline(model, col = "purple")
predict(model, newdata = data.frame(iq = c(100, 120)))
residuals(model)[c(6, 7)]
rm(model)

# }

Run the code above in your browser using DataLab