We have data over a period of 4 years that follows a cosine function. How do we implement such a function in Mplus? Where can we find a good example(s) of how to define such a model. We expect to use time-invariant and time varying covariates.
Kevin Grimm posted on Friday, October 21, 2016 - 7:50 am
The MODEL CONSTRAINT command can be used to constrain the factor loadings of the slope latent variable to change according to the cosine function. The factor loadings for the slope latent variable are given labels in the MODEL statement and then those labels are used in the MODEL CONSTRAINT statement and set equal to the cosine function (e.g., COS(t), where t is the timing variable). Similar examples can be found in
Grimm, K. J., & Ram, N. (2009). Nonlinear growth models in Mplus and SAS. Structural Equation Modeling: A Multidisciplinary Journal, 16, 676-701.