Note: If given the option, right-click on the files, and choose "Save Link/Target As".

The Dental Veneer Data

Level 1 SPSS Data Set for HLM

Level 2 SPSS Data Set for HLM

Level 3 SPSS Data Set for HLM

MDM Data File for HLM

SAS Syntax (PROC MIXED)

SAS Syntax (PROC GLIMMIX)

SPSS Syntax (Version 28)

R Syntax: lme()

R Syntax: lmer()

Stata .do file (Version 17; includes commands for descriptives and diagnostics)

SAS Syntax for Descriptive Statistics

SPSS Syntax for Descriptive Statistics

R Syntax for Descriptive Statistics

HLM Steps for obtaining Descriptive Statistics

SAS Syntax for Final Model Diagnostics

SPSS Syntax for Final Model Diagnostics

R Syntax for Final Model Diagnostics

Chapter 4 in the book describes how residual files can be saved and processed using the HLM software.

1. Please click here and here for examples of how to produce estimates of marginal variance-covariance matrices for three-level models when using getVarCov() in R. Many thanks to Berwin Turlach from the University of Western Australia for sharing this trick!

Last updated 6/19/22.