MIXED
Linear mixed models: random effects per subject or cluster and structured covariance for repeated measures, estimated by REML or ML.
Syntax
Section titled “Syntax”MIXED dep [BY factors] [WITH covariates] [/FIXED=[terms] [| NOINT]] [/RANDOM=[INTERCEPT] [terms] [| SUBJECT(var[*var]) COVTYPE(ID|VC|DIAG|CS|CSH|AR1|ARH1|TOEP|UN|FA1)] [SOLUTION]] [/REPEATED=var[*var] | SUBJECT(var[*var]) COVTYPE(type)] [/METHOD=REML|ML] [/CRITERIA=CIN(95) MXITER(100)] [/PRINT=SOLUTION TESTCOV G R] [/EMMEANS=TABLES(f) [COMPARE ADJ(LSD|BONFERRONI|SIDAK)]] [/SAVE=FIXPRED PRED RESID] [/MISSING=EXCLUDE|INCLUDE].Synopsis
Section titled “Synopsis”| Kind | Procedure (reads data, produces output) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | yes, undoable |
| Subcommands | /CRITERIA, /EMMEANS, /FIXED, /METHOD, /MISSING, /PRINT, /RANDOM, /REPEATED, /SAVE |
| Menu | Analyze ▸ Mixed Models |
| Slot: Dependent Variable | 1–1 variable(s); levels: scale; types: numeric |
| Slot: Factor(s) | 0+ variable(s); levels: nominal, ordinal; types: numeric, string |
| Slot: Covariate(s) | 0+ variable(s); levels: scale; types: numeric |
| Slot: Subjects | 0+ variable(s); levels: nominal, ordinal, scale; types: numeric, string |
Specifications
Section titled “Specifications”- FIXED: fixed-effect terms (factors, covariates, interactions a*b); without /FIXED the model has an intercept only, as in SPSS
- RANDOM: random effects; after
|, SUBJECT names the grouping variable(s) and COVTYPE the covariance of the effects (default VC: one variance per term). Repeat for several blocks; SOLUTION prints the predicted random effects - REPEATED: repeated-measures variable(s) and the residual covariance within each subject (default DIAG)
- METHOD: REML (default) or ML
- PRINT: SOLUTION fixed-effect estimates, TESTCOV Wald tests of covariance parameters, G and R matrices
- SAVE: FIXPRED (fixed part only), PRED (including random effects), RESID
Examples
Section titled “Examples”MIXED score BY group WITH week /FIXED=group week /RANDOM=INTERCEPT week | SUBJECT(id) COVTYPE(UN) /PRINT=SOLUTION TESTCOV.MIXED bp BY drug visit /FIXED=drug visit drug*visit /REPEATED=visit | SUBJECT(patient) COVTYPE(AR1) /EMMEANS=TABLES(drug) COMPARE ADJ(BONFERRONI).- F tests use Satterthwaite denominator degrees of freedom; covariance parameters have Wald Z tests and confidence intervals (log scale for variances).
- A random factor without SUBJECT and with the VC or ID structure is a random intercept for each of its levels (/RANDOM=school).
- Frequency weights are not applied: each case is analysed once.
Related
Section titled “Related”GENLINMIXED, UNIANOVA, VARCOMP, GENLIN
Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.