Beruflich Dokumente
Kultur Dokumente
STEP 1. Set up the analysis. Open the correct data files with one line of data per subject per
time period. Only proceed if the dependent variable is normally distributed at each time point
(e.g., not skewed). SPSS cannot run nonlinear HLM. You can check the normality assumption by
running the Explore/Plots command.
Click the Plots button, and in the Explore: Plots dialog box, select Histogram and
Normality plots with tests.
If the output shows that the Shapiro-Wilk statistic value is larger than .8 then its safe to assume
that the distribution is normal.
STEP 2. Specify and run the analysis. Specify fixed effects and random effects. All three models
below include a residual error term (R). Begin with Model 3, and then check the output to see if
a simpler model is needed. Replace the text depvar with the name of your dependent variable.
Select a Linear Mixed Model analysis.
Specify the Subjects variable. Leave Repeated section blank so that the analysis does not use
the RANDOM command.
Model 2 syntax: Random Intercept and Random Slope (but their correlation not modeled)
MIXED
depvar BY clientid cond WITH time
/FIXED = cond time cond*time | SSTYPE(3)
/METHOD = REML
/PRINT = COVB SOLUTION TESTCOV
To get estimated marginal (adjusted) means per condition per time period, time must be specified
as a categorical variable. In the Linear Mixed Model dialog box, click EM Means.
MIXED
phhrisk BY cond0 clientid time0
/FIXED = cond0 time0 cond0*time0 | SSTYPE(3)
/METHOD = REML
/RANDOM INTERCEPT | SUBJECT(clientid) COVTYPE(ID)
/EMMEANS = TABLES(cond0*time0).