Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Adding a time-invariant covariate in SEM builder

From (Kristin MacDonald, StataCorp LP)
To   "" <>
Subject   Re: st: Adding a time-invariant covariate in SEM builder
Date   Wed, 01 May 2013 17:20:31 -0500

Robert Long <> is fitting a latent growth curve model with
time-invariant covariates and asked how to include an intercept in an equation
for a latent variable when using the SEM Builder.

> After fitting the growth model (that is, the model with just the latent
> growth factors and the measured variables), I add a time-invariant (in
> this case "male") covariate in the do file like this:
> 1. add the path: (Intercept Slope <- male _cons)
> 2. remove the means() option
> 3. and add e. to the factor covariances (if any)
> No problem with that.
> My question is how to achieve the the same thing with SEM builder ?
> Specifically, how do I get _cons into the paths from the time-invariant
> covariate to the latent growth factors ?

Robert can include a box in the diagram representing the constant.  To do this

  1.  Use the Add Observed Variable tool to drop a box on the path diagram;
  2.  In the contextual toolbar, type _cons in the box next to "Variable:"
      and press Enter;
  3.  Draw paths from the _cons box to the latent variables.

Robert can now fit the same model from the Builder that he fits using command

-- Kristin

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index