next up previous index
Next: 2 Interpreting Mx Output Up: 4 Mx Example: Path Previous: 4 Mx Example: Path   Index


1 Building an Mx script

Each new control statement in a script begins on a new line. For each group, we will have the following structure:

  1. Title
  2. Group type
  3. Read and select any observed data, supply labels
  4. Declare matrices to express the model
  5. Specify parameters, (starting) values, equality constraints
  6. Define matrix formulae for the model
  7. Request fit functions, output and optimization options
  8. End
We shall now examine the structure in greater detail, focusing on our BMI model. We plan to test hypotheses about the contributions of genetic and environmental factors to individual differences in BMI using data collected from MZ and DZ twins reared together. The Mx script therefore will have at least two groups. To simplify the structure of the script, we have added a calculation group at the beginning. The structure for the data groups for MZ and DZ twins is very similar. We will only discuss the first data group in detail. The first line gives the title for this group. The specification for the DZ group is very similar to that of the MZ group. Note the different number of observations, the new filename containing the DZ observed covariance matrix and the expected covariance matrix to match the expectation of the DZ covariance, $.5a^2+c^2+.25d^2$. A special form of matrix multiplication, the Kronecker product, represented by the symbol @, is used to premultiply the matrix A by the scalar .5 and the matrix D by the scalar .25. The specification extends easily to the multivariate case (see Section ?).

By default, Mx prints the
  1. User's input script
  2. Parameter Specifications
  3. Parameter Estimates
  4. Measures of overall goodness-of-fit.
Other useful output can be requested by additional options, including:

The Mx manual should be consulted for a full description of the options.


next up previous index
Next: 2 Interpreting Mx Output Up: 4 Mx Example: Path Previous: 4 Mx Example: Path   Index
Jeff Lessem 2000-03-20