UCLA Academic Technology Services HomeServicesClassesContactJobs
Search

Mplus Textbook Examples
An Introduction to Latent Variable Growth Curve Modeling
by Duncan, Duncan, Strycker, Li, & Alpert

SPSS Example of Linear and Quadratic Growth with predictor of change 

data list list file = "f:\ddsla\ch3raw.dat" /y1 y2 y3 age probbeh.
execute.

VARSTOCASES /ID = id
 /MAKE alcuse FROM y1 y2 y3
 /keep = age probbeh
 /INDEX = time(3).

compute timelin = time-1.
compute timequad = timelin*timelin.
compute int = 1.

* model expressed like a multilevel model.
* Note parameter estimates from SPSS match those
* of Mplus, but Mplus has extra parameters not modeled here.
mixed alcuse with timelin timequad age int
  /fixed = int age timelin timequad timelin*age timequad*age | noint
  /random int timelin timequad | covtype(id) subject(id)
  /print=solution.

Mixed Model Analysis

Fixed Effects

Covariance Parameters


How to cite this page

Report an error on this page

UCLA Researchers are invited to our Statistical Consulting Services
We recommend others to our list of Other Resources for Statistical Computing Help
These pages are Copyrighted (c) by UCLA Academic Technology Services


The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California