Multilevel Models for Experimental Data
By the end of this module, you will be able to
Note: In the video the slides use d for effect size, but we will use R2 in this class.
You can view and download the slides here: PDF
Check your learning: In a research study, 10 hospitals are randomly assigned to a treatment condition to adopt a new drug, whereas the other 10 hospitals use the conventional method. What is the design of this study?
Check your learning: In the data set, how many observations are there at level 1?
Check your learning: In the following data, hvltt
to
hvltt4
are the test score of a verbal learning test across
four time points. Is this a long or a wide data set?
id <int> | hvltt <int> | hvltt2 <int> | hvltt3 <int> | hvltt4 <int> |
---|---|---|---|---|
1 | 28 | 28 | 17 | 22 |
2 | 24 | 22 | 20 | 27 |
3 | 24 | 24 | 28 | 27 |
4 | 35 | 34 | 32 | 34 |
5 | 35 | 29 | 34 | 34 |
6 | 29 | 27 | 26 | 29 |
7 | 18 | 16 | 27 | 30 |
8 | 25 | 26 | 25 | 29 |
9 | 24 | 17 | 20 | 11 |
10 | 22 | 19 | 21 | 26 |
Think more: What is the data structure if there are 1,000 students from 100 schools and 30 neighborhoods, and each school has students from multiple neighborhoods?
Practice yourself: Compute the design effects for the person level and for the item level. Do the design effects suggest the need for both levels? (That is, are both design effects > 1.1?)
Answer: See the computation in the R code
Check your learning: If in the experiment, each person respond to
each item 3 times, each time with a different duration
. At
what level(s) can duration
have random slopes?
Please check out the slides and the examples in the R code