powered by
Data for Exercise 9.32
Moisture
A data frame/tibble with 16 observations on four variables
a numeric vector
g of water per 100 g of dried sediment
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
# NOT RUN { plot(moisture ~ depth, data = Moisture) model <- lm(moisture ~ depth, data = Moisture) abline(model, col = "red") plot(resid(model) ~ depth, data = Moisture) rm(model) # }
Run the code above in your browser using DataLab