I am using a random intercept model, and I have a question regarding SPSS
syntax. I would like see how a covariate is related to the dependent
variable, however, also control for the covariate effects on the
participants in the model.
To do so, in SPSS syntax, can I enter covariates following the “BY”
function and also add covariates in the FIXED function? By using this
formula, am I controlling for these covariates or should I add the
covariates using the WITH function and exclude them from FIXED section?
MIXED depression score BY Time(IV) Suicidal ideation (control) Anxiety
(control)
/FIXED=Time(IV) Suicidal ideation (control) Anxiety (control) | SSTYPE(3)
/METHOD=ML
/PRINT=G SOLUTION
/RANDOM=INTERCEPT|SUBJECT(consumid) COVTYPE(UN)
/SAVE=PRED RESID.