A SUMMARY OF THE Mplus LANGUAGE
This chapter contains a summary of the commands, options, and settings of the Mplus language. For each command, default settings are found in the last column. Commands and options can be shortened to four or more letters. Option settings can be referred to by either the complete word or the part of the word shown in bold type.
|
TITLE: |
title for the analysis |
|
|
DATA: |
|
|
|
|
|
|
|
FILE IS |
file name; |
|
|
FORMAT IS |
format statement; |
|
|
|
FREE; |
FREE; |
|
TYPE IS |
INDIVIDUAL; |
INDIVIDUAL; |
|
|
COVARIANCE; |
|
|
|
CORRELATION; |
|
|
|
FULLCOV; |
|
|
|
FULLCORR; |
|
|
|
MEANS; |
|
|
|
STDEVIATIONS; |
|
|
|
MONTECARLO; |
|
|
|
IMPUTATION; |
|
|
NOBSERVATIONS ARE |
number of observations; |
|
|
NGROUPS = |
number of groups; |
1 |
|
VARIANCES = |
CHECK; NOCHECK; |
CHECK; |
|
|
|
|
|
|
|
|
|
NAMES ARE |
names of variables in the data set; |
|
|
USEOBSERVATIONS ARE |
conditional statement to select observations; |
all observations in data set |
|
USEVARIABLES ARE |
names of analysis variables; |
all variables in NAMES |
|
MISSING ARE |
variable (#); |
|
|
|
. ; |
|
|
|
* ; |
|
|
|
BLANK; |
|
|
CENSORED ARE |
names, censoring type, and inflation status for censored dependent variables; |
|
|
CATEGORICAL ARE |
names of binary and ordered categorical (ordinal) dependent variables; |
|
|
NOMINAL ARE |
names of unordered categorical (nominal) dependent variables; |
|
|
COUNT ARE |
names and inflation status for count variables; |
|
|
GROUPING IS |
name of grouping variable (labels); |
|
|
IDVARIABLE IS |
name of ID variable; |
|
|
WEIGHT IS |
name of weight variable; name of weight variable (SAMPLING); name of weight variable (FREQUENCY); |
SAMPLING |
|
CLUSTER IS |
name of cluster variable; |
|
|
STRATIFICATION IS |
name of stratification variable; |
|
|
CENTERING IS |
GRANDMEAN (variable names); GROUPMEAN (variable names); |
|
|
TSCORES ARE |
names of observed variables with information on individually-varying times of observation; |
|
|
AUXILIARY = |
names of auxiliary variables; |
|
|
|
|
|
|
CLASSES = |
names of categorical latent variables (number of latent classes); |
|
|
KNOWNCLASS = |
name of categorical latent variable with known class membership (labels); |
|
|
TRAINING = |
names of training variables; names of variables (MEMBERSHIP); names of variables (PROBABILITIES); |
MEMBERSHIP |
|
WITHIN ARE |
names of individual-level observed variables; |
|
|
BETWEEN ARE |
names of cluster-level observed variables; |
|
|
PATTERN IS |
name of pattern variable (patterns); |
|
|
COHORT IS |
name of cohort variable (values); |
|
|
COPATTERN IS |
name of cohort/pattern variable (patterns); |
|
|
COHRECODE = |
(old value = new value); |
|
|
TIMEMEASURES = |
list of sets of variables separated by the | symbol; |
|
|
TNAMES = |
list of root names for the sets of variables in TIMEMEASURES separated by the | symbol; |
|
THE DEFINE COMMAND
|
DEFINE: |
|
|
|
|
|
|
|
|
variable = mathematical expression; |
|
|
|
IF (conditional statement) THEN transformation statements; |
|
|
|
CUT variable name or list of variables (cutpoints); |
|