Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Latent Growth Curve SEM GUI
From
William Buchanan <[email protected]>
To
[email protected]
Subject
Re: st: Latent Growth Curve SEM GUI
Date
Fri, 15 Jun 2012 15:41:28 -0700
Hi Carter,
Which Mplus example are you trying to replicate? It might just be that what you are trying to do would be better expressed via syntax than in the GUI. Have you looked through the [SEM] manual for Stata? There is a Growth Curve model in the examples section there which could probably give you a good idea of ways to modify the syntax to reproduce things correctly.
Billy
On Jun 15, 2012, at 3:19 PM, Carter Rees wrote:
> Using Stata 12 on a Mac.
>
> I have the basic latent growth curve model with 4 time points set up using the SEM GUI. I would like to add one time invariant covariate (gender) to predict the growth factors (intercept and slope) using the GUI. However, each time I try to add this variable either as latent or observed I get the error message "Cannot add path. Target variable will become endogenous and is correlated with exogenous variables". How do I add this via the GUI?
>
> My goal is to replicate the results of an example from MPlus so I can get a better feel for what the Stata code will look like and how the GUI works. No troubles fitting the LGC without the covariate but the covariate is stumping me.
>
> Thanks.
>
> Carter
>
> /*LGC without covariate*/
> sem (posT1 <- intercept@1 slope@0 _cons@0) ///
> (posT2 <- intercept@1 slope@1 _cons@0) ///
> (posT3 <- intercept@1 slope@2 _cons@0) ///
> (posT4 <- intercept@1 slope@3 _cons@0), ///
> latent(intercept slope) ///
> var(e.posT1@var e.posT2@var e.posT3@var e.posT4@var) ///
> means(intercept slope)
>
>
>
>
>
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/