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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: data file for use with sem()


From   William Buchanan <william@williambuchanan.net>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: data file for use with sem()
Date   Fri, 7 Dec 2012 06:34:42 -0800

It is documented in the help files and [SEM]. You can enter the data manually, or you can store the correlation matrix and save a vector of means and standard deviations to set things up that way. 

HTH,
Billy

Sent from my iPhone

On Dec 7, 2012, at 5:59, Robert Long <W.R.Long@leeds.ac.uk> wrote:

> Hello statlist
> 
> I am fairly new to Stata and completely new to the sem() function.
> 
> I have previously used MPlus, where it is common to have data files in a format like this:
> 
> 79.75 0.97 81.96 109.16
> 14.18 0.58 54.24 10.40
> 1
> 0.34 1
> 0.59 0.39 1
> 0.38 0.13 0.29 1
> 
> where we have a row vector for the means of each variable, a row for their standard deviations, a lower triangular matrix for correlations, and the number of observations is input separately.
> 
> Is there a way to get Stata to handle this kind of input without having the simulate the data myself ?
> 
> Thanks
> Robert Long
> 
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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