Professional Documents
Culture Documents
Lisrel Syntax Basics en
Lisrel Syntax Basics en
Dipl.-Psych. Christina Werner and Prof. Dr. Karin Schermelleh-Engel – Goethe University, Frankfurt
LISREL Syntax:
Structure and Basic Commands
LK 7. Description
ksi1 ksi2 of model
FR LX(2,1) LX(4,2) 9.
VA 1 LX(1,1) LX(3,2) 11.
PATH DIAGRAM 13. Description
OU ME=ML ND=3 SC RS MI 14. of output
1
Introduction to Structural Equation Modeling with LISREL – Version May 2009
Dipl.-Psych. Christina Werner and Prof. Dr. Karin Schermelleh-Engel – Goethe University, Frankfurt
LK 7.
ksi1 ksi2
LE 8. Description
eta1 eta2 of model
FR LX(2,1) LX(4,2) 9.
FR LY(2,1) LY(4,2)
FR BE(2,1)
FI GA(2,1) 10.
VA 1 LX(1,1) LX(3,2) LY(1,1) LY(3,2) 11.
EQ TD(3,3) TD(4,4) 12.
PATH DIAGRAM 12. Description
OU ME=ML ND=3 SC RS XM 13. of output
2
Introduction to Structural Equation Modeling with LISREL – Version May 2009
Dipl.-Psych. Christina Werner and Prof. Dr. Karin Schermelleh-Engel – Goethe University, Frankfurt
1. Title
The first line of a LISREL syntax file may be used for an optional title, which then will
appear on every page of output. To be on the safe side, this line may be started with an
exclamation mark (indicating a comment; see below at “comments”).
2. Data definition
• SY (symmetric) for a lower triangular matrix, i. e. all entries on the diagonal and
below the diagonal, or
• FU (full) for a complete rectangular covariance/correlation matrix
3
Introduction to Structural Equation Modeling with LISREL – Version May 2009
Dipl.-Psych. Christina Werner and Prof. Dr. Karin Schermelleh-Engel – Goethe University, Frankfurt
4. Data matrix
If covariances/correlations or raw data are listed within the syntax file itself, they should
appear next. By default, LISREL assumes the y-variables first, followed by the x-variables.
6. Model specification
4
Introduction to Structural Equation Modeling with LISREL – Version May 2009
Dipl.-Psych. Christina Werner and Prof. Dr. Karin Schermelleh-Engel – Goethe University, Frankfurt
• The different variables included in the model determine which parameter matrices
have to be specified:
◦ LX (Lambda-x) matrix Λx : path coefficients between latent ξ-variables and mani-
fest x-variables
◦ LY (Lambda-y) matrix Λy : path coefficients between latent η-variables and mani-
fest y-variables
◦ GA (Gamma) matrix Γ: path coefficients between ξ-variables and η-variables in
the structural model
◦ BE (Beta) matrix B: path coefficients between different η-variables in the struc-
tural model
◦ PH (Phi) matrix Φ: variances/covariances of the ξ-variables
◦ PS (Psi) matrix Ψ: variances/covariances of the residual variables ζ in the struc-
tural model
◦ TD (Theta-delta) matrix Θδ : variances/covariances of the measurement error
variables δ
◦ TE (Theta-epsilon) matrix Θ : variances/covariances of the measurement error
variables
• Most often, these matrices will be specified in one of the following ways:
◦ FU,FI (full, fixed) All parameters in the respective matrix are fixed to zero
(possible starting point, particularly for LX, LY, GA, BE; parameters needed in the
model can be set free individually later on, see number 9).
◦ FU,FR (full, free) All parameters in the respective matrix are to be estimated
(alternative starting point, particularly for LX, LY, GA; parameters not needed in
the model can be fixed to zero individually later on, see number 10).
◦ SY,FR (symmetric, free) The matrix is symmetric, all parameters are to be esti-
mated under this condition
(usual starting point for PH in case of correlated ξ-variables).
◦ DI,FR (diagonal, free) Only the matrix’ diagonal parameters are to be estimated,
all off-diagonal parameters are fixed to zero
(usual starting point for the error/residual covariance matrices TD, TE, PS and for
PH in case of uncorrelated ξ-variables).
Variables and parameter matrices that are not part of the model can be omitted.
5
Introduction to Structural Equation Modeling with LISREL – Version May 2009
Dipl.-Psych. Christina Werner and Prof. Dr. Karin Schermelleh-Engel – Goethe University, Frankfurt
6
Introduction to Structural Equation Modeling with LISREL – Version May 2009
Dipl.-Psych. Christina Werner and Prof. Dr. Karin Schermelleh-Engel – Goethe University, Frankfurt
General notes
• Comments
Syntax files may contain user comments. This is especially useful and advisable for com-
plex models, model modifications, and multi-sample analysis. LISREL treats everything
following an exclamation mark ! as a comment. A line starting with an exclamation mark
will be completely ignored by LISREL:
! Add your comments here...
However, commands may also be followed by an exclamation mark and further comments
on the same line. For model modification or testing purposes, this allows to easily “com-
ment out” certain commands and disable them without having to delete and retype them.
In the following example, the parameters GA(1,1) = γ11 and BE(2,1) = β21 will be esti-
mated (“free”), but not GA(2,1) = γ21 :
FR GA(1,1) BE(2,1) ! GA(2,1)
• Blank lines
LISREL ignores blank lines, so they can be used to structure syntax files.
• Line length
LISREL reads lines up to 127 characters. Overly long lines should be terminated with a
blank space followed by the letter C (continue). They can then be continued on the next
line. This may often be necessary for the model specification line, e. g.:
MO NX=5 NY=4 NK=2 NE=2 LX=FU,FI LY=FU,FI GA=FU,FI BE=FU,FI PH=SY,FR C
PS=DI,FR TD=DI,FR TE=DI,FR
This notation does not work for all commands, e. g. it is not possible to use it for labels.
• Uppercase/lowercase
LISREL is case insensitive. Depending on the font, uppercase letters may be preferable to
avoid confusing letters with numbers.