Mixed Models: Diagnostics and Inference solutions

This article contains solutions to exercises for an article in the mixed models series. For a list of topics covered by this series, see the Introduction.

There is often more than one approach to the exercises. Do not be concerned if your approach is different than the solution provided.

  • We will load some packages which will be used in the solutions.


Exercise solutions

Use the models from sleepstudy data set for the following exercises. The models used in these solutions were constructed in the the Solutions for the Model's article.

  1. Create a residual plot for your linear sleep study model.


  2. Check the normality of the residuals from your linear sleep study model.


  3. Check if your linear sleep study model has any leverage points are of concern.

        aes(x=lev,y=pearson)) +
      geom_point() +

  4. Predict the average response time for eight days in the sleep deprivation study.

    newDatSS <- data.frame(Days=c(8))

Return to the Diagnostics and Other Inferences article

Last Revised: 3/30/2016