Skip to content

GENLINMIXED

Generalized linear mixed models: binary, count or skewed outcomes with random intercepts and slopes per subject.

GENLINMIXED
/FIELDS TARGET=y [TRIALS=VARIABLE(n)] [OFFSET=var]
/TARGET_OPTIONS DISTRIBUTION=BINOMIAL|POISSON|NEGATIVE_BINOMIAL|NORMAL|GAMMA [LINK=…]
/FIXED [EFFECTS=terms] [USE_INTERCEPT=TRUE|FALSE]
/RANDOM [EFFECTS=terms] [USE_INTERCEPT=TRUE|FALSE] SUBJECTS=var [COVARIANCE_TYPE=VARIANCE_COMPONENTS|IDENTITY|DIAGONAL|UNSTRUCTURED]
[/BUILD_OPTIONS METHOD=LAPLACE|AGQ [NODES=15] CONFIDENCE_LEVEL=95 MAX_ITERATIONS=100]
[/EMMEANS TABLES=f] [/SAVE PREDICTED_VALUES].
Kind Procedure (reads data, produces output)
Body main /SUBCOMMAND[=] …
Changes data yes, undoable
Subcommands /BUILD_OPTIONS, /DATA_STRUCTURE, /EMMEANS, /EMMEANS_OPTIONS, /FIELDS, /FIXED, /MISSING, /RANDOM, /REPEATED, /SAVE, /TARGET_OPTIONS
Menu Analyze ▸ Mixed Models
Slot: Target 1–1 variable(s); levels: nominal, ordinal, scale; types: numeric, string
Slot: Fixed effects 0+ variable(s); levels: nominal, ordinal, scale; types: numeric, string
Slot: Random effects 0+ variable(s); levels: nominal, ordinal, scale; types: numeric, string
Slot: Subjects 1+ variable(s); levels: nominal, ordinal, scale; types: numeric, string
  • BUILD_OPTIONS: METHOD=LAPLACE (default) or AGQ, adaptive Gauss-Hermite quadrature with NODES points (one random intercept only)
GENLINMIXED /FIELDS TARGET=recovered /TARGET_OPTIONS DISTRIBUTION=BINOMIAL LINK=LOGIT /FIXED EFFECTS=treatment age USE_INTERCEPT=TRUE /RANDOM USE_INTERCEPT=TRUE SUBJECTS=clinic.
GENLINMIXED /FIELDS TARGET=visits /TARGET_OPTIONS DISTRIBUTION=POISSON /FIXED EFFECTS=week /RANDOM EFFECTS=week USE_INTERCEPT=TRUE SUBJECTS=id COVARIANCE_TYPE=UNSTRUCTURED.
  • Fields with a nominal or ordinal measurement level, and strings, are treated as factors.
  • Estimates maximise the Laplace (or quadrature) approximation of the marginal likelihood; SPSS uses penalised quasi-likelihood, so results can differ slightly.
  • All /RANDOM blocks must use the same SUBJECTS.
  • Random-effect blocks may use different SUBJECTS (nested or crossed).
  • /REPEATED SUBJECTS=… REPEATED_MEASURES=… COVARIANCE_TYPE=… (or /DATA_STRUCTURE) gives an R-side covariance: exact REML for a normal target with identity link, PQL (approximate, with a warning) for other targets; negative binomial is refused.

MIXED, GENLIN


Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.