Multilevel Analysis/Hierarchical Linear Modeling
Edpsych/Psych/Stat 587
C.J. Anderson
Fall 2014
General Information
Announcements
Lecture notes
Computer Lab
Homework
Examples of Papers that Use Multilevel Models
Example analyses
Handy program and links
Questions or problems regarding this site should be sent to
cja@illinois.edu.
General Information (MSword
format):
Announcements:
 For those who might want to use Bayesian estimation, I worked up a small example for the empty model, random intercept with one predictor, and a random
intercept and slope model. I also included proc mixed code if you want to compare results. You can change the seed to "1" and run the mcmc code a few times and
compare results.
 Comment regarding homework 3: The homework assignement is correct. Use model (s) as requested, which refers to the model (s) from computer labs 2 and 3
(it is written out in detail in the lab instructions for computer lab 3).
 NOTE: I made a mistake in the first session this morning (i.e., I forgot the crosslevel interactions).
 Computer lab 3 will be Tuesday October 21. Be sure to look over lab instructions and bring laptop
 Corrected computer lab 2 sheet is now online, as well as answers and SAS for homework/lab1.
 Computer lab 2 will be Thursday Sept 25. Put the lab data onto you remote.webstore account. Half class comes at 9am and the other half at 10am. Bring laptop.
 Computer lab 1 will be Tuesday Sept 9. Half class comes at 9am and the other half at 10am. Bring laptop.
 Draft chapters on GLM, GLMM, and LLM (i.e., HLM).
 Introduction to SAS will be held in rm 22 Tuesday Sept 2, 1112. Bring your laptop and make sure that you can login to the remote server.
 CHANGE: Correction to syllabusclass meet Tues/Thur 910:50 in rm 22 Education.
 cHANGE: TA office hours will be on Tuesday 24pm.
 Date \amp Time?: The introduction to SAS computer lab, which is entirely optional, will be held xxxxx. The materials that we will cover are online
 Computing: We will be running statistical software (SAS) using
remote
desktop connection. We will connect to a server that has the software. Note use "UofI" and not "UIUC" as your user name, e.g. I use "UofI\cja".
There are 2 things that you need before you can do this:
 Your computer must be hooked up to the internet (campus, home, hotel, Espresso Royal,
elsewhere).
 You must be registered for the class. If you reccently registered, you may not yet have permission to login.
Lectures Notes:
Computer Lab Sessions: Bring laptop
 Computer Lab Session 0 (optional): Introduction to SAS
 Computer Lab Session 1: (bring laptop) Tuesday September 9
 Computer Lab Session 2: (bring laptop) Thursday September 26
 Computer Lab Session 3: bring laptop. Tuesday October 21
 Computer Lab Session 4: TBA
Homework
 Homework Number 1:
 Homework Number 2
 Homework Number 3:
 Homework Number 4:
 Final Exam and Projects are due Friday Dec 13 by 5pm.
Examples of Papers that Use Multilevel Models
 Payne, B.R., Gao, X., Noh, S.R., Anderson, C.J., StineMorrow, E.A.L. (2011). The effects of print
exposure on sentence processing and memory in older adulats: Evidence for efficiency and reserve. Aging, Neuropsychology, and Cognition.
Some examples of crossed random effects, skewed responses (i.e., reaction times), and discrete response (i.e., Poisson).
 Segerstrom, S.C. & Sephton, S.E. (2010). Optimistic expectanices and cellmediated immunity: The role
of positive affect. Psychological Science, 21, 448455.
Example of where cluster centered level one variable is substantive (theoretical) interest. The response variable is numerical/continuous.
 Allen, N.E., Todd, N.R., Anderson, C.J., Davis, S.M., Javdani, Bruehler, V., & Dorsey, H.
(2013). CouncilBased approaches to intimate partner violence: Evidence for distal change in system response. American Journal of Community
Psychology, 52, 112.
Example of a longitudinal study with creative centering of time. The response variable was a rate (probability).
 Poteat, V.P. & Anderson, C.J. (2012). Developmental changes in sexual prejudice from early to late
adolescence: The effects of gener, race, and ideology on different patterns of change. Developmental Psychology, 48, 14031415.
Example of an accelerated longitudinal design.
 Examples from Tom Snijders course webpage where multilevel models have been used. (click on "info course multilevel" on left and go to
bottom of page. These papers cover a range of topics (e.g., political science, sociology, school psychology, criminology, medicine, and others).
Example SAS Programs (ascii/text format):
Examples from Snijders & Bosker using SAS
 MLbook.sas.
Create SAS data for examples in Chapters 4 and 5.
 Ch4_examples.sas.
Example 2level analyses from Chapter 4 (random intercept models).
 Ch5_examples.sas.
Example 2level analyses from Chapter 5 (random intercept and
slopes).
 Ch12_examples.sas.
Examples analyses from Chapter 12 (longitudinal data analysis),
including creating sas dataset.
Examples from Chapter 4 of Kreft & de Leeuw (provided and written
by Carol Nickerson):

School23.sas.
SAS code that creates data set and fits models reported in Kreft &
de Leeuw.

school23.dat.
Raw data file that is used as input to school23.sas.
Handy Programs and Links:

Ones specific to multilevel modeling:

General ones:

CIforP.f:
A FORTRAN program that computes large sample confidence intervals for a
proportion.

pvalue.f:
A FORTRAN program that computes pvalues and (bonferroni) critical values
for the standard normal, chisquared, t, and F distributions (and for correlations).
For users of PC type computers,
pvalue.exe
is an executable (i.e. already compiled) program.