Skip to Main Content

stata2mplus.hlp.htm

Help file for the command stata2mplus
-------------------------------------

Syntax ------

stata2mplus [varlist] using <stata data file> , [ replace clear missi > ng(#) use(varlist) ]

Options -------

varlist - Variables to be converted to Mplus. Default all.

replace - Use to replace the existing file

clear - Use to clear out the existing file in data

missing - Specify number for missing values, default -999999999

use - Specify variables for "usevarables", default all variables from varlist.

Description -----------

This program reads a Stata data file and creates a raw data file and an mplus program (an inp file) that can read the raw data file into Mplus. String variables are converted to numeric values. The Title section contains a list of the variables, variable labels, and value labels.

Examples --------

stata2mplus using c:dataauto

This reads the data file "auto.dta" from the c:data directory and creates the raw data file "auto.dat" and input file "auto.inp" which is an mplus input file that can be used to read "auto.dat".

Author(s) ---------

Michael N. Mitchell Statistical Computing Group UCLA, Academic Technology Services mnmatucla.edu