First we load the mosaic
package, and then read in the data from a file.
Now, let’s plot the data with a line
## Warning: `data_frame()` was deprecated in tibble 1.1.0.
## Please use `tibble()` instead.
Let’s fit the model and store it as an lm
object.
How do the conditions look? Let’s check the standard residual plots.
Now a density histogram of the residuals (overlaying a smooth density curve)
What does a QQ plot look like for these residuals?