NOTE: These examples were done using SPSS version 15. The syntax shown should work for SPSS versions 12 and later.
Using display labels to see the names of the variables and the variable labels.
get file "D:imm23.sav". display labels.
Page 64, 4.2.2, The Null Model, Model 0
mixed math /print = solution testcov /fixed = /random = intercept | subject(schid).
Page 65, 4.2.3 ‘Homework and ‘MathAchievement’, Model 1
mixed math with homework /print = solution testcov /fixed = homework /random = intercept | subject(schid).
Pages 66 and 67, 4.2.4 Random slope for ‘Homework’, model 2
mixed math with homework /print = solution testcov /fixed = homework /random = intercept homework | subject(schid) covtype(un).
Page 69, 4.2.5 Adding ‘ParentEducation’, model 3
mixed math with homework parented /print = solution testcov /fixed = homework parented /random = intercept homework | subject(schid) covtype(un).
Page 70 and 71, 4.2.6 Traditional regression model.
mixed math with homework parented /print = solution testcov /fixed = homework parented.
Page 73/74, 4.3.2 A model with ‘SchoolSize’ (Model 2)
mixed math with homework scsize /print = solution testcov /fixed = homework scsize /random = intercept homework | subject(schid) covtype(un).
Page 74/75, 4.3.3 Changing ‘SchoolSize’ to ‘Public’ (Model 3)
mixed math with homework public /print = solution testcov /fixed = homework public /random = intercept homework | subject(schid) covtype(un).
Page 77, 4.3.4 Adding a cross level interaction with ‘Public’, (Model 4)
mixed math with homework public /print = solution testcov /fixed = homework public homework*public /random = intercept homework | subject(schid) covtype(un).
Page 80, 4.3.5 Model 4 will full NELS-88 data (we don’t have these data, so this is omitted).
Page 80/82, 4.3.6 Deleting ‘HomePublic’ and adding ‘White’ (Model 5)
mixed math with homework white public /print = solution testcov /fixed = homework white public /random = intercept homework | subject(schid) covtype(un).
Page 82/83, 4.3.7 Adding a random part for ‘White’ (Model 6)
mixed math with homework white public /print = solution testcov /fixed = homework white public /random = intercept homework white | subject(schid) covtype(un).
Page 85, 4.3.8 Making the coefficient of ‘White’ fixed and adding ‘MeanSES’ (Model 7)
mixed math with homework white public meanses /print = solution testcov /fixed = homework white public meanses /random = intercept homework | subject(schid) covtype(un).
Page 86, 4.3.9 Deleting the school characteristic ‘Public’ (Model 8)
mixed math with homework white meanses /print = solution testcov /fixed = homework white meanses /random = intercept homework | subject(schid) covtype(un).
Page 87/88, 4.3.10 Adding an interaction between ‘HomeWork’ and ‘MeanSES’ (Model 9)
mixed math with homework white meanses /print = solution testcov /fixed = homework white meanses homework*meanses /random = intercept homework | subject(schid) covtype(un).
Page 88/89, 4.3.11 Adding another student-level variable (Model 10)
mixed math with homework white meanses ses /print = solution testcov /fixed = homework white meanses ses /random = intercept homework | subject(schid) covtype(un).
Page 88/89, 4.3.12: Analyses with NELS-88 (we don’t have these data, so these analyses are omitted).
Page 91, 4.4.1 ‘SES’ as a student-level explanatory variable (Model 1)
mixed math with ses /print = solution testcov /fixed = ses /random = intercept | subject(schid).
Page 92, 4.4.2 Adding a random slope (Model 2)
mixed math with ses /print = solution testcov /fixed = ses /random = intercept ses | subject(schid) covtype(un).
Page 93, 4.4.3 Adding ‘PercentMinorities’ (Model 3)
mixed math with ses percmin /print = solution testcov /fixed = ses percmin /random = intercept | subject(schid).
Page 95, 4.4.4 Adding ‘MeanSES’ (Model 4)
mixed math with ses percmin meanses /print = solution testcov /fixed = ses percmin meanses /random = intercept | subject(schid).
Page 95, 4.4.5 Analyses with NELS-88, models 2 and 3 (we do not have these data, so these analyses are omitted).
Page 99, 4.5.1 Analysis with class size and a cross level interaction (Model 1)
mixed math with ses homework ratio /print = solution testcov /fixed = homework ratio /random = intercept homework | subject(schid) covtype(un).
Page 100, 4.5.2 Interaction between ‘Ratio’ and ‘HomeWork’ (Model 2)
mixed math with ses homework ratio /print = solution testcov /fixed = homework homework*ratio /random = intercept homework | subject(schid) covtype(un).
Page 100, 4.5.3 Reporting the modeling session with NELS-88 (we do not have these data, so these analyses are omitted).